Function at 0x48043c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x480444
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004059cc
xor eax, eax
push ebp
push 0x48074b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48070f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4923ac]
cmp dword [eax], 1
je 0x480486
push 0
call sub.kernel32.dll_ExitThread_1
lea eax, [ebp - 8]
call fcn.00480040
mov eax, dword [ebp - 8]
mov edx, dword [0x49222c]
call fcn.00405974
je 0x4806e7
lea edx, [ebp - 0x30]
mov eax, 0x1a
call fcn.00489414
push dword [ebp - 0x30]
push 0x480764
lea eax, [ebp - 0x34]
call fcn.0047fdd8
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x2c]
call fcn.0040a25c
test al, al
je 0x4804ec
mov eax, 0x4981bc
call fcn.0040350c
call fcn.0040305c
jmp 0x4804fb
mov eax, 0x4981bc
call fcn.00403500
call fcn.0040305c
call fcn.0040bcb4
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [0x492580]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.0040c8e8
push 0x480774
push dword [0x49222c]
push 0x480780
push dword [ebp - 0x10]
push 0x48078c
push 0x480798
push dword [0x492234]
push 0x480798
lea eax, [ebp - 0x38]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x38]
mov eax, 0x4981bc
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
lea eax, [ebp - 0xc]
call fcn.00480180
mov eax, dword [ebp - 0xc]
mov edx, dword [0x49223c]
call fcn.00405974
je 0x4806ce
mov eax, dword [0x49223c]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x480596
sub ebx, 4
mov ebx, dword [ebx]
call fcn.0040bcb4
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [0x492580]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040c8e8
push 0x4807a4
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.00409d60
push dword [ebp - 0x44]
push 0x4807cc
push dword [ebp - 0x14]
push 0x48078c
push 0x480798
push dword [0x49223c]
push 0x480798
lea eax, [ebp - 0x40]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x40]
mov eax, 0x4981bc
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
mov eax, 0x49223c
mov edx, dword [ebp - 0xc]
call fcn.00405584
xor eax, eax
push ebp
push 0x4806c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x48]
mov eax, 0x4807e0
call fcn.0046d960
mov eax, dword [ebp - 0x48]
mov edx, 0x4807f4
call fcn.00405974
jne 0x4806ba
lea edx, [ebp - 0x50]
mov eax, 0x1a
call fcn.00489414
push dword [ebp - 0x50]
push 0x480764
lea eax, [ebp - 0x54]
call fcn.0047fdd8
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x4c]
call fcn.004800bc
push edx
push eax
lea edx, [ebp - 0x58]
mov eax, 0x480800
call fcn.0046d960
mov eax, dword [ebp - 0x58]
call fcn.00409ecc
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x48069e
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4806ba
jmp 0x4806a2
pop edx
pop eax
jge 0x4806ba
mov eax, dword [0x4926e4]
push eax
push 0
push 0
push 0x4801a4
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4806ce
mov eax, 0x4981bc
call fcn.00403918
call fcn.0040305c
mov eax, 0x492234
call fcn.00405530
mov eax, 0x492234
mov edx, dword [ebp - 4]
call fcn.00405818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480716
mov eax, 0x49222c
mov edx, dword [ebp - 8]
call fcn.00405584
ret