Function at 0x404c47
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov ebx, dword [0x42b3d1]
call fcn.00404c27
mov eax, 0
cmp eax, ecx
jl 0x404c82
push 0x24
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x404ce3
mov ebx, dword [0x42b3d1]
call fcn.00404c27
mov eax, 0
cmp eax, ecx
jl 0x404cc6
push 0x56
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x404ce3
xor eax, eax
jmp 0x404ce8
mov eax, 1
test eax, eax
je 0x404cfa
mov eax, 0
jmp 0x404f90
cmp dword [ebp + 8], 0
je 0x404d57
mov dword [ebp - 8], esp
push dword [ebp + 8]
call dword [0x42b3dd]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404d30
push 0x10e
push 0x40109db
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setne al
and eax, 1
xor eax, 1
test eax, eax
je 0x404d57
mov eax, 0
jmp 0x404f90
mov ebx, dword [0x42b3d1]
call fcn.00404c27
mov eax, 0
cmp eax, ecx
jl 0x404d82
push 0x161
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x42b3d1]
call fcn.00404c27
mov eax, 0
cmp eax, ecx
jl 0x404dc2
push 0x191
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 8], ebx
push 0x80000006
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x9dc
call fcn.004251a0
add esp, 0x10
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 1
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0xff
jg 0x404ec5
mov ebx, dword [0x42b3d1]
call fcn.00404c27
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x404e34
push 0x209
push 0x40109db
push 4
call fcn.004234de
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x404e51
push 0x209
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov dword [ebx], eax
mov ebx, dword [0x42b3d1]
call fcn.00404c27
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x404e8d
push 0x23a
push 0x40109db
push 4
call fcn.004234de
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x404eaa
push 0x23a
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov byte [ebx], 0
pop ebx
pop ecx
inc ecx
jmp 0x404dfa
add esp, 8
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x405e9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404f16
push 0x2eb
push 0x40109db
push 6
call fcn.004234de
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x404f45
push 0x2eb
push 0x40109db
push 6
call fcn.004234de
add esp, 0xc
mov ebx, dword [0x42b3d1]
call fcn.00404c27
mov eax, 0
cmp eax, ecx
jl 0x404f70
push 0x331
push 0x40109db
push 1
call fcn.004234de
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx], 1
mov eax, 1
jmp 0x404f90
mov esp, ebp
pop ebp
ret 0xc