Function at 0x468b87
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x18]
push 3
mov byte [esp + 0x1f], 0
mov dword [esp + 0x24], esi
call fcn.00477427
mov esi, eax
push edi
test esi, esi
je 0x468c4c
call fcn.0046bdbe
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.0043b5ea
test eax, eax
jne 0x468bda
call fcn.0046b02e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ebx, [edi + 0x28]
push esi
mov dword [esp + 0x20], ebx
call fcn.0046dee8
lea eax, [esp + 0x10]
push eax
call fcn.0045f630
pop ecx
mov edi, 0x5283d8
call fcn.00439ecc
lea ecx, [esp + 0x10]
call fcn.004029ae
mov eax, edi
call fcn.0045f230
mov edi, dword [ebp + 8]
push edi
call fcn.0046bdbe
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.004054bc
lea eax, [edi + 0x128]
push eax
lea ebx, [esp + 0x14]
call fcn.00468650
mov ecx, ebx
call fcn.004029ae
add edi, 4
mov eax, esi
call fcn.00439ecc
mov edi, dword [ebp + 8]
mov byte [esp + 0x1b], 1
jmp 0x468c5e
lea ebx, [edi + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0046bdbe
push eax
call fcn.0046dee8
lea ebx, [edi + 0x24]
add edi, 0x90
mov eax, ebx
mov dword [esp + 0x2c], ebx
call fcn.00439ecc
cmp byte [0x5283d4], 0
je 0x468cea
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x18]
push eax
call fcn.0047845f
push eax
call fcn.0047846f
push eax
call fcn.0047846f
push eax
mov esi, 0x5283a4
mov eax, esi
call fcn.00477894
lea ecx, [esp + 0x10]
call fcn.004029ae
cmp byte [0x5283d4], 0
je 0x468cea
push dword [ebx]
lea eax, [esp + 0x14]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.0047845f
push eax
call fcn.0047846f
push eax
call fcn.0047846f
push eax
mov eax, esi
call fcn.00477894
lea ecx, [esp + 0x10]
call fcn.004029ae
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x168]
lea esi, [ebx + 0x7c]
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.00439ecc
push 1
mov eax, edi
call fcn.00477054
lea eax, [esp + 0x28]
push eax
call fcn.0045f630
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.004029ae
mov eax, dword [esp + 0x1c]
call fcn.0046e0fa
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x468d61
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
call fcn.0046e2ba
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.0046bd90
lea ecx, [esp + 0x28]
call fcn.004029ae
xor eax, eax
inc eax
jmp 0x468bd1
push dword [esp + 0x1c]
lea edi, [esp + 0xac]
call fcn.0046cf92
test byte [ebx + 0x6c], 2
mov dword [esp + 0x3c], 0x4fee74
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x468dec
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.004694a4
lea eax, [esp + 0x3c]
push eax
mov eax, edi
push eax
call fcn.0046d5ec
mov esi, edi
call fcn.0046d578
push ecx
mov ecx, esp
push eax
push ecx
call int.0041808f
push dword [esp + 0x20]
call fcn.0046df84
call fcn.0046d404
push eax
mov eax, dword [esp + 0x20]
call fcn.004700b1
lea edi, [ebx + 0x104]
lea eax, [esp + 0x100]
call fcn.00439ecc
push ebx
lea ecx, [esp + 0xf0]
call fcn.0046af55
mov esi, dword [esp + 0x20]
push 6
call fcn.00477427
mov esi, eax
test esi, esi
je 0x468e0d
push 1
lea edi, [esp + 0xac]
call fcn.0046d227
jmp 0x468e4f
mov esi, dword [esp + 0x20]
push 7
call fcn.00477427
mov esi, eax
test esi, esi
je 0x468e22
push 1
jmp 0x468e43
mov esi, dword [esp + 0x20]
push 8
call fcn.00477427
mov esi, eax
test esi, esi
je 0x468e4f
push 0
lea edi, [esp + 0xac]
call fcn.0046d227
push 0
lea edi, [esp + 0xac]
call fcn.0046d2ef
cmp byte [ebp + 0xc], 0
je 0x468e99
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x468e7c
lea eax, [esp + 0xa8]
push eax
mov dword [ebx + 0xac], 3
mov dword [esp + 0x190], esi
call fcn.004691fc
lea edi, [esp + 0x40]
call fcn.0046cc41
lea eax, [esp + 0xa8]
push eax
call fcn.00447090
mov eax, esi
jmp 0x468bd1
lea eax, [esp + 0xa8]
push eax
call fcn.0046d1f9
test al, al
mov byte [ebx + 0x1bc], al
sete al
push ebx
mov byte [0x525cd4], al
call fcn.004694db
push str.Advinst_
lea eax, [esp + 0x18]
push eax
call fcn.004054bc
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
call fcn.0046e17e
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.0044678f
lea ecx, [esp + 0x28]
call fcn.004029ae
push dword [esp + 0x14]
mov eax, 0x528380
call fcn.00473b7d
test esi, esi
jne 0x468f31
cmp byte [0x52838c], 0
je 0x468f31
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.004785e9
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.004029ae
jmp 0x468e7c
mov esi, dword [esp + 0x10]
mov edi, 0xdc
push edi
call fcn.004770e2
test byte [ebx + 0x6c], 2
je 0x468f69
lea eax, [esp + 0xa8]
mov dword [esp + 0x38], eax
push edi
lea edi, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x34], 0x4f81c4
mov dword [esp + 0x38], ebx
call fcn.00469f74
lea eax, [esp + 0xa8]
call fcn.0046957c
test al, al
je 0x468f89
lea ecx, [esp + 0x14]
call fcn.004029ae
xor esi, esi
jmp 0x468e7c
mov eax, dword [ebx + 0x6c]
shr eax, 2
test al, 1
je 0x468fc7
push 0x8a
lea edi, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x34], 0x4f81c8
mov dword [esp + 0x38], ebx
call fcn.00469f74
cmp byte [esp + 0x38], 0
je 0x468fc7
lea ecx, [esp + 0x14]
call fcn.004029ae
xor esi, esi
inc esi
jmp 0x468e7c
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0046b12a
test al, al
jne 0x468fb6
cmp byte [esp + 0x1b], al
jne 0x468ff8
mov ecx, ebx
call fcn.0046af8e
test al, al
je 0x468ff8
mov edi, ebx
call fcn.0046b02e
mov esi, eax
jmp 0x468f23
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0046a6f2
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x469016
mov dword [ebx + 0x10], esi
jmp 0x468f23
mov ecx, dword [esp + 0xd0]
cmp dword [ecx - 0xc], eax
je 0x46902a
mov byte [esp + 0x139], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov al, byte [ebx + 0x1bc]
mov byte [esp + 0x64], al
lea eax, [esp + 0x54]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x104]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
push 0xec
lea edi, [esp + 0x6c]
mov eax, ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x6c], 0x4f81e0
call fcn.00469f74
cmp byte [esp + 0x78], 0
je 0x468fb6
mov esi, ebx
call fcn.00469604
lea edi, [esp + 0xa8]
call fcn.00469652
mov eax, edi
push eax
push ebx
call fcn.00469733
cmp byte [ebx + 0x1b4], 0
mov dword [esp + 0x20], eax
je 0x4690c7
lea ecx, [esp + 0x14]
call fcn.004029ae
or esi, 0xffffffff
jmp 0x468e7c
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
call int.0041808f
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jne 0x46910a
lea eax, [esp + 0xb8]
lea edi, [esp + 0x24]
call fcn.00439ecc
lea eax, [esp + 0x2c]
push eax
mov eax, edi
call fcn.00477d83
pop ecx
call fcn.00439ecc
lea ecx, [esp + 0x2c]
call fcn.004029ae
mov eax, dword [esp + 0x10]
call fcn.00477141
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x84]
call fcn.004787dc
test byte [ebx + 0x6c], 2
je 0x46914d
cmp dword [esp + 0x20], 0
jne 0x46914d
lea eax, [esp + 0x3c]
push eax
mov eax, esi
call fcn.00478826
push ebx
mov edi, esi
call fcn.00469e06
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x46915e
push 0x5283dc
call fcn.00479434
cmp dword [esp + 0x20], 0
jne 0x469181
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00469fa4
mov dword [esp + 0x20], eax
mov eax, ebx
call fcn.0046c39e
lea edi, [esp + 0x7c]
call fcn.00478c5d
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
push 0x10a
lea edi, [esp + 0x50]
mov eax, ebx
mov dword [esp + 0x50], 0x4f81e8
call fcn.00469f74
lea edi, [esp + 0x9c]
call fcn.0046cbf0
lea ecx, [esp + 0x94]
call fcn.004029ae
lea ecx, [esp + 0x90]
call fcn.004029ae
lea ecx, [esp + 0x88]
call fcn.004029ae
lea ecx, [esp + 0x24]
call fcn.004029ae
lea ecx, [esp + 0x14]
call fcn.004029ae
mov esi, dword [esp + 0x20]
jmp 0x468e7c