Function at 0x1001868b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov dword [ebp - 0x60], 0x1694
mov dword [ebp - 0x8c], 0x10006d28
cmp dword [ebp - 0x60], 0x16a6
jle 0x1001873d
and dword [ebp - 0x28], 0
jmp 0x100186c0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x168
jge 0x1001873d
and dword [ebp - 0x18], 0
jmp 0x100186d6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4306
jge 0x10018738
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
shl eax, cl
cdq
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xcc], eax
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xec]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xec]
call fcn.100252df
jmp 0x100186cf
jmp 0x100186b9
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10018b10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
test eax, eax
je 0x100188ae
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x30], 0x50d
mov dword [ebp - 0x88], 0x10006d80
cmp dword [ebp - 0x30], 0x814
jle 0x1001885e
and dword [ebp - 0x10], 0
jmp 0x100187e5
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7767
jge 0x1001885e
and dword [ebp - 0x20], 0
jmp 0x100187fb
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x705b
jge 0x1001885c
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xd4], eax
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x104]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x104]
call fcn.100252df
jmp 0x100187f4
jmp 0x100187de
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10018874
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x10018894
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x94]
call fcn.10025597
mov dword [eax], 0x9fa553fc
jmp 0x10018869
cmp dword [ebp - 0x30], 0x370
jge 0x100188a9
push dword [ebp - 0x88]
call fcn.1008287d
pop ecx
jmp 0x10018b0e
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x7f73
mov dword [ebp - 0x7c], 0x10006da8
cmp dword [ebp - 0x4c], 0x80b6
jle 0x100189d1
and dword [ebp - 0x2c], 0
jmp 0x1001890f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6690
jge 0x100189d1
and dword [ebp - 0x24], 0
jmp 0x10018929
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4324
jge 0x100189cc
and dword [ebp - 0x14], 0
jmp 0x10018943
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2651
jge 0x100189c7
and dword [ebp - 0x1c], 0
jmp 0x10018959
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x80
jge 0x100189c2
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x1c]
xor edx, dword [ebp - 0x24]
or edx, dword [ebp - 0x2c]
mov eax, edx
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0xd0], eax
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x11c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x11c]
call fcn.100252df
jmp 0x10018952
jmp 0x1001893c
jmp 0x10018922
jmp 0x10018908
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x4c], 0x7def
jge 0x100189e9
push dword [ebp - 0x7c]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10025597
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10025597
cmp dword [eax], 0xc520
jle 0x10018a17
mov dword [ebp - 0x3c], 1
jmp 0x10018a1b
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
je 0x10018a2e
mov dword [ebp - 0x5c], 1
jmp 0x10018a32
and dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 4
jbe 0x10018a41
mov dword [ebp - 0x44], 1
jmp 0x10018a45
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0xe434
jne 0x10018a57
mov dword [ebp - 0x54], 1
jmp 0x10018a5b
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0xa6f
jle 0x10018a6d
mov dword [ebp - 0x34], 1
jmp 0x10018a71
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10018a97
mov eax, dword [ebp - 0x50]
cmp dword [eax], 0
je 0x10018a97
mov dword [ebp - 0x38], 1
jmp 0x10018a9b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax]
cmp esi, ecx
jne 0x10018ab9
mov eax, dword [ebp - 4]
cmp dword [eax], 0
mov eax, dword [ebp - 4]
mov esi, dword [eax]
neg esi
push 1
mov ecx, dword [ebp - 0xc]
call fcn.10025597
cmp esi, dword [eax]
je 0x10018adc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10018adc
and dword [ebp - 0x48], 0
jmp 0x10018ae3
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jle 0x10018af6
mov dword [ebp - 0x58], 1
jmp 0x10018afa
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x50]
mov esi, dword [eax]
sub esi, dword [ebp - 0x58]
push 0
mov ecx, dword [ebp - 0xc]
call fcn.10025597
mov dword [eax], esi
jmp 0x10018b24
push 0x2d11
push 0x71c9
push 0
call fcn.1001c5cf
add esp, 0xc
cmp dword [ebp - 0x60], 0x1556
jge 0x10018b39
push dword [ebp - 0x8c]
call fcn.1008287d
pop ecx
pop esi
mov esp, ebp
pop ebp
ret