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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
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 + 0x20], esi
call fcn.004737a3
mov esi, eax
push edi
test esi, esi
je 0x46577e
call fcn.004687ca
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.00438350
test eax, eax
jne 0x46570c
call fcn.00467a34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ebx, [edi + 0x28]
push esi
mov dword [esp + 0x24], ebx
call fcn.0046a86e
lea eax, [esp + 0x10]
push eax
call fcn.0045c6d0
pop ecx
mov edi, 0x523358
call fcn.004432a9
lea ecx, [esp + 0x10]
call fcn.00402907
mov eax, edi
call fcn.0045c2d0
mov edi, dword [ebp + 8]
push edi
call fcn.004687ca
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.004046e4
lea eax, [edi + 0x120]
push eax
lea ebx, [esp + 0x14]
call fcn.004651b4
mov ecx, ebx
call fcn.00402907
add edi, 4
mov eax, esi
call fcn.004432a9
mov edi, dword [ebp + 8]
mov byte [esp + 0x1b], 1
jmp 0x465790
lea ebx, [edi + 0x28]
mov dword [esp + 0x24], ebx
call fcn.004687ca
push eax
call fcn.0046a86e
lea ebx, [edi + 0x24]
add edi, 0x90
mov eax, ebx
mov dword [esp + 0x2c], ebx
call fcn.004432a9
cmp byte [0x523354], 0
je 0x46581c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x18]
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.00474819
push eax
mov esi, 0x523324
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x10]
call fcn.00402907
cmp byte [0x523354], 0
je 0x46581c
push dword [ebx]
lea eax, [esp + 0x14]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.00474809
push eax
call fcn.00474819
push eax
call fcn.00474819
push eax
mov eax, esi
call fcn.00473bef
lea ecx, [esp + 0x10]
call fcn.00402907
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x160]
lea esi, [ebx + 0x7c]
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.004432a9
push 1
mov eax, edi
call fcn.004733d0
lea eax, [esp + 0x28]
push eax
call fcn.0045c6d0
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00402907
mov eax, dword [esp + 0x20]
call fcn.0046aa11
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x465893
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
call fcn.0046abd1
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.0046879c
lea ecx, [esp + 0x28]
call fcn.00402907
xor eax, eax
inc eax
jmp 0x465703
push dword [esp + 0x20]
lea edi, [esp + 0x9c]
call fcn.00469947
test byte [ebx + 0x6c], 2
mov dword [esp + 0x3c], 0x4fa714
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x465915
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00465fd1
lea eax, [esp + 0x3c]
push eax
mov eax, edi
push eax
call fcn.00469f72
mov esi, edi
call fcn.00469efe
push eax
mov eax, dword [esp + 0x24]
call fcn.0046a90a
call fcn.00469d8a
push eax
mov eax, dword [esp + 0x24]
call fcn.0046c911
lea edi, [ebx + 0xfc]
lea eax, [esp + 0xf0]
call fcn.004432a9
push ebx
lea ecx, [esp + 0xe0]
call fcn.0046795a
mov esi, dword [esp + 0x1c]
push 6
call fcn.004737a3
mov esi, eax
test esi, esi
je 0x465936
push 1
lea edi, [esp + 0x9c]
call fcn.00469bdc
jmp 0x465978
mov esi, dword [esp + 0x1c]
push 7
call fcn.004737a3
mov esi, eax
test esi, esi
je 0x46594b
push 1
jmp 0x46596c
mov esi, dword [esp + 0x1c]
push 8
call fcn.004737a3
mov esi, eax
test esi, esi
je 0x465978
push 0
lea edi, [esp + 0x9c]
call fcn.00469bdc
push 0
lea edi, [esp + 0x9c]
call fcn.00469ca4
cmp byte [ebp + 0xc], 0
je 0x4659c2
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4659a5
lea eax, [esp + 0x98]
push eax
mov dword [ebx + 0xac], 3
mov dword [esp + 0x180], esi
call fcn.00465d29
lea edi, [esp + 0x40]
call fcn.004695f6
lea eax, [esp + 0x98]
push eax
call fcn.00443dc6
mov eax, esi
jmp 0x465703
lea eax, [esp + 0x98]
push eax
call fcn.00469bae
test al, al
mov byte [ebx + 0x1b4], al
sete al
push ebx
mov byte [0x520c9c], al
call fcn.00466008
push str.Advinst_
lea eax, [esp + 0x18]
push eax
call fcn.004046e4
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.0046aa95
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.004434e9
lea ecx, [esp + 0x28]
call fcn.00402907
push dword [esp + 0x14]
mov eax, 0x523318
call fcn.0043d851
test esi, esi
jne 0x465a5a
cmp byte [0x523320], 0
je 0x465a5a
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.00474993
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.00402907
jmp 0x4659a5
mov esi, dword [esp + 0x10]
mov edi, 0xdc
push edi
call fcn.0047345e
test byte [ebx + 0x6c], 2
je 0x465a92
lea eax, [esp + 0x98]
mov dword [esp + 0x38], eax
push edi
lea edi, [esp + 0x34]
mov eax, ebx
mov dword [esp + 0x34], 0x4f3d5c
mov dword [esp + 0x38], ebx
call fcn.004669ba
lea eax, [esp + 0x98]
call fcn.004660a9
test al, al
je 0x465ab2
lea ecx, [esp + 0x14]
call fcn.00402907
xor esi, esi
jmp 0x4659a5
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x465af3
push 0x8a
lea edi, [esp + 0x34]
mov eax, esi
mov dword [esp + 0x34], 0x4f3d60
mov dword [esp + 0x38], esi
call fcn.004669ba
xor ebx, ebx
cmp byte [esp + 0x38], bl
je 0x465af5
lea ecx, [esp + 0x14]
call fcn.00402907
xor esi, esi
inc esi
jmp 0x4659a5
xor ebx, ebx
lea eax, [esp + 0x98]
push eax
push esi
call fcn.00467b30
test al, al
jne 0x465ae2
cmp byte [esp + 0x1b], bl
jne 0x465b25
push esi
call fcn.00467993
test al, al
je 0x465b25
mov edi, esi
call fcn.00467a34
mov esi, eax
jmp 0x465a4c
lea eax, [esp + 0x98]
push eax
push esi
call fcn.004670f5
mov edi, eax
cmp edi, ebx
je 0x465b4c
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], edi
call fcn.00402907
mov esi, edi
jmp 0x4659a5
mov eax, dword [esp + 0xc0]
cmp dword [eax - 0xc], ebx
je 0x465b60
mov byte [esp + 0x129], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov al, byte [esi + 0x1b4]
mov byte [esp + 0x80], al
lea eax, [esp + 0x70]
mov dword [esp + 0x88], eax
lea eax, [esp + 0xf4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x90], eax
push 0xec
lea edi, [esp + 0x88]
mov eax, esi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], 0x4f3d78
call fcn.004669ba
cmp byte [esp + 0x94], bl
je 0x465ae2
call fcn.00466131
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0046617f
mov dword [esp + 0x1c], eax
cmp byte [esi + 0x1ac], bl
je 0x465c0a
lea ecx, [esp + 0x14]
call fcn.00402907
or esi, 0xffffffff
jmp 0x4659a5
push dword [esp + 0x2c]
lea eax, [esp + 0x28]
push eax
call fcn.00425ecf
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jne 0x465c4c
lea eax, [esp + 0xa8]
lea edi, [esp + 0x24]
call fcn.004432a9
lea eax, [esp + 0x2c]
push eax
mov eax, edi
call fcn.004740de
pop ecx
call fcn.004432a9
lea ecx, [esp + 0x2c]
call fcn.00402907
mov eax, dword [esp + 0x10]
call fcn.004734bd
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x51], bl
mov byte [esp + 0x5c], bl
call fcn.00475014
test byte [esi + 0x6c], 2
je 0x465cab
cmp dword [esp + 0x1c], ebx
jne 0x465cab
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
call fcn.00474b86
push esi
lea edi, [esp + 0x50]
call fcn.0046684c
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x465cbc
push 0x52335c
call fcn.004752cc
cmp dword [esp + 0x1c], ebx
jne 0x465cde
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004669ea
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.00468d6c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
push 0x10a
lea edi, [esp + 0x6c]
mov eax, esi
mov dword [esp + 0x6c], 0x4f3d80
call fcn.004669ba
lea edi, [esp + 0x5c]
call fcn.004695be
lea ecx, [esp + 0x24]
call fcn.00402907
lea ecx, [esp + 0x14]
call fcn.00402907
mov esi, dword [esp + 0x1c]
jmp 0x4659a5