Function at 0x10181d1
Capabilities:
Accept command line arguments

Disassembly:
push 0x6c
mov eax, 0x1054850
call fcn.01022092
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x18], 0x80000000
call fcn.0101564f
mov esi, 0x1064ac0
xor edi, edi
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.01015177
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
call fcn.01015177
push edi
mov byte [ebp - 4], 2
call dword [fcn.0100153c]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], edi
call fcn.01014eae
lea ecx, [ebp - 0x44]
mov word [ebp - 0x70], di
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
call fcn.01014eae
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call fcn.01014eae
push 0x1064630
push dword [0x1064628]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.01035c2a
test eax, eax
je 0x101848c
call fcn.0103507a
mov dword [0x1063148], eax
call fcn.01016b11
call fcn.01017014
call dword [0x1001304]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [0x1001448]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x10182ce
push 0x1003460
push ebx
call fcn.01016bdd
push 0x1005084
push 3
call fcn.01016bdd
jmp 0x101848c
push esi
push 0x100505c
push ebx
call fcn.01016dbf
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 0x10148c5
push ebx
push 0x10
push edi
mov dword [ebp - 0x20], edi
call dword [0x1001338]
test eax, eax
je 0x101830c
cmp dword [ebp - 0x20], 0x18
jne 0x101830c
push 0x1005018
push ebx
call fcn.01016bdd
mov eax, ebx
jmp 0x101831a
push 0x1004fd8
push ebx
call fcn.01016bdd
push 2
pop eax
push eax
push dword [0x1064628]
push 0x1003104
call fcn.01020aa5
cmp eax, edi
je 0x1018341
push 0x1004f60
push eax
push 3
call fcn.01016c91
jmp 0x101848c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea esi, [ebp - 0x78]
push dword [ebp - 0x24]
call fcn.0101615d
mov esi, eax
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], edi
je 0x101836c
push eax
push 0x1004f48
push ebx
call fcn.01016dbf
add esp, 0xc
push 0x1003460
push ebx
call fcn.01016bdd
cmp esi, edi
jne 0x1018392
push dword [ebp - 0x14]
push 3
call fcn.01016bdd
lea ecx, [ebp - 0x14]
call fcn.01016a55
jmp 0x101848c
cmp dword [ebp - 0x78], edi
jne 0x101839a
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x78], 4
jne 0x10183cd
push 0x1004f44
lea ecx, [ebp - 0x20]
call fcn.01016a0f
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.01016a55
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.01014c32
jmp 0x101848c
cmp dword [ebp - 0x38], edi
je 0x1018407
cmp dword [0x1063148], 2
jne 0x10183e4
push 0x1004e90
push 2
jmp 0x1018402
call fcn.0102025a
test eax, eax
je 0x10183fb
push 0x1004e38
mov dword [0x106462c], ebx
push ebx
jmp 0x1018402
push 0x1004dd0
push 3
call fcn.01016bdd
push dword [ebp - 0x3c]
mov esi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push dword [esi]
call fcn.01016a0f
call fcn.010158d9
cmp eax, edi
jne 0x1018436
push dword [esi]
push 0x1004d60
push 3
call fcn.01016dbf
add esp, 0xc
jmp 0x101848c
lea eax, [ebp - 0x1c]
push eax
call fcn.0103653c
test eax, eax
jne 0x1018454
push dword [ebp - 0x1c]
push 0x1004d18
push ebx
call fcn.01016dbf
add esp, 0xc
mov ebx, dword [0x10142e4]
push edi
push 0x10176d0
call ebx
cmp dword [ebp - 0x78], 1
je 0x101847a
jle 0x1018485
cmp dword [ebp - 0x78], 3
jg 0x1018485
lea esi, [ebp - 0x78]
call fcn.01018000
jmp 0x1018482
lea ecx, [ebp - 0x78]
call fcn.0101774a
mov dword [ebp - 0x18], eax
push edi
push edi
call ebx
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
push 0x1004ce0
push ebx
call fcn.01016dbf
add esp, 0xc
call fcn.01020691
cmp dword [0x106462c], edi
je 0x10184af
call fcn.010203dd
cmp dword [ebp - 0x10], edi
je 0x10184bd
push dword [ebp - 0x10]
call dword [0x100130c]
call fcn.01016fa0
mov ecx, 0x1064634
call fcn.01020062
call dword [fcn.01001538]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01014c32
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01014c32
lea ecx, [ebp - 0x78]
call fcn.0101567d
mov eax, dword [ebp - 0x18]
call fcn.0102217e
ret