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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
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 + 0x2c], esi
call fcn.00481701
mov esi, eax
push edi
test esi, esi
je 0x472833
call fcn.00475aa7
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.004429e2
test eax, eax
jne 0x4727c1
call fcn.00474cf4
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.00477c14
lea eax, [esp + 0x10]
push eax
call fcn.00468bf0
pop ecx
mov edi, 0x5457b0
call fcn.004412d2
lea ecx, [esp + 0x10]
call fcn.004036cd
mov eax, edi
call fcn.004687f0
mov edi, dword [ebp + 8]
push edi
call fcn.00475aa7
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.00405d46
lea eax, [edi + 0x128]
push eax
lea ebx, [esp + 0x14]
call fcn.0047224e
mov ecx, ebx
call fcn.004036cd
add edi, 4
mov eax, esi
call fcn.004412d2
mov edi, dword [ebp + 8]
mov byte [esp + 0x1b], 1
jmp 0x472845
lea ebx, [edi + 0x28]
mov dword [esp + 0x20], ebx
call fcn.00475aa7
push eax
call fcn.00477c14
lea ebx, [edi + 0x24]
add edi, 0x9c
mov eax, ebx
mov dword [esp + 0x30], ebx
call fcn.004412d2
cmp byte [0x5457ac], 0
je 0x4728d1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x18]
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
mov esi, 0x54577c
mov eax, esi
call fcn.00481b6e
lea ecx, [esp + 0x10]
call fcn.004036cd
cmp byte [0x5457ac], 0
je 0x4728d1
push dword [ebx]
lea eax, [esp + 0x14]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.0048273d
push eax
call fcn.0048274d
push eax
call fcn.0048274d
push eax
mov eax, esi
call fcn.00481b6e
lea ecx, [esp + 0x10]
call fcn.004036cd
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x16c]
lea esi, [ebx + 0x88]
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.004412d2
push 1
mov eax, edi
call fcn.004812f3
lea eax, [esp + 0x20]
push eax
call fcn.00468bf0
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x20]
call fcn.004036cd
mov eax, dword [esp + 0x1c]
call fcn.00477e29
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x47294b
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
call fcn.00478027
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.00475a79
lea ecx, [esp + 0x10]
call fcn.004036cd
xor eax, eax
inc eax
jmp 0x4727b8
push dword [esp + 0x1c]
lea edi, [esp + 0xb4]
call fcn.00476c44
test byte [ebx + 0x6c], 2
mov dword [esp + 0x40], 0x517eb4
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
je 0x4729d6
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.0047310b
lea eax, [esp + 0x40]
push eax
mov eax, edi
push eax
call fcn.004772c5
mov esi, edi
call fcn.0047724c
push ecx
mov ecx, esp
push eax
push ecx
call fcn.00403ccd
push dword [esp + 0x20]
call fcn.00477cb0
call fcn.004770dc
push eax
mov eax, dword [esp + 0x20]
call fcn.00479d81
lea edi, [ebx + 0x104]
lea eax, [esp + 0x108]
call fcn.004412d2
push ebx
lea ecx, [esp + 0xf8]
call fcn.00474c14
mov esi, dword [esp + 0x28]
push 6
call fcn.00481701
mov esi, eax
test esi, esi
je 0x4729f7
push 1
lea eax, [esp + 0xb4]
call fcn.00476ed9
jmp 0x472a39
mov esi, dword [esp + 0x28]
push 7
call fcn.00481701
mov esi, eax
test esi, esi
je 0x472a0c
push 1
jmp 0x472a2d
mov esi, dword [esp + 0x28]
push 8
call fcn.00481701
mov esi, eax
test esi, esi
je 0x472a39
push 0
lea eax, [esp + 0xb4]
call fcn.00476ed9
push 0
lea ecx, [esp + 0xb4]
call fcn.00476fb4
cmp byte [ebp + 0xc], 0
je 0x472a84
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x472a65
and dword [esp + 0x198], 0
lea eax, [esp + 0xb0]
push eax
mov dword [ebx + 0xb8], 3
call fcn.00472e4c
xor esi, esi
lea edi, [esp + 0x44]
call fcn.004768e4
lea eax, [esp + 0xb0]
push eax
call fcn.0044e25b
mov eax, esi
jmp 0x4727b8
lea eax, [esp + 0xb0]
push eax
call fcn.00476eab
test al, al
mov byte [ebx + 0x1c8], al
sete al
push ebx
mov byte [0x542de4], al
call fcn.00473142
push str.Advinst_
lea eax, [esp + 0x18]
push eax
call fcn.00405d46
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
call fcn.00477eeb
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.00403bf6
lea ecx, [esp + 0x20]
call fcn.004036cd
lea edi, [ebx + 0x140]
lea eax, [esp + 0x14]
call fcn.004412d2
push dword [esp + 0x14]
mov eax, 0x545758
call fcn.0047dcac
test esi, esi
jne 0x472b36
cmp byte [0x545764], 0
je 0x472b36
lea edi, [ebx + 0x134]
mov dword [ebx + 0xb8], 3
call fcn.0047a6e1
inc esi
push esi
push 0xcc
call fcn.004828c7
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.004036cd
jmp 0x472a67
mov edi, dword [esp + 0x10]
push 0
mov esi, 0xdc
push esi
call fcn.00481381
test byte [ebx + 0x6c], 2
je 0x472b70
lea eax, [esp + 0xb0]
mov dword [esp + 0x3c], eax
push esi
lea esi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x38], 0x510954
mov dword [esp + 0x3c], ebx
call fcn.00473c48
mov esi, dword [ebp + 8]
lea ebx, [esp + 0xb0]
mov edi, esi
call fcn.004731e3
test al, al
je 0x472b93
lea ecx, [esp + 0x14]
call fcn.004036cd
jmp 0x472a65
test byte [esi + 0x6c], 4
je 0x472bcf
mov dword [esp + 0x38], esi
push 0x8a
lea esi, [esp + 0x38]
mov eax, edi
mov dword [esp + 0x38], 0x51095c
call fcn.00473c48
cmp byte [esp + 0x3c], 0
je 0x472bcd
lea ecx, [esp + 0x14]
call fcn.004036cd
xor esi, esi
inc esi
jmp 0x472a67
mov esi, edi
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.00474df0
test al, al
jne 0x472bbc
cmp byte [esp + 0x1b], al
jne 0x472c00
mov edx, esi
call fcn.00474c4d
test al, al
je 0x472c00
mov edi, esi
call fcn.00474cf4
mov esi, eax
jmp 0x472b28
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.004743c1
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x472c29
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], ebx
call fcn.004036cd
mov esi, ebx
jmp 0x472a67
mov eax, dword [esp + 0xd8]
cmp dword [eax - 0xc], edi
je 0x472c3d
mov byte [esp + 0x141], 1
mov eax, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
mov al, byte [esi + 0x1c8]
mov byte [esp + 0x7c], al
lea eax, [esp + 0x6c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x64], eax
push 0xec
lea esi, [esp + 0x5c]
mov eax, ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x5c], 0x5109b8
call fcn.00473c48
cmp byte [esp + 0x68], 0
je 0x472bbc
mov esi, ebx
call fcn.004732a3
lea eax, [esp + 0xb0]
push eax
push ebx
call fcn.004732f4
push ebx
lea eax, [esp + 0xb4]
call fcn.0047345a
cmp byte [ebx + 0x1c0], 0
mov dword [esp + 0x20], eax
je 0x472ce3
lea ecx, [esp + 0x14]
call fcn.004036cd
or esi, 0xffffffff
jmp 0x472a67
push dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
call fcn.00403ccd
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], edi
jne 0x472d28
lea eax, [esp + 0xc0]
lea edi, [esp + 0x24]
call fcn.004412d2
lea eax, [esp + 0x30]
push 0
push eax
mov eax, edi
call fcn.0048205d
pop ecx
pop ecx
call fcn.004412d2
lea ecx, [esp + 0x30]
call fcn.004036cd
mov eax, dword [esp + 0x10]
call fcn.0048141b
lea eax, [esp + 0x2c]
push eax
call fcn.0040372d
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x20]
lea edi, [esp + 0x34]
push dword [esp + 0x30]
lea esi, [esp + 0x8c]
call fcn.00482b2d
mov eax, dword [esp + 0x2c]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x2c]
call fcn.00403bf6
test byte [ebx + 0x6c], 2
je 0x472d82
cmp dword [esp + 0x20], 0
jne 0x472d82
push ebx
mov eax, esi
call fcn.00473aad
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0xffffffff
jne 0x472d93
push 0x5457b4
call fcn.00483df1
cmp dword [esp + 0x20], 0
jne 0x472db9
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00473c81
mov dword [esp + 0x20], eax
mov eax, ebx
call fcn.00476085
lea eax, [esp + 0x80]
call fcn.004830ca
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
push 0x10a
lea esi, [esp + 0x54]
mov eax, ebx
mov dword [esp + 0x54], 0x5109c8
call fcn.00473c48
lea edi, [esp + 0xa4]
call fcn.00476840
lea ecx, [esp + 0x9c]
call fcn.004036cd
lea ecx, [esp + 0x98]
call fcn.004036cd
lea ecx, [esp + 0x90]
call fcn.004036cd
lea ecx, [esp + 0x8c]
call fcn.004036cd
lea ecx, [esp + 0x2c]
call fcn.004036cd
lea ecx, [esp + 0x24]
call fcn.004036cd
lea ecx, [esp + 0x14]
call fcn.004036cd
mov esi, dword [esp + 0x20]
jmp 0x472a67