Function at 0x40468c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4413d8
push 0x42fa64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [0x452c24]
xor ebx, ebx
cmp ecx, ebx
je 0x4046c6
or edx, 0xffffffff
call fcn.0040e65e
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 8]
lea eax, [esi + 0x88]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call edi
lea eax, [esi + 0x84]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [eax], ebx
lea eax, [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x24]
call fcn.0040c590
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x404718
call fcn.0040c4d7
push dword [ebp - 0x24]
call fcn.0042e913
pop ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
lea eax, [esi + 0x14]
push eax
call edi
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x404744
push ebx
push ebx
push 1
push 0xd000abcf
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [edi + edi*2]
shl eax, 2
push eax
call fcn.0042f231
pop ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x40476a
push ebx
push ebx
push 1
push 0xd000abce
call dword [sym.imp.KERNEL32.dll_RaiseException]
xor edi, edi
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], eax
je 0x4047c3
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*4]
mov dword [eax], esi
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x3c]
call fcn.004052ae
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x54], eax
inc edi
mov dword [ebp - 0x38], edi
jmp 0x40477d
mov dword [ebp - 4], ebx
call fcn.00404834
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
shl eax, 2
push eax
call fcn.0042f231
pop ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x4047fb
push ebx
push ebx
push 1
push 0xd000abce
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 0x44], ebx
xor edi, edi
mov dword [ebp - 0x40], edi
cmp edi, dword [ebp - 0x1c]
jge 0x40483f
lea eax, [ebp - 0x44]
push eax
push ebx
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*4]
push eax
push 0x403419
push ebx
push ebx
call fcn.0042f8f8
add esp, 0x18
mov ecx, dword [ebp - 0x34]
mov dword [ecx + edi*4], eax
inc edi
jmp 0x404800
push 0xffffffffffffffff
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
mov dword [ebp - 0x40], edi
cmp edi, dword [ebp - 0x1c]
jge 0x40486d
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + edi*4]
cmp eax, ebx
je 0x40486a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
jmp 0x404851
mov dword [ebp - 4], ebx
call fcn.00404880
or dword [ebp - 4], 0xffffffff
jmp 0x4048d5
mov edi, 0xfa
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
dec edi
jne 0x4048da
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0x64]
mov dword [esi + 0x64], ebx
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push edi
call dword [eax + 0x28]
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x5c], ebx
mov eax, dword [0x452c20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4