Function at 0x40c050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d84d
mov eax, dword fs:[0]
push eax
mov eax, 0x4b1c
call fcn.00415810
mov eax, dword [0x427020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x4b10]
call fcn.004073f0
push ecx
mov ecx, dword [ebx + 0x44]
mov eax, esp
mov dword [ebp - 0x14], 0
mov esi, 1
mov dword [ebp - 0x4b18], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c0b6
lea eax, [ecx + 8]
mov ecx, esi
lock xadd dword [eax], ecx
push ecx
mov dword [ebp - 4], 0
mov eax, esp
mov ecx, dword [ebx + 0x30]
mov dword [ebp - 0x4b24], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c0d8
lea eax, [ecx + 8]
mov ecx, esi
lock xadd dword [eax], ecx
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push 0x424490
call fcn.00401090
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.004090e0
push 0x408
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.0040eea0
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x40c12a
add eax, 8
mov ecx, esi
lock xadd dword [eax], ecx
lea ecx, [ebp - 0x420]
call fcn.00408bb0
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
push 0x42449c
call fcn.00401090
lea ecx, [ebp - 0x420]
call fcn.00408d70
cmp dword [ebp - 0x20], 4
push 0
jge 0x40c15e
call fcn.0040dffc
push ecx
mov edi, esp
mov dword [ebp - 0x4b1c], esp
push ecx
mov ecx, dword [ebx + 0x44]
mov eax, esp
mov dword [ebp - 0x4b24], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c182
lea eax, [ecx + 8]
mov ecx, esi
lock xadd dword [eax], ecx
push ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x420]
mov eax, esp
mov dword [ebp - 0x4b20], esp
push 0
push eax
call fcn.00408d20
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
push 0x4244a0
call fcn.00401090
push edi
mov byte [ebp - 4], 3
call fcn.004090e0
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
push 0x4244a8
call fcn.00401090
lea eax, [ebp - 0x4b18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4b10]
call fcn.00408470
push eax
lea ecx, [ebx + 0x50]
call fcn.004071e0
mov edi, dword [ebp - 0x4b18]
test edi, edi
je 0x40c236
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x40c236
test edi, edi
je 0x40c236
mov eax, dword [edi]
test eax, eax
je 0x40c216
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40c22d
push eax
call fcn.0040d418
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040d418
add esp, 4
push 0
push ecx
mov edi, esp
mov dword [ebp - 0x4b14], esp
push ecx
mov ecx, dword [ebx + 0x44]
mov eax, esp
mov dword [ebp - 0x4b20], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c25c
lea eax, [ecx + 8]
mov ecx, esi
lock xadd dword [eax], ecx
push ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x420]
mov eax, esp
mov dword [ebp - 0x4b1c], esp
push 1
push eax
call fcn.00408d20
push ecx
mov ecx, esp
mov byte [ebp - 4], 8
push 0x4244b0
call fcn.00401090
push edi
mov byte [ebp - 4], 3
call fcn.004090e0
push ecx
mov ecx, esp
mov byte [ebp - 4], 9
push 0x4244b8
call fcn.00401090
lea eax, [ebp - 0x4b18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4b10]
call fcn.00408470
push eax
lea ecx, [ebx + 0x54]
call fcn.004071e0
mov edi, dword [ebp - 0x4b18]
test edi, edi
je 0x40c310
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x40c310
test edi, edi
je 0x40c310
mov eax, dword [edi]
test eax, eax
je 0x40c2f0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40c307
push eax
call fcn.0040d418
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040d418
add esp, 4
push 0
push ecx
mov edi, esp
mov dword [ebp - 0x4b14], esp
push ecx
mov ecx, dword [ebx + 0x44]
mov eax, esp
mov dword [ebp - 0x4b20], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c336
lea eax, [ecx + 8]
mov ecx, esi
lock xadd dword [eax], ecx
push ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x420]
mov eax, esp
mov dword [ebp - 0x4b1c], esp
push 2
push eax
call fcn.00408d20
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
push 0x4244c0
call fcn.00401090
push edi
mov byte [ebp - 4], 3
call fcn.004090e0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xc
push 0x4244c8
call fcn.00401090
lea eax, [ebp - 0x4b18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4b10]
call fcn.00408470
push eax
lea ecx, [ebx + 0x58]
call fcn.004071e0
mov edi, dword [ebp - 0x4b18]
test edi, edi
je 0x40c3ea
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jne 0x40c3ea
test edi, edi
je 0x40c3ea
mov eax, dword [edi]
test eax, eax
je 0x40c3ca
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40c3e1
push eax
call fcn.0040d418
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040d418
add esp, 4
push 0
push ecx
mov edi, esp
mov dword [ebp - 0x4b14], esp
push ecx
mov ecx, dword [ebx + 0x44]
mov eax, esp
mov dword [ebp - 0x4b20], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40c40f
lea eax, [ecx + 8]
lock xadd dword [eax], esi
inc esi
push ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x420]
mov eax, esp
mov dword [ebp - 0x4b1c], esp
push 3
push eax
call fcn.00408d20
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xe
push 0x4244d0
call fcn.00401090
push edi
mov byte [ebp - 4], 3
call fcn.004090e0
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xf
push 0x4244d8
call fcn.00401090
lea eax, [ebp - 0x4b18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4b10]
call fcn.00408470
push eax
lea ecx, [ebx + 0x5c]
call fcn.004071e0
mov esi, dword [ebp - 0x4b18]
or ebx, 0xffffffff
test esi, esi
je 0x40c4c5
lea eax, [esi + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
jne 0x40c4c5
test esi, esi
je 0x40c4c5
mov eax, dword [esi]
test eax, eax
je 0x40c4a5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c4bc
push eax
call fcn.0040d418
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0040d418
add esp, 4
lea ecx, [ebp - 0x420]
call fcn.00408c30
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40c518
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x40c518
test esi, esi
je 0x40c518
mov eax, dword [esi]
test eax, eax
je 0x40c4f8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c50f
push eax
call fcn.0040d418
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0040d418
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d409
mov esp, ebp
pop ebp
ret