Function at 0x10016f98
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x10028014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x14
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], ebx
call fcn.100267f0
mov edx, 0x400
pop ecx
test eax, eax
je 0x10016fdd
push ebx
push edx
mov ecx, eax
call fcn.10020fd1
mov edi, eax
jmp 0x10016fdf
xor edi, edi
test edi, edi
jne 0x10016feb
push 2
pop eax
jmp 0x100175bb
push edx
lea ecx, [ebp - 0x54]
call fcn.10016b13
push edx
lea ecx, [ebp - 0x74]
call fcn.10016b13
push 1
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
push 6
pop ebx
push ebx
call fcn.10020ff6
push 1
test eax, eax
je 0x10017027
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
push 0xc
call fcn.10020ff6
test eax, eax
jne 0x1001703e
push 1
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 2
jmp 0x10017102
mov eax, 0xffff
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
push esi
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.1002125a
test eax, eax
jne 0x10017064
cmp dword [esi], eax
je 0x10017064
push 1
jmp 0x100170f0
push esi
push 0x100087bc
lea ecx, [ebp - 0x54]
call fcn.10021564
cmp eax, 1
jne 0x1001705d
push esi
lea eax, [ebp - 0x18]
push eax
push ecx
push 0x100087bc
lea ecx, [ebp - 0x54]
call fcn.10021698
test eax, eax
jne 0x100170bb
cmp dword [esi], 0
mov eax, dword [edi]
push 1
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x20], eax
je 0x100170ab
call dword [0x10029340]
mov ecx, edi
call dword [ebp - 0x20]
jmp 0x10017100
call dword [0x10029340]
mov ecx, edi
call dword [ebp - 0x20]
jmp 0x1001759e
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x54]
push esi
push 0x1000876c
call fcn.10021564
xor ebx, ebx
inc ebx
cmp eax, ebx
ja 0x100170ef
test eax, eax
je 0x10017108
push esi
lea eax, [ebp - 0x34]
push eax
push ecx
push 0x1000876c
lea ecx, [ebp - 0x54]
call fcn.10021588
test eax, eax
jne 0x10017108
push ebx
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 5
pop ebx
jmp 0x1001759e
push 0
lea ecx, [ebp - 0x90]
call fcn.10024458
push esi
push 0x10008760
lea ecx, [ebp - 0x54]
call fcn.10021564
cmp eax, ebx
ja 0x10017236
test eax, eax
je 0x1001714d
push esi
lea eax, [ebp - 0x90]
push eax
push ecx
push 0x10008760
lea ecx, [ebp - 0x54]
call fcn.100216fb
test eax, eax
je 0x10017236
and dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x54]
push esi
xor ebx, ebx
push 0x1000874c
mov dword [ebp - 0x24], ebx
call fcn.10021564
inc ebx
cmp eax, ebx
ja 0x10017236
test eax, eax
je 0x100171ce
push 0
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push 0x1000874c
lea ecx, [ebp - 0x54]
call fcn.100215cc
test eax, eax
je 0x10017236
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100171cb
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.10024bcd
test eax, eax
jne 0x100171cb
lea eax, [ebp - 0x2c]
mov edx, ebx
push eax
push ecx
mov ecx, 0x400
call fcn.10018aa1
test eax, eax
jne 0x100171cb
push esi
push 0x1000874c
lea ecx, [ebp - 0x54]
call fcn.10021564
push 1
jmp 0x10017237
xor ebx, ebx
inc ebx
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x54]
push esi
push 0x100087a4
call fcn.10021564
cmp eax, ebx
ja 0x10017236
test eax, eax
je 0x10017202
push 0
push esi
lea eax, [ebp - 0x30]
push eax
push 0
push 0x100087a4
lea ecx, [ebp - 0x54]
call fcn.100215cc
test eax, eax
je 0x10017236
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x54]
push esi
push 0x1000877c
call fcn.10021564
cmp eax, ebx
ja 0x10017236
test eax, eax
je 0x1001724f
push 0
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push 0x1000877c
lea ecx, [ebp - 0x54]
call fcn.100215cc
test eax, eax
jne 0x1001724f
push ebx
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 5
pop ebx
jmp 0x10017593
push 0
lea ecx, [ebp - 0x100]
call fcn.10024458
lea eax, [ebp - 0x1c]
push eax
push 2
pop eax
mov ecx, eax
call fcn.10018aea
test eax, eax
je 0x100172b3
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.10021564
cmp eax, ebx
ja 0x1001729a
test eax, eax
je 0x100172b3
push esi
lea eax, [ebp - 0x100]
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100216fb
test eax, eax
jne 0x100172b3
mov eax, dword [edi]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 5
pop ebx
jmp 0x10017588
push 0
lea ecx, [ebp - 0xe4]
call fcn.10024458
lea eax, [ebp - 0x1c]
push eax
push 3
pop ecx
call fcn.10018aea
test eax, eax
je 0x10017315
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.10021564
cmp eax, ebx
ja 0x100172fc
test eax, eax
je 0x10017315
push esi
lea eax, [ebp - 0xe4]
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100216fb
test eax, eax
jne 0x10017315
mov eax, dword [edi]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 5
pop ebx
jmp 0x1001757d
push 0
lea ecx, [ebp - 0xc8]
call fcn.10024458
lea eax, [ebp - 0x1c]
push eax
push 4
pop ecx
call fcn.10018aea
test eax, eax
je 0x10017377
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.10021564
cmp eax, ebx
ja 0x1001735e
test eax, eax
je 0x10017377
push esi
lea eax, [ebp - 0xc8]
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100216fb
test eax, eax
jne 0x10017377
mov eax, dword [edi]
push ebx
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 5
pop ebx
jmp 0x10017572
push 0
lea ecx, [ebp - 0xac]
call fcn.10024458
lea eax, [ebp - 0x1c]
push eax
push 5
pop ebx
mov ecx, ebx
call fcn.10018aea
test eax, eax
je 0x100173da
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.10021564
cmp eax, 1
ja 0x100173c3
test eax, eax
je 0x100173da
push esi
lea eax, [ebp - 0xac]
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100216fb
test eax, eax
jne 0x100173da
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
jmp 0x10017567
push dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
push dword [ebp - 0x78]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push dword [ebp - 0x30]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x38]
call fcn.100175ce
test eax, eax
jne 0x1001741a
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
xor ebx, ebx
inc ebx
jmp 0x10017567
cmp dword [ebp + 0x10], 0
je 0x10017520
mov eax, dword [ebp - 0x78]
xor esi, esi
test eax, eax
jne 0x100174aa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
mov dword [ebp - 0x28], eax
push ecx
push ecx
push ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001750a
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100267f0
mov esi, eax
pop ecx
test esi, esi
jne 0x10017492
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 2
pop eax
mov ebx, eax
jmp 0x10017567
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push esi
inc eax
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, esi
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.100177ae
test eax, eax
jne 0x100174cc
test esi, esi
je 0x1001750a
push esi
call fcn.100267eb
pop ecx
jmp 0x1001750a
test esi, esi
je 0x100174d7
push esi
call fcn.100267eb
pop ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.10017eb5
test eax, eax
je 0x1001750a
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.10017f44
test eax, eax
je 0x1001750a
push dword [ebp - 0x58]
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.10017926
test eax, eax
jne 0x10017553
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 7
jmp 0x10017550
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.1001789a
test eax, eax
je 0x1001753c
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.10017a48
test eax, eax
jne 0x10017553
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
push 8
pop ebx
jmp 0x10017567
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10029340]
mov ecx, edi
call esi
xor ebx, ebx
lea ecx, [ebp - 0xac]
call fcn.100244a1
lea ecx, [ebp - 0xc8]
call fcn.100244a1
lea ecx, [ebp - 0xe4]
call fcn.10009f1f
lea ecx, [ebp - 0x100]
call fcn.100244a1
lea ecx, [ebp - 0x90]
call fcn.100244a1
mov esi, 0x10001408
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x74], esi
call fcn.10018a0b
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], esi
call fcn.10018a0b
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026d70
mov esp, ebp
pop ebp
ret 0x14