Function at 0x49f5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov byte [ebp - 0x15], 1
push 0x4ef028
lea ecx, [ebp - 0x10]
call fcn.004018e0
push 0x4ef024
lea ecx, [ebp - 0xc]
call fcn.004018e0
mov dword [ebp - 4], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x49f7f9
lea ecx, [ebp - 0x38]
call fcn.00401520
lea ecx, [ebp - 0x3c]
call fcn.00401520
lea ecx, [ebp - 0x30]
call fcn.00401520
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.0049f060
add esp, 0xc
mov ecx, dword [ebp - 0x28]
push ecx
push 0x4b8b2c
lea edx, [ebp - 0x38]
push edx
call fcn.004024e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.0049f510
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
push 0x4b8b2c
lea ecx, [ebp - 0x30]
push ecx
call fcn.004024e0
add esp, 0xc
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x1c]
push edx
push 0x4b8b2c
lea eax, [ebp - 0x38]
push eax
call fcn.004024e0
add esp, 0xc
mov eax, dword [ebp + 8]
cdq
mov dword [0x4c6660], eax
mov dword [0x4c6664], edx
cmp dword [0x4c6664], 0
ja 0x49f6fe
jb 0x49f6ac
cmp dword [0x4c6660], 0
ja 0x49f6fe
mov dword [0x4ef004], 0
push 0
push 1
push 8
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x44], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401580
lea ecx, [ebp - 0x3c]
call fcn.00401580
lea ecx, [ebp - 0x38]
call fcn.00401580
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x44]
jmp 0x49fa0c
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
mov ecx, dword [0x4c6664]
cmp ecx, dword [ebp - 0x60]
jb 0x49f772
ja 0x49f723
mov edx, dword [0x4c6660]
cmp edx, dword [ebp - 0x64]
jb 0x49f772
mov dword [0x4ef004], 0
push 0
push 1
push 9
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x48], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401580
lea ecx, [ebp - 0x3c]
call fcn.00401580
lea ecx, [ebp - 0x38]
call fcn.00401580
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x48]
jmp 0x49fa0c
cmp dword [0x4c6664], 0
ja 0x49f7dc
jb 0x49f786
cmp dword [0x4c6660], 3
jae 0x49f7dc
cmp dword [0x4c66d8], 2
jne 0x49f7dc
mov dword [0x4ef004], 0
push 0
push 1
push 0xa
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x4c], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401580
lea ecx, [ebp - 0x3c]
call fcn.00401580
lea ecx, [ebp - 0x38]
call fcn.00401580
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x4c]
jmp 0x49fa0c
lea ecx, [ebp - 0x30]
call fcn.00401580
lea ecx, [ebp - 0x3c]
call fcn.00401580
lea ecx, [ebp - 0x38]
call fcn.00401580
jmp 0x49f894
cmp dword [0x4c66d8], 2
jne 0x49f84b
cmp dword [0x4c6664], 0
ja 0x49f84b
jb 0x49f816
cmp dword [0x4c6660], 3
jae 0x49f84b
mov dword [0x4ef004], 0
push 0
push 1
push 0xa
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x50], 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x50]
jmp 0x49fa0c
cmp dword [0x4c6664], 0
ja 0x49f894
jb 0x49f85f
cmp dword [0x4c6660], 0
ja 0x49f894
mov dword [0x4ef004], 0
push 0
push 1
push 8
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x54], 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x54]
jmp 0x49fa0c
lea ecx, [ebp - 0x10]
call fcn.00401870
movzx eax, al
test eax, eax
je 0x49f8b2
push 0x4ef024
mov ecx, 0x4ef028
call fcn.004015a0
mov eax, dword [0x4c0c7c]
cdq
push edx
push eax
mov ecx, dword [0x4c6664]
push ecx
mov edx, dword [0x4c6660]
push edx
call fcn.0046d370
mov dword [0x4c6660], eax
mov dword [0x4c6664], edx
mov dword [ebp - 0x14], 1
mov dword [0x4c6644], 1
cmp dword [0x4ef004], 0
je 0x49f929
mov dword [0x4ef004], 0
push 0
push 1
push 0xb
call dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x58], 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x58]
jmp 0x49fa0c
mov dword [0x4ef004], 1
mov dword [ebp - 8], 0
cmp dword [0x4c6644], 0
je 0x49f96a
mov dword [0x4c0c74], 0xffffffff
mov dword [0x4c6670], 0
mov dword [0x4c6674], 0
mov dword [ebp - 0x14], 0
jmp 0x49f982
cmp dword [0x4c6640], 0
je 0x49f982
mov eax, dword [0x4c66d0]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [0x4c66d8], 1
jne 0x49f9df
cmp dword [ebp - 4], 0
jle 0x49f9df
mov dword [ebp - 0x40], 0
cmp dword [ebp - 4], 0x80
jge 0x49f9df
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov ecx, dword [0x4c6664]
push ecx
mov edx, dword [0x4c6660]
push edx
call fcn.0046d4f0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 4
jb 0x49f9df
ja 0x49f9ce
cmp dword [ebp - 0x6c], 0
jbe 0x49f9df
mov eax, dword [ebp - 4]
shl eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], 1
jmp 0x49f998
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x49e310
call fcn.0046cc01
add esp, 0xc
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0xc]
call fcn.00401580
lea ecx, [ebp - 0x10]
call fcn.00401580
mov eax, dword [ebp - 0x5c]
mov esp, ebp
pop ebp
ret