Disassembly: 
  L1: 6a 0c ?? push 12
   68 f8 22 40 00 ?? push 0x004022f8
   e8 c1 09 00 00 ?? call function 0x00401c70
  
  L2: 33 db ?? xor ebx, ebx
   89 5d fc ?? mov dword ss:[ebp + 0xfc<252,-4>], ebx
   64 a1 18 00 00 00 ?? mov eax, dword fs:[0x00000018<24>]
   8b 50 04 ?? mov edx, dword ds:[eax + 4]
   8b fb ?? mov edi, ebx
   be b8 33 40 00 ?? mov esi, 0x004033b8
  
  L3: 8b ca ?? mov ecx, edx
   33 c0 ?? xor eax, eax
   f0 0f b1 0e ?? lock cmpxchg dword ds:[esi], ecx
   85 c0 ?? test eax, eax
   74 0b ?? je basic block L6
  
  L4: 3b c2 ?? cmp eax, edx
   75 f0 ?? jne basic block L3
  
  L5: 33 f6 ?? xor esi, esi
   46 ?? inc esi
   8b fe ?? mov edi, esi
   eb 03 ?? jmp basic block L7
  
  L6: 33 f6 ?? xor esi, esi
   46 ?? inc esi
  
  L7: 39 35 bc 33 40 00 ?? cmp dword ds:[0x004033bc], esi
   75 0a ?? jne basic block L10
  
  L8: 6a 1f ?? push 0x1f<31>
   e8 d1 05 00 00 ?? call function 0x004018be
  
  L9: 59 ?? pop ecx
   eb 3a ?? jmp basic block L15
  
  L10: 39 1d bc 33 40 00 ?? cmp dword ds:[0x004033bc], ebx
   75 2c ?? jne basic block L14
  
  L11: 89 35 bc 33 40 00 ?? mov dword ds:[0x004033bc], esi
   68 c4 20 40 00 ?? push 0x004020c4
   68 b4 20 40 00 ?? push 0x004020b4
   e8 4f 09 00 00 ?? call function 0x00401c5c
  
  L12: 59 ?? pop ecx
   59 ?? pop ecx
   85 c0 ?? test eax, eax
   74 17 ?? je basic block L15
  
  L13: c7 45 fc fe ff ff ff ?? mov dword ss:[ebp + 0xfc<252,-4>], 0xfffffffe<4294967294,-2>
   b8 ff 00 00 00 ?? mov eax, 0x000000ff<255>
   e9 de 00 00 00 ?? jmp basic block L35
  
  L14: 89 35 6c 30 40 00 ?? mov dword ds:[0x0040306c], esi
  
  L15: 39 35 bc 33 40 00 ?? cmp dword ds:[0x004033bc], esi
   75 1b ?? jne basic block L18
  
  L16: 68 b0 20 40 00 ?? push 0x004020b0
   68 a8 20 40 00 ?? push 0x004020a8
   e8 21 09 00 00 ?? call function 0x00401c62
  
  L17: 59 ?? pop ecx
   59 ?? pop ecx
   c7 05 bc 33 40 00 02 00 ?? mov dword ds:[0x004033bc], 2
   00 00
  
  L18: 85 ff ?? test edi, edi
   75 09 ?? jne basic block L20
  
  L19: 33 c0 ?? xor eax, eax
   b9 b8 33 40 00 ?? mov ecx, 0x004033b8
   87 01 ?? xchg dword ds:[ecx], eax
  
  L20: 83 3d c8 33 40 00 00 ?? cmp dword ds:[0x004033c8], 0
   74 19 ?? je basic block L24
  
  L21: 68 c8 33 40 00 ?? push 0x004033c8
   e8 c3 05 00 00 ?? call function 0x00401930
  
  L22: 59 ?? pop ecx
   85 c0 ?? test eax, eax
   74 0a ?? je basic block L24
  
  L23: 53 ?? push ebx
   6a 02 ?? push 2
   53 ?? push ebx
   ff 15 c8 33 40 00 ?? call dword ds:[0x004033c8]
  
  L24: 8b 0d 78 30 40 00 ?? mov ecx, dword ds:[0x00403078]
   a1 40 20 40 00 ?? mov eax, dword ds:[0x00402040<"n%@">]
   89 08 ?? mov dword ds:[eax], ecx
   ff 35 78 30 40 00 ?? push dword ds:[0x00403078]
   ff 35 74 30 40 00 ?? push dword ds:[0x00403074]
   ff 35 70 30 40 00 ?? push dword ds:[0x00403070]
   e8 40 fd ff ff ?? call function 0x004010e0
  
  L25: 83 c4 0c ?? add esp, 12
   a3 68 30 40 00 ?? mov dword ds:[0x00403068], eax
   83 3d 80 30 40 00 00 ?? cmp dword ds:[0x00403080], 0
   75 36 ?? jne basic block L31
  
  L26: 50 ?? push eax
   ff 15 24 20 40 00 ?? call dword ds:[0x00402024]
  
  L27: 8b 4d ec ?? mov ecx, dword ss:[ebp + 0xec<236,-20>]
   8b 01 ?? mov eax, dword ds:[ecx]
   8b 00 ?? mov eax, dword ds:[eax]
   89 45 e4 ?? mov dword ss:[ebp + 0xe4<228,-28>], eax
   51 ?? push ecx
   50 ?? push eax
   e8 ef 04 00 00 ?? call function 0x004018b8
  
  L28: 59 ?? pop ecx
   59 ?? pop ecx
   c3 ?? ret
  
  L29: 8b 65 e8 ?? mov esp, dword ss:[ebp + 0xe8<232,-24>]
   8b 45 e4 ?? mov eax, dword ss:[ebp + 0xe4<228,-28>]
   a3 68 30 40 00 ?? mov dword ds:[0x00403068], eax
   83 3d 80 30 40 00 00 ?? cmp dword ds:[0x00403080], 0
   75 07 ?? jne basic block L31
  
  L30: 50 ?? push eax
   ff 15 28 20 40 00 ?? call dword ds:[0x00402028]
  
  L31: 83 3d 6c 30 40 00 00 ?? cmp dword ds:[0x0040306c], 0
   75 0b ?? jne basic block L34
  
  L32: ff 15 2c 20 40 00 ?? call dword ds:[0x0040202c<" %@">]
  
  L33: a1 68 30 40 00 ?? mov eax, dword ds:[0x00403068]
  
  L34: c7 45 fc fe ff ff ff ?? mov dword ss:[ebp + 0xfc<252,-4>], 0xfffffffe<4294967294,-2>
  
  L35: e8 ae 08 00 00 ?? call function 0x00401cb5
  
  L36: c3 ?? ret
  
  