Function at 0x409bc0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454a30
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push ebp
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x409bfe
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
push esi
push edi
push ebp
lea ecx, [esp + 0x14]
call fcn.00403590
lea eax, [esp + 0x10]
lea edi, [ebx + 0x70]
push eax
mov ecx, edi
call fcn.00404110
cmp eax, 0xffffffff
jne 0x409c22
xor esi, esi
jmp 0x409c49
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 0x409c40
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]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409c6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x409cd6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409c86
xor eax, eax
jmp 0x409ded
push ebp
lea ecx, [esp + 0x14]
call fcn.00403590
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x2c], 0
call fcn.004099a0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409ccf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10
mov dword [esp + 0x28], 0xffffffff
call fcn.0044a436
mov esi, eax
add esp, 4
test esi, esi
je 0x409d14
call fcn.0044ac7e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
call fcn.0044ac7e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
jmp 0x409d16
xor esi, esi
test ebp, ebp
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
jne 0x409d2a
xor eax, eax
jmp 0x409d39
mov eax, ebp
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409d30
sub eax, ebx
push eax
push ebp
call fcn.00402300
mov edx, dword [esp + 0x34]
test edx, edx
lea ecx, [esi + 0xc]
jne 0x409d4f
xor eax, eax
jmp 0x409d63
mov eax, edx
lea ebx, [eax + 1]
mov dword [esp + 0x30], ebx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x409d58
sub eax, dword [esp + 0x30]
push eax
push edx
call fcn.00402300
lea ecx, [esp + 0x14]
push ecx
push 4
push esi
push 0x4081b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], esi
call fcn.00403590
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov dword [esp + 0x28], 3
call fcn.00408fe0
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x14]
call fcn.00409060
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dd8
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 + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10