Function at 0x468847
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.0047716c
mov esi, eax
push edi
test esi, esi
je 0x46890c
call fcn.0046ba7e
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.0043b02c
test eax, eax
jne 0x46889a
call fcn.0046acee
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.0046db8f
lea eax, [esp + 0x10]
push eax
call fcn.0045f2f0
pop ecx
mov edi, 0x5283d8
call fcn.0044607b
lea ecx, [esp + 0x10]
call fcn.00402964
mov eax, edi
call fcn.0045eef0
mov edi, dword [ebp + 8]
push edi
call fcn.0046ba7e
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.004054af
lea eax, [edi + 0x128]
push eax
lea ebx, [esp + 0x14]
call fcn.00468310
mov ecx, ebx
call fcn.00402964
add edi, 4
mov eax, esi
call fcn.0044607b
mov edi, dword [ebp + 8]
mov byte [esp + 0x1b], 1
jmp 0x46891e
lea ebx, [edi + 0x28]
mov dword [esp + 0x20], ebx
call fcn.0046ba7e
push eax
call fcn.0046db8f
lea ebx, [edi + 0x24]
add edi, 0x90
mov eax, ebx
mov dword [esp + 0x2c], ebx
call fcn.0044607b
cmp byte [0x5283d4], 0
je 0x4689aa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x18]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov esi, 0x5283a4
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x10]
call fcn.00402964
cmp byte [0x5283d4], 0
je 0x4689aa
push dword [ebx]
lea eax, [esp + 0x14]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov eax, esi
call fcn.004775b8
lea ecx, [esp + 0x10]
call fcn.00402964
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x168]
lea esi, [ebx + 0x7c]
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.0044607b
push 1
mov eax, edi
call fcn.00476d99
lea eax, [esp + 0x28]
push eax
call fcn.0045f2f0
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00402964
mov eax, dword [esp + 0x1c]
call fcn.0046dda1
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x468a21
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
call fcn.0046df61
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.0046ba50
lea ecx, [esp + 0x28]
call fcn.00402964
xor eax, eax
inc eax
jmp 0x468891
push dword [esp + 0x1c]
lea edi, [esp + 0xac]
call fcn.0046cc39
test byte [ebx + 0x6c], 2
mov dword [esp + 0x3c], 0x4fedf4
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x468aac
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00469163
lea eax, [esp + 0x3c]
push eax
mov eax, edi
push eax
call fcn.0046d293
mov esi, edi
call fcn.0046d21f
push ecx
mov ecx, esp
push eax
push ecx
call fcn.0041804a
push dword [esp + 0x20]
call fcn.0046dc2b
call fcn.0046d0ab
push eax
mov eax, dword [esp + 0x20]
call fcn.0046fd58
lea edi, [ebx + 0x104]
lea eax, [esp + 0x100]
call fcn.0044607b
push ebx
lea ecx, [esp + 0xf0]
call fcn.0046ac14
mov esi, dword [esp + 0x20]
push 6
call fcn.0047716c
mov esi, eax
test esi, esi
je 0x468acd
push 1
lea edi, [esp + 0xac]
call fcn.0046cece
jmp 0x468b0f
mov esi, dword [esp + 0x20]
push 7
call fcn.0047716c
mov esi, eax
test esi, esi
je 0x468ae2
push 1
jmp 0x468b03
mov esi, dword [esp + 0x20]
push 8
call fcn.0047716c
mov esi, eax
test esi, esi
je 0x468b0f
push 0
lea edi, [esp + 0xac]
call fcn.0046cece
push 0
lea edi, [esp + 0xac]
call fcn.0046cf96
cmp byte [ebp + 0xc], 0
je 0x468b59
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x468b3c
lea eax, [esp + 0xa8]
push eax
mov dword [ebx + 0xac], 3
mov dword [esp + 0x190], esi
call fcn.00468ebb
lea edi, [esp + 0x40]
call fcn.0046c8e8
lea eax, [esp + 0xa8]
push eax
call fcn.00446c33
mov eax, esi
jmp 0x468891
lea eax, [esp + 0xa8]
push eax
call fcn.0046cea0
test al, al
mov byte [ebx + 0x1bc], al
sete al
push ebx
mov byte [0x525cd4], al
call fcn.0046919a
push str.Advinst_
lea eax, [esp + 0x18]
push eax
call fcn.004054af
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
call fcn.0046de25
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.00446332
lea ecx, [esp + 0x28]
call fcn.00402964
push dword [esp + 0x14]
mov eax, 0x528380
call fcn.004738b9
test esi, esi
jne 0x468bf1
cmp byte [0x52838c], 0
je 0x468bf1
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.0047830d
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.00402964
jmp 0x468b3c
mov esi, dword [esp + 0x10]
mov edi, 0xdc
push edi
call fcn.00476e27
test byte [ebx + 0x6c], 2
je 0x468c29
lea eax, [esp + 0xa8]
mov dword [esp + 0x38], eax
push edi
lea edi, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x34], 0x4f8144
mov dword [esp + 0x38], ebx
call fcn.00469c33
lea eax, [esp + 0xa8]
call fcn.0046923b
test al, al
je 0x468c49
lea ecx, [esp + 0x14]
call fcn.00402964
xor esi, esi
jmp 0x468b3c
mov eax, dword [ebx + 0x6c]
shr eax, 2
test al, 1
je 0x468c87
push 0x8a
lea edi, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x34], 0x4f8148
mov dword [esp + 0x38], ebx
call fcn.00469c33
cmp byte [esp + 0x38], 0
je 0x468c87
lea ecx, [esp + 0x14]
call fcn.00402964
xor esi, esi
inc esi
jmp 0x468b3c
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0046adea
test al, al
jne 0x468c76
cmp byte [esp + 0x1b], al
jne 0x468cb7
push ebx
call fcn.0046ac4d
test al, al
je 0x468cb7
mov edi, ebx
call fcn.0046acee
mov esi, eax
jmp 0x468be3
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0046a3b1
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x468cd5
mov dword [ebx + 0x10], esi
jmp 0x468be3
mov ecx, dword [esp + 0xd0]
cmp dword [ecx - 0xc], eax
je 0x468ce9
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], 0x4f8160
call fcn.00469c33
cmp byte [esp + 0x78], 0
je 0x468c76
mov esi, ebx
call fcn.004692c3
lea edi, [esp + 0xa8]
call fcn.00469311
mov eax, edi
push eax
push ebx
call fcn.004693f2
cmp byte [ebx + 0x1b4], 0
mov dword [esp + 0x20], eax
je 0x468d86
lea ecx, [esp + 0x14]
call fcn.00402964
or esi, 0xffffffff
jmp 0x468b3c
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
call fcn.0041804a
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
jne 0x468dc9
lea eax, [esp + 0xb8]
lea edi, [esp + 0x24]
call fcn.0044607b
lea eax, [esp + 0x2c]
push eax
mov eax, edi
call fcn.00477aa7
pop ecx
call fcn.0044607b
lea ecx, [esp + 0x2c]
call fcn.00402964
mov eax, dword [esp + 0x10]
call fcn.00476e86
push dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x84]
call fcn.00478500
test byte [ebx + 0x6c], 2
je 0x468e0c
cmp dword [esp + 0x20], 0
jne 0x468e0c
lea eax, [esp + 0x3c]
push eax
mov eax, esi
call fcn.0047854a
push ebx
mov edi, esi
call fcn.00469ac5
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x468e1d
push 0x5283dc
call fcn.00479158
cmp dword [esp + 0x20], 0
jne 0x468e40
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00469c63
mov dword [esp + 0x20], eax
mov eax, ebx
call fcn.0046c05e
lea edi, [esp + 0x7c]
call fcn.00478981
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
push 0x10a
lea edi, [esp + 0x50]
mov eax, ebx
mov dword [esp + 0x50], 0x4f8168
call fcn.00469c33
lea edi, [esp + 0x9c]
call fcn.0046c8b0
lea ecx, [esp + 0x94]
call fcn.00402964
lea ecx, [esp + 0x90]
call fcn.00402964
lea ecx, [esp + 0x88]
call fcn.00402964
lea ecx, [esp + 0x24]
call fcn.00402964
lea ecx, [esp + 0x14]
call fcn.00402964
mov esi, dword [esp + 0x20]
jmp 0x468b3c