Function at 0x40c480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4282f0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4398b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [0x43ac38]
xor esi, esi
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call fcn.00415180
xor edi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00415020
test al, al
jne 0x40c4f6
push 0x433d8c
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], 0x11
call fcn.00419a0b
push esi
push str.__m_bEnableMonitoringFlag___d_n
push 0x40000
push 0x43a94c
call fcn.00416160
mov edx, dword [ebx + 4]
add esp, 0x10
mov byte [ebx + 0x24], 0
mov dword [ebp - 0x1c], edx
jmp 0x40c520
cmp esi, dword [ebp - 0x1c]
jae 0x40c5d3
cmp esi, dword [ebx + 4]
jb 0x40c538
push 0x80070057
call fcn.00401000
mov ecx, dword [ebx]
lea eax, [esi + esi*4]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x64], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x60], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x5c], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [eax + 0x10]
push 0
lea edx, [ebp - 0x64]
push edx
push ecx
mov ecx, ebx
mov dword [ebp - 0x54], eax
call fcn.0040b660
push 0
push 0
lea eax, [ebp - 0x64]
push eax
push 0x40b310
push 0
push 0
call fcn.0041b208
mov ecx, eax
add esp, 0x18
test ecx, ecx
mov dword [ebp - 0x20], ecx
je 0x40c5cb
cmp edi, dword [ebp - 0x38]
mov dword [ebp - 0x24], edi
jb 0x40c5b6
add edi, 1
push edi
lea ecx, [ebp - 0x40]
call fcn.0040bd30
test al, al
jne 0x40c5b0
push 0x8007000e
call fcn.00401000
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
lea eax, [edx + eax*4]
test eax, eax
je 0x40c5c5
mov dword [eax], ecx
add edi, 1
mov dword [ebp - 0x3c], edi
add esi, 1
jmp 0x40c520
lea ecx, [ebp - 0x50]
call fcn.00414f10
test edi, edi
jne 0x40c5f4
push 0x433d8c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 1
call fcn.00419a0b
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a6b2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40c62a
push 0x433d8c
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x16
call fcn.00419a0b
xor eax, eax
lea esp, [esp]
cmp eax, edi
jae 0x40c642
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + eax*4]
mov dword [ebx + eax*4], edx
add eax, 1
jmp 0x40c630
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
cmp esi, edi
jae 0x40c666
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
jmp 0x40c650
push ebx
call fcn.0041a2ab
mov ecx, dword [ebp - 0x40]
add esp, 4
test ecx, ecx
mov byte [ebp - 4], 1
je 0x40c692
xor eax, eax
lea esp, [esp]
cmp eax, edi
jae 0x40c689
add eax, 1
jmp 0x40c680
push ecx
call fcn.00419f82
add esp, 4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00415090
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret