Function at 0x4815e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4815f0
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 0x481993
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x481957
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4958f8]
cmp dword [eax], 1
je 0x481633
push 0
call sub.kernel32.dll_ExitThread_1
lea eax, [ebp - 8]
call fcn.00481240
mov eax, dword [ebp - 8]
mov edx, dword [0x495770]
call fcn.00405974
je 0x48192f
lea eax, [ebp - 0x2c]
call fcn.00480fd8
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x49b1b8]
call fcn.00405974
je 0x4816ea
xor eax, eax
push ebp
push 0x481691
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49b1c4
call fcn.00403918
call fcn.0040305c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48169b
lea edx, [ebp - 0x34]
mov eax, 0x1a
call fcn.0048b61c
push dword [ebp - 0x34]
push 0x4819ac
lea eax, [ebp - 0x38]
call fcn.00480fd8
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004058e0
mov edx, dword [ebp - 0x30]
mov eax, 0x49b1c4
call fcn.00403770
lea eax, [ebp - 0x3c]
call fcn.00480fd8
mov edx, dword [ebp - 0x3c]
mov eax, 0x49b1b8
call fcn.00405584
lea edx, [ebp - 0x44]
mov eax, 0x1a
call fcn.0048b61c
push dword [ebp - 0x44]
push 0x4819ac
lea eax, [ebp - 0x48]
call fcn.00480fd8
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x40]
call fcn.0040a274
test al, al
je 0x481734
mov eax, 0x49b1c4
call fcn.0040350c
call fcn.0040305c
jmp 0x481743
mov eax, 0x49b1c4
call fcn.00403500
call fcn.0040305c
call fcn.0040bccc
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [0x495acc]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.0040c900
push 0x4819bc
push dword [0x495770]
push 0x4819c8
push dword [ebp - 0x10]
push 0x4819d4
push 0x4819e0
push dword [0x495778]
push 0x4819e0
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x4c]
mov eax, 0x49b1c4
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
lea eax, [ebp - 0xc]
call fcn.00481380
mov eax, dword [ebp - 0xc]
mov edx, dword [0x495780]
call fcn.00405974
je 0x481916
mov eax, dword [0x495780]
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4817de
sub ebx, 4
mov ebx, dword [ebx]
call fcn.0040bccc
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, dword [0x495acc]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040c900
push 0x4819ec
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00409d78
push dword [ebp - 0x58]
push 0x481a14
push dword [ebp - 0x14]
push 0x4819d4
push 0x4819e0
push dword [0x495780]
push 0x4819e0
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x54]
mov eax, 0x49b1c4
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
mov eax, 0x495780
mov edx, dword [ebp - 0xc]
call fcn.00405584
xor eax, eax
push ebp
push 0x48190c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, 0x481a28
call fcn.00473610
mov eax, dword [ebp - 0x5c]
mov edx, 0x481a3c
call fcn.00405974
jne 0x481902
lea edx, [ebp - 0x64]
mov eax, 0x1a
call fcn.0048b61c
push dword [ebp - 0x64]
push 0x4819ac
lea eax, [ebp - 0x68]
call fcn.00480fd8
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x60]
call fcn.004812bc
push edx
push eax
lea edx, [ebp - 0x6c]
mov eax, 0x481a48
call fcn.00473610
mov eax, dword [ebp - 0x6c]
call fcn.00409ee4
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x4818e6
cmp eax, dword [esp]
pop edx
pop eax
jae 0x481902
jmp 0x4818ea
pop edx
pop eax
jge 0x481902
mov eax, dword [0x495c30]
push eax
push 0
push 0
push 0x4813a4
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 0x481916
mov eax, 0x49b1c4
call fcn.00403918
call fcn.0040305c
mov eax, 0x495778
call fcn.00405530
mov eax, 0x495778
mov edx, dword [ebp - 4]
call fcn.00405818
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48195e
mov eax, 0x495770
mov edx, dword [ebp - 8]
call fcn.00405584
ret