Function at 0x401730
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
mov eax, 0x10928
call fcn.00401b90
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [esp + 0x1093c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
mov ebp, eax
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
lea eax, [esp + 0x24]
push str.setup.ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x4017df
cmp eax, edi
jbe 0x4017df
lea esi, [esp + 0x128]
mov ebx, ebp
mov ecx, dword [ebx]
push ecx
push str.__ws
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
jbe 0x4017bd
push str.__silent
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4017d1
mov eax, dword [esp + 0x14]
inc edi
add ebx, 4
add esi, 0x104
cmp edi, eax
jb 0x401797
jmp 0x4017d9
mov dword [esp + 0x10], 1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x10944]
test esi, esi
je 0x401a71
push esi
call fcn.00401c28
mov edi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x20], edi
test eax, eax
je 0x401818
lea edx, [esp + 0x24]
push edx
push esi
push edi
push 0x409678
push str.SILENT_ARGS
jmp 0x401829
lea eax, [esp + 0x24]
push eax
push esi
push edi
push 0x409678
push str.INTERACTIVE_ARGS
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x409678
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401949
mov ecx, dword [esp + 0x10948]
push edi
push ecx
call ebx
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x401a4c
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
jbe 0x401a4c
mov dword [esp + 0x10], ebp
mov ebp, 1
mov edx, dword [esp + 0x10]
lea edi, [esp + ebx + 0x128]
mov eax, dword [edx]
push eax
push 0x4071c0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp ebp, 1
jbe 0x401918
push 0x20
push edi
call fcn.00401db0
push 0x2d4a
push edi
mov esi, eax
call fcn.00401db0
mov ecx, ebp
lea edx, [esp + 0x138]
sub ecx, edx
sub esi, ebx
add eax, ecx
lea ecx, [esp + 0x138]
sub esi, ecx
add esp, 0x10
inc esi
test esi, esi
jle 0x4018fd
cmp eax, 2
je 0x4018fd
mov edx, dword [esp + 0x10948]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4071bc
push edx
call esi
push edi
mov edi, dword [esp + 0x1094c]
push edi
call esi
push 0x407158
push edi
call esi
jmp 0x401918
mov esi, dword [esp + 0x10948]
push 0x4071b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edi, 4
add ebx, 0x104
sub ebp, 0x104
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jb 0x401877
jmp 0x401a44
mov eax, dword [esp + 0x10948]
push 0x409678
push eax
call ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x401a4c
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov ebp, 1
mov ecx, dword [esp + 0x10]
lea edi, [esp + ebx + 0x128]
mov edx, dword [ecx]
push edx
push 0x4071c0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp ebp, 1
jbe 0x401a18
push 0x20
push edi
call fcn.00401db0
push 0x2d4a
push edi
mov esi, eax
call fcn.00401db0
mov ecx, ebp
lea edx, [esp + 0x138]
sub ecx, edx
sub esi, ebx
add eax, ecx
lea ecx, [esp + 0x138]
sub esi, ecx
add esp, 0x10
inc esi
test esi, esi
jle 0x4019fd
cmp eax, 2
je 0x4019fd
mov edx, dword [esp + 0x10948]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4071bc
push edx
call esi
push edi
mov edi, dword [esp + 0x1094c]
push edi
call esi
push 0x407158
push edi
call esi
jmp 0x401a18
mov esi, dword [esp + 0x10948]
push 0x4071b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edi, 4
add ebx, 0x104
sub ebp, 0x104
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jb 0x401977
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x401b6d
push edi
call fcn.00401bbf
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10928
ret
mov eax, dword [esp + 0x10948]
push 0x409678
push eax
call ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test eax, eax
jbe 0x401b6d
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov ebp, 1
mov ecx, dword [esp + 0x10]
lea edi, [esp + ebx + 0x128]
mov edx, dword [ecx]
push edx
push 0x4071c0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp ebp, 1
jbe 0x401b3d
push 0x20
push edi
call fcn.00401db0
push 0x2d4a
push edi
mov esi, eax
call fcn.00401db0
mov ecx, ebp
lea edx, [esp + 0x138]
sub ecx, edx
sub esi, ebx
add eax, ecx
lea ecx, [esp + 0x138]
sub esi, ecx
add esp, 0x10
inc esi
test esi, esi
jle 0x401b22
cmp eax, 2
je 0x401b22
mov esi, dword [esp + 0x10948]
push 0x4071bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push 0x407158
push esi
call edi
jmp 0x401b3d
mov esi, dword [esp + 0x10948]
push 0x4071b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edi, 4
add ebx, 0x104
sub ebp, 0x104
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jb 0x401a9f
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10928
ret