Function at 0x47fd84
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x47fd8c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058ec
xor eax, eax
push ebp
push 0x4800f3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4800b7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4926d8]
cmp dword [eax], 1
je 0x47fdce
push 0
call sub.kernel32.dll_ExitThread
lea eax, [ebp - 8]
call fcn.0047f9f4
mov eax, dword [ebp - 8]
mov edx, dword [0x49254c]
call fcn.00405894
je 0x48008f
lea eax, [ebp - 0x44]
call fcn.0047fb34
lea eax, [ebp - 0x44]
mov edx, 0x48010c
call fcn.00405738
mov eax, dword [ebp - 0x44]
call fcn.0040a1e4
test al, al
je 0x47fe1c
mov eax, 0x49b9a8
call fcn.00403500
call fcn.0040304c
jmp 0x47fe2b
mov eax, 0x49b9a8
call fcn.004034f4
call fcn.0040304c
mov edx, dword [0x492560]
mov eax, 0x49b9a8
call fcn.00405bf0
call fcn.0040409c
call fcn.0040304c
call fcn.0040bc38
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [0x4928c8]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.0040c86c
call fcn.0040bc0c
fstp qword [ebp - 0x30]
wait
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov edx, dword [0x492748]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040c86c
push 0x480120
push dword [0x49254c]
push 0x480138
push 0x480144
push 0x480150
push dword [ebp - 0x10]
push 0x480160
push dword [ebp - 0x14]
push 0x480144
push dword [0x492554]
push 0x480144
push dword [0x492560]
push 0x480144
lea eax, [ebp - 0x48]
mov edx, 0xd
call fcn.00405800
mov edx, dword [ebp - 0x48]
mov eax, 0x49b9a8
call fcn.00405bf0
call fcn.0040409c
call fcn.0040304c
lea eax, [ebp - 0xc]
call fcn.0047fb74
mov eax, dword [ebp - 0xc]
mov edx, dword [0x49255c]
call fcn.00405894
je 0x480076
mov edx, dword [0x492560]
mov eax, 0x49b9a8
call fcn.00405bf0
call fcn.0040409c
call fcn.0040304c
mov eax, dword [0x49255c]
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x47ff31
sub ebx, 4
mov ebx, dword [ebx]
call fcn.0040bc38
fstp qword [ebp - 0x38]
wait
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov edx, dword [0x4928c8]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
call fcn.0040c86c
call fcn.0040bc0c
fstp qword [ebp - 0x40]
wait
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov edx, dword [0x492748]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
call fcn.0040c86c
push 0x480170
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00409ce8
push dword [ebp - 0x54]
push 0x480198
push 0x480144
push 0x480150
push dword [ebp - 0x18]
push 0x480160
push dword [ebp - 0x1c]
push 0x480144
push dword [0x49255c]
push 0x480144
push dword [0x492560]
push 0x480144
lea eax, [ebp - 0x50]
mov edx, 0xd
call fcn.00405800
mov edx, dword [ebp - 0x50]
mov eax, 0x49b9a8
call fcn.00405bf0
call fcn.0040409c
call fcn.0040304c
mov eax, 0x49255c
mov edx, dword [ebp - 0xc]
call fcn.004054c0
xor eax, eax
push ebp
push 0x48006c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4925cc]
mov eax, dword [eax]
mov edx, 0x4801a8
call fcn.00405894
jne 0x480062
lea eax, [ebp - 0x58]
call fcn.0047fb34
lea eax, [ebp - 0x58]
mov edx, 0x48010c
call fcn.00405738
mov eax, dword [ebp - 0x58]
call fcn.0047fa70
push edx
push eax
mov eax, dword [0x4925b0]
mov eax, dword [eax]
call fcn.00409e54
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x480046
cmp eax, dword [esp]
pop edx
pop eax
jae 0x480062
jmp 0x48004a
pop edx
pop eax
jge 0x480062
mov eax, dword [0x492a34]
push eax
push 0
push 0
push 0x47fb98
push 0
push 0
call sub.kernel32.dll_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x480076
mov eax, 0x49b9a8
call fcn.0040390c
call fcn.0040304c
mov eax, 0x492554
call fcn.0040546c
mov eax, 0x492554
mov edx, dword [ebp - 4]
call fcn.00405738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4800be
mov eax, 0x49254c
mov edx, dword [ebp - 8]
call fcn.004054c0
ret