Function at 0x4815e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4815e8
push ecx
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 0x48198b
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48194f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4948f8]
cmp dword [eax], 1
je 0x48162b
push 0
call sub.kernel32.dll_ExitThread_1
lea eax, [ebp - 8]
call fcn.00481238
mov eax, dword [ebp - 8]
mov edx, dword [0x494770]
call fcn.00405974
je 0x481927
lea eax, [ebp - 0x2c]
call fcn.00480fd0
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x49a1b8]
call fcn.00405974
je 0x4816e2
xor eax, eax
push ebp
push 0x481689
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49a1c4
call fcn.00403918
call fcn.0040305c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481693
lea edx, [ebp - 0x34]
mov eax, 0x1a
call fcn.0048b400
push dword [ebp - 0x34]
push 0x4819a4
lea eax, [ebp - 0x38]
call fcn.00480fd0
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004058e0
mov edx, dword [ebp - 0x30]
mov eax, 0x49a1c4
call fcn.00403770
lea eax, [ebp - 0x3c]
call fcn.00480fd0
mov edx, dword [ebp - 0x3c]
mov eax, 0x49a1b8
call fcn.00405584
lea edx, [ebp - 0x44]
mov eax, 0x1a
call fcn.0048b400
push dword [ebp - 0x44]
push 0x4819a4
lea eax, [ebp - 0x48]
call fcn.00480fd0
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x40]
call fcn.0040a26c
test al, al
je 0x48172c
mov eax, 0x49a1c4
call fcn.0040350c
call fcn.0040305c
jmp 0x48173b
mov eax, 0x49a1c4
call fcn.00403500
call fcn.0040305c
call fcn.0040bcc4
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [0x494acc]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.0040c8f8
push 0x4819b4
push dword [0x494770]
push 0x4819c0
push dword [ebp - 0x10]
push 0x4819cc
push 0x4819d8
push dword [0x494778]
push 0x4819d8
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x4c]
mov eax, 0x49a1c4
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
lea eax, [ebp - 0xc]
call fcn.00481378
mov eax, dword [ebp - 0xc]
mov edx, dword [0x494780]
call fcn.00405974
je 0x48190e
mov eax, dword [0x494780]
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4817d6
sub ebx, 4
mov ebx, dword [ebx]
call fcn.0040bcc4
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [0x494acc]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040c8f8
push 0x4819e4
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00409d70
push dword [ebp - 0x58]
push 0x481a0c
push dword [ebp - 0x14]
push 0x4819cc
push 0x4819d8
push dword [0x494780]
push 0x4819d8
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x54]
mov eax, 0x49a1c4
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
mov eax, 0x494780
mov edx, dword [ebp - 0xc]
call fcn.00405584
xor eax, eax
push ebp
push 0x481904
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, 0x481a20
call fcn.00473608
mov eax, dword [ebp - 0x5c]
mov edx, 0x481a34
call fcn.00405974
jne 0x4818fa
lea edx, [ebp - 0x64]
mov eax, 0x1a
call fcn.0048b400
push dword [ebp - 0x64]
push 0x4819a4
lea eax, [ebp - 0x68]
call fcn.00480fd0
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x60]
call fcn.004812b4
push edx
push eax
lea edx, [ebp - 0x6c]
mov eax, 0x481a40
call fcn.00473608
mov eax, dword [ebp - 0x6c]
call fcn.00409edc
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x4818de
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4818fa
jmp 0x4818e2
pop edx
pop eax
jge 0x4818fa
mov eax, dword [0x494c30]
push eax
push 0
push 0
push 0x48139c
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 0x48190e
mov eax, 0x49a1c4
call fcn.00403918
call fcn.0040305c
mov eax, 0x494778
call fcn.00405530
mov eax, 0x494778
mov edx, dword [ebp - 4]
call fcn.00405818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481956
mov eax, 0x494770
mov edx, dword [ebp - 8]
call fcn.00405584
ret