Function at 0x40cd70
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x44a130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push edi
mov edi, ecx
push ebx
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x40cdb2
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push ebp
push esi
push ebx
lea ecx, [esp + 0x14]
call fcn.00402550
lea eax, [esp + 0x10]
add edi, 0x70
push eax
mov ecx, edi
call fcn.00405220
or ebp, 0xffffffff
cmp eax, ebp
jne 0x40cdd8
xor esi, esi
jmp 0x40cdff
mov ecx, dword [edi + 0xc]
add ecx, eax
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
mov edx, edi
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x40cdf6
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], esi
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x40ceb9
push ebx
push 0x44d814
push 0
call fcn.0041d710
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
push ebx
jne 0x40ce5f
push 0x44d7e8
push 0
call fcn.0041d710
add esp, 0xc
xor eax, eax
jmp 0x40cfcd
push 0x44d7b4
push 0
call fcn.0041d710
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
call fcn.00402550
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x30], 0
call fcn.0040ca10
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], ebp
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ceb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
mov dword [esp + 0x2c], ebp
call fcn.0043b09c
mov esi, eax
add esp, 4
test esi, esi
je 0x40cef3
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
call fcn.0043ae74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
jmp 0x40cef5
xor esi, esi
test ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [esi], eax
lea ecx, [esi + 4]
jne 0x40cf06
xor eax, eax
jmp 0x40cf19
mov eax, ebx
lea ebp, [eax + 1]
jmp 0x40cf10
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cf10
sub eax, ebp
push eax
push ebx
call fcn.00401ac0
mov ebp, dword [esp + 0x34]
test ebp, ebp
lea ecx, [esi + 8]
jne 0x40cf2f
xor eax, eax
jmp 0x40cf43
mov eax, ebp
lea edx, [eax + 1]
mov dword [esp + 0x30], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cf38
sub eax, dword [esp + 0x30]
push eax
push ebp
call fcn.00401ac0
lea eax, [esp + 0x18]
push eax
push 4
push esi
push 0x40afa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], esi
call fcn.00402550
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], 3
call fcn.0040ae60
lea edx, [esp + 0x34]
push edx
lea ecx, [edi + 0x14]
call fcn.0040ade0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cfb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc