Function at 0x481538
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x481540
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 0x4818e3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4818a7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4958f8]
cmp dword [eax], 1
je 0x481583
push 0
call sub.kernel32.dll_ExitThread_1
lea eax, [ebp - 8]
call fcn.00481190
mov eax, dword [ebp - 8]
mov edx, dword [0x495770]
call fcn.00405974
je 0x48187f
lea eax, [ebp - 0x2c]
call fcn.00480f28
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x49b1b8]
call fcn.00405974
je 0x48163a
xor eax, eax
push ebp
push 0x4815e1
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 0x4815eb
lea edx, [ebp - 0x34]
mov eax, 0x1a
call fcn.0048bd88
push dword [ebp - 0x34]
push 0x4818fc
lea eax, [ebp - 0x38]
call fcn.00480f28
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.00480f28
mov edx, dword [ebp - 0x3c]
mov eax, 0x49b1b8
call fcn.00405584
lea edx, [ebp - 0x44]
mov eax, 0x1a
call fcn.0048bd88
push dword [ebp - 0x44]
push 0x4818fc
lea eax, [ebp - 0x48]
call fcn.00480f28
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 0x481684
mov eax, 0x49b1c4
call fcn.0040350c
call fcn.0040305c
jmp 0x481693
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 0x48190c
push dword [0x495770]
push 0x481918
push dword [ebp - 0x10]
push 0x481924
push 0x481930
push dword [0x495778]
push 0x481930
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.004812d0
mov eax, dword [ebp - 0xc]
mov edx, dword [0x495780]
call fcn.00405974
je 0x481866
mov eax, dword [0x495780]
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x48172e
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 0x48193c
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00409d78
push dword [ebp - 0x58]
push 0x481964
push dword [ebp - 0x14]
push 0x481924
push 0x481930
push dword [0x495780]
push 0x481930
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 0x48185c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x5c]
mov eax, 0x481978
call fcn.00473744
mov eax, dword [ebp - 0x5c]
mov edx, 0x48198c
call fcn.00405974
jne 0x481852
lea edx, [ebp - 0x64]
mov eax, 0x1a
call fcn.0048bd88
push dword [ebp - 0x64]
push 0x4818fc
lea eax, [ebp - 0x68]
call fcn.00480f28
push dword [ebp - 0x68]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.004058e0
mov eax, dword [ebp - 0x60]
call fcn.0048120c
push edx
push eax
lea edx, [ebp - 0x6c]
mov eax, 0x481998
call fcn.00473744
mov eax, dword [ebp - 0x6c]
call fcn.00409ee4
shl eax, 0xa
cdq
cmp edx, dword [esp + 4]
jne 0x481836
cmp eax, dword [esp]
pop edx
pop eax
jae 0x481852
jmp 0x48183a
pop edx
pop eax
jge 0x481852
mov eax, dword [0x495c30]
push eax
push 0
push 0
push 0x4812f4
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 0x481866
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 0x4818ae
mov eax, 0x495770
mov edx, dword [ebp - 8]
call fcn.00405584
ret