Function at 0x481318
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x481320
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 0x4816c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x481687
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4948f4]
cmp dword [eax], 1
je 0x481363
push 0
call sub.KERNEL32.DLL_ExitThread
lea eax, [ebp - 8]
call fcn.00480f70
mov eax, dword [ebp - 8]
mov edx, dword [0x494770]
call fcn.00405974
je 0x48165f
lea eax, [ebp - 0x2c]
call fcn.00480d08
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x49a1b4]
call fcn.00405974
je 0x48141a
xor eax, eax
push ebp
push 0x4813c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49a1c0
call fcn.00403918
call fcn.0040305c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4813cb
lea edx, [ebp - 0x34]
mov eax, 0x1a
call fcn.0048adcc
push dword [ebp - 0x34]
push 0x4816dc
lea eax, [ebp - 0x38]
call fcn.00480d08
push dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004058e0
mov edx, dword [ebp - 0x30]
mov eax, 0x49a1c0
call fcn.00403770
lea eax, [ebp - 0x3c]
call fcn.00480d08
mov edx, dword [ebp - 0x3c]
mov eax, 0x49a1b4
call fcn.00405584
lea edx, [ebp - 0x44]
mov eax, 0x1a
call fcn.0048adcc
push dword [ebp - 0x44]
push 0x4816dc
lea eax, [ebp - 0x48]
call fcn.00480d08
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 0x481464
mov eax, 0x49a1c0
call fcn.0040350c
call fcn.0040305c
jmp 0x481473
mov eax, 0x49a1c0
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 [0x494ac8]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.0040c8f8
push 0x4816ec
push dword [0x494770]
push 0x4816f8
push dword [ebp - 0x10]
push 0x481704
push 0x481710
push dword [0x494778]
push 0x481710
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x4c]
mov eax, 0x49a1c0
call fcn.00405cd0
call fcn.004040ac
call fcn.0040305c
lea eax, [ebp - 0xc]
call fcn.004810b0
mov eax, dword [ebp - 0xc]
mov edx, dword [0x494780]
call fcn.00405974
je 0x481646
mov eax, dword [0x494780]
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x48150e
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 [0x494ac8]
mov edx, dword [edx]
lea eax, [ebp - 0x14]
call fcn.0040c8f8
push 0x48171c
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00409d70
push dword [ebp - 0x58]
push 0x481744
push dword [ebp - 0x14]
push 0x481704
push 0x481710
push dword [0x494780]
push 0x481710
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.004058e0
mov edx, dword [ebp - 0x54]
mov eax, 0x49a1c0
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 0x48163c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, 0x481758
call fcn.004735e8
mov eax, dword [ebp - 0x5c]
mov edx, 0x48176c
call fcn.00405974
jne 0x481632
lea edx, [ebp - 0x64]
mov eax, 0x1a
call fcn.0048adcc
push dword [ebp - 0x64]
push 0x4816dc
lea eax, [ebp - 0x68]
call fcn.00480d08
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x60]
call fcn.00480fec
push edx
push eax
lea edx, [ebp - 0x6c]
mov eax, 0x481778
call fcn.004735e8
mov eax, dword [ebp - 0x6c]
call fcn.00409edc
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x481616
cmp eax, dword [esp]
pop edx
pop eax
jae 0x481632
jmp 0x48161a
pop edx
pop eax
jge 0x481632
mov eax, dword [0x494c2c]
push eax
push 0
push 0
push 0x4810d4
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481646
mov eax, 0x49a1c0
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 0x48168e
mov eax, 0x494770
mov edx, dword [ebp - 8]
call fcn.00405584
ret