Function at 0x1017f58
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8ac
mov eax, dword [0x1048628]
push ebx
push edi
mov edx, ecx
mov dword [ebp - 4], eax
xor eax, eax
push 0x14
pop ecx
lea edi, [ebp - 0x894]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x8ac]
stosd dword es:[edi], eax
xor ebx, ebx
cmp dword [edx + 0xc], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x8a0], edx
mov dword [ebp - 0x898], ebx
stosd dword es:[edi], eax
jne 0x1017fae
push 0x100319c
push 2
call fcn.0102ae4b
mov eax, 0x8000ffff
jmp 0x10182c8
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1003168
push 5
call fcn.0102ae85
add esp, 0xc
push 0x1003158
call fcn.0101b668
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x89c], edi
je 0x1018054
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003144
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x101800c
push 0x1003130
push edi
call esi
mov ebx, eax
test ebx, ebx
jne 0x101800c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [ebp - 0x89c], ebx
jmp 0x1018054
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
test edi, edi
je 0x1018054
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1003110
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1018038
mov dword [ebp - 0x898], 1
jmp 0x1018054
push 0x10030e0
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1018054
push 0x10030ac
push 5
call fcn.0102ae4b
xor ebx, ebx
xor eax, eax
xor esi, esi
cmp dword [ebp - 0x898], esi
push 0x100309c
setne al
push 0x40
mov dword [ebp - 0x890], esi
mov dword [ebp - 0x88c], esi
mov dword [ebp - 0x888], esi
lea eax, [eax + eax + 0x64]
mov dword [ebp - 0x894], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0100ed85
mov eax, dword [ebp - 0x8a0]
mov ecx, dword [eax]
cmp ecx, esi
je 0x10180a1
call fcn.010200d1
push eax
jmp 0x10180a6
push 0x1003060
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x884]
push 0x3f
push eax
call fcn.01017ed4
add esp, 0x10
cmp ebx, esi
mov edi, 0x80070000
je 0x101820b
cmp dword [0x104a44c], esi
je 0x1018108
push 0x100
lea eax, [ebp - 0x244]
push eax
push 0xb5
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x1018108
lea eax, [ebp - 0x244]
push eax
push esi
push 0x5d5
push dword [0x104a44c]
call fcn.0101c87f
push 0x1003028
push 5
pop esi
push esi
call fcn.0102ae4b
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x894]
push eax
call ebx
test eax, eax
jne 0x1018200
mov eax, dword [ebp - 0x8ac]
xor ebx, ebx
cmp eax, 0x78
jne 0x1018145
push 0x1002ff4
jmp 0x1018205
cmp eax, 0x422
je 0x1018189
cmp eax, 0x70
je 0x1018190
cmp eax, 0x50
jne 0x1018169
push 0x1002fb8
push 2
call fcn.0102ae85
pop ecx
pop ecx
jmp 0x101820b
test eax, eax
jle 0x1018174
and eax, 0xffff
or eax, edi
push eax
push 0x1002f7c
push 2
call fcn.0102ae85
add esp, 0xc
jmp 0x101820b
push 0x1002f4c
jmp 0x1018195
push 0x1002f08
push esi
call fcn.0102ae4b
mov esi, 0x200
push esi
lea eax, [ebp - 0x844]
push eax
push 0xa1
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
jne 0x10181c6
mov eax, 0x80004005
jmp 0x10182c7
push esi
lea eax, [ebp - 0x444]
push eax
push 0x64
push dword [0x1048bd0]
call fcn.0101b740
test eax, eax
je 0x10181bc
push 0x1011
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x844]
push eax
push 0
call fcn.0101b8b5
cmp eax, 2
jne 0x101820b
jmp 0x10181bc
push 0x1002ee8
push esi
call fcn.0102ae4b
mov ecx, 0x104a2f8
call fcn.010284dc
and eax, 8
push eax
mov eax, dword [ebp - 0x8a0]
mov ecx, dword [eax]
push 1
push 0
call fcn.010250d4
mov esi, eax
push esi
push 0x1002ec0
push 5
call fcn.0102ae85
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x898], eax
setne al
test ebx, ebx
lea eax, [eax + eax + 0x65]
mov dword [ebp - 0x894], eax
mov eax, dword [ebp - 0x8a8]
mov dword [ebp - 0x88c], eax
mov eax, dword [ebp - 0x8a4]
mov dword [ebp - 0x888], eax
je 0x10182b0
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x894]
push eax
call ebx
test eax, eax
jne 0x10182a4
mov eax, dword [ebp - 0x8ac]
test eax, eax
jle 0x1018292
and eax, 0xffff
or eax, edi
push eax
push 0x1002e88
push 2
call fcn.0102ae85
add esp, 0xc
jmp 0x10182b0
push 0x1002e68
push 5
call fcn.0102ae4b
cmp dword [ebp - 0x89c], 0
je 0x10182c5
push dword [ebp - 0x89c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01018732
leave
ret