Function at 0x40bef0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x44bf10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push ebp
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40bf32
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push ebx
push edi
push ebp
lea ecx, [esp + 0x14]
call fcn.00402550
lea eax, [esp + 0x10]
add esi, 0x70
push eax
mov ecx, esi
call fcn.004050b0
or ebx, 0xffffffff
cmp eax, ebx
jne 0x40bf58
xor edi, edi
jmp 0x40bf7f
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
mov edx, esi
sub ecx, edi
mov edi, dword [edx + 8]
cmp edi, eax
ja 0x40bf76
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], edi
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x40c016
push ebp
push 0x44f630
push 3
call fcn.0041fb20
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40bfcb
xor eax, eax
jmp 0x40c127
push ebp
lea ecx, [esp + 0x14]
call fcn.00402550
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.0040bb90
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebx
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c00f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
mov dword [esp + 0x2c], ebx
call fcn.0043d21c
mov edi, eax
add esp, 4
test edi, edi
je 0x40c050
call fcn.0043cff4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi + 4], eax
call fcn.0043cff4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
jmp 0x40c052
xor edi, edi
test ebp, ebp
mov eax, dword [esp + 0x14]
mov dword [edi], eax
lea ecx, [edi + 4]
jne 0x40c063
xor eax, eax
jmp 0x40c071
mov eax, ebp
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40c068
sub eax, ebx
push eax
push ebp
call fcn.00401ac0
mov edx, dword [esp + 0x34]
test edx, edx
lea ebx, [edi + 8]
jne 0x40c087
xor eax, eax
jmp 0x40c09b
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x30], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c090
sub eax, dword [esp + 0x30]
push eax
push edx
mov ecx, ebx
call fcn.00401ac0
lea edx, [esp + 0x18]
push edx
push 4
push edi
push 0x40a860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], edi
call fcn.00402550
lea eax, [esp + 0x30]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 3
call fcn.0040a710
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x14]
call fcn.0040a690
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc