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

Disassembly:
push 0x12c
mov eax, 0x50a072
call fcn.004d0cf3
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x18]
push 3
mov byte [ebp - 0x11], bl
call fcn.00489ee9
mov ecx, edi
mov esi, eax
call fcn.0047efbe
test esi, esi
je 0x47b692
push dword [eax]
lea ecx, [esi + 4]
mov dword [ebp - 0x10], ecx
call fcn.004453c8
test eax, eax
jne 0x47b618
mov ecx, edi
call fcn.0047e137
jmp 0x47bc62
push dword [ebp - 0x10]
lea ecx, [edi + 0x28]
call fcn.004817c8
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov edx, esi
call fcn.004700e0
push eax
mov ecx, 0x5706d0
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
mov ecx, 0x5706d0
call fcn.0046fb70
mov ecx, edi
call fcn.0047efbe
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.004093f6
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x128]
call fcn.0047af99
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
push esi
lea ecx, [edi + 4]
call fcn.0044369a
mov byte [ebp - 0x11], 1
jmp 0x47b69b
push eax
lea ecx, [edi + 0x28]
call fcn.004817c8
lea esi, [edi + 0x24]
push esi
lea ecx, [edi + 0x9c]
call fcn.0044369a
cmp byte [0x5706cc], 0
je 0x47b75a
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.Full_command_line:
call fcn.004072a1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x47b6e9
push eax
lea ecx, [ebp - 0x10]
call fcn.004072a1
lea eax, [ebp - 0x10]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
cmp byte [0x5706cc], 0
je 0x47b75a
mov esi, dword [esi]
call fcn.00406cde
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.Command_line_to_pass_to_MSI:
call fcn.004072a1
test esi, esi
je 0x47b73d
push esi
lea ecx, [ebp - 0x10]
call fcn.004072a1
lea eax, [ebp - 0x10]
mov ecx, 0x57069c
push eax
call fcn.0048a377
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea esi, [edi + 0x88]
lea ecx, [edi + 0x16c]
push esi
call fcn.0044369a
push 1
lea ecx, [edi + 0x16c]
call fcn.0048516f
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.004700e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea esi, [edi + 0x28]
mov ecx, esi
call fcn.00481a19
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47b7df
lea ecx, [edi + 0xfc]
push ecx
lea ecx, [ebp + 8]
call fcn.004073ac
lea eax, [ebp + 8]
mov ecx, edi
push eax
push dword [ebp - 0x10]
call fcn.0047ef81
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406dd3
xor eax, eax
inc eax
jmp 0x47bc62
push esi
lea ecx, [ebp - 0xf0]
call fcn.00480562
test byte [edi + 0x6c], 2
mov dword [ebp - 0x38], 0x533ecc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
je 0x47b869
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0047be9a
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00480ca8
lea ecx, [ebp - 0xf0]
call fcn.00480c04
push ecx
mov ecx, esp
push eax
call fcn.004073ac
mov ecx, esi
call fcn.00481872
lea ecx, [ebp - 0xf0]
call fcn.00480a8e
push eax
mov ecx, esi
call fcn.00483b05
lea eax, [ebp - 0x98]
push eax
lea ecx, [edi + 0x104]
call fcn.0044369a
lea eax, [ebp - 0xac]
mov ecx, edi
push eax
call fcn.0047e03f
push 6
lea ecx, [edi + 0x18]
call fcn.00489ee9
mov esi, eax
test esi, esi
je 0x47b888
push 1
lea ecx, [ebp - 0xf0]
call fcn.0048082a
jmp 0x47b8c4
push 7
lea ecx, [edi + 0x18]
call fcn.00489ee9
mov esi, eax
test esi, esi
je 0x47b89c
push 1
jmp 0x47b8b9
push 8
lea ecx, [edi + 0x18]
call fcn.00489ee9
mov esi, eax
test esi, esi
je 0x47b8c4
push ebx
lea ecx, [ebp - 0xf0]
call fcn.0048082a
push ebx
lea ecx, [ebp - 0xf0]
call fcn.00480944
cmp byte [ebp + 8], 0
je 0x47b8f3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47bc4d
lea eax, [ebp - 0xf0]
mov dword [edi + 0xb8], 3
push eax
mov dword [ebp - 0x70], ebx
call fcn.0047bc6a
jmp 0x47bc4d
lea ecx, [ebp - 0xf0]
call fcn.004807eb
test al, al
mov byte [edi + 0x1c8], al
mov ecx, edi
sete byte [0x56aa0c]
call fcn.0047bee3
push str.Advinst_
lea ecx, [ebp - 0x1c]
call fcn.004093f6
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x28]
call fcn.00481ae9
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004072c9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x140]
call fcn.0044369a
push dword [ebp - 0x1c]
call fcn.00487f8a
test esi, esi
jne 0x47b994
cmp byte [0x570680], 0
je 0x47b994
lea ecx, [edi + 0x134]
mov dword [edi + 0xb8], 3
call fcn.004845a6
mov dl, 1
mov ecx, 0xcc
call fcn.0048afff
jmp 0x47bac0
push ecx
push ebx
lea esi, [edi + 0x16c]
push 0xdc
mov ecx, esi
call fcn.004851f2
test byte [edi + 0x6c], 2
je 0x47b9d1
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x28], 0x5315bc
mov dword [ebp - 0x20], eax
mov ecx, edi
push 0xdc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edi
push eax
call fcn.0047ce3a
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047bfb0
test al, al
jne 0x47bc3e
test byte [edi + 0x6c], 4
je 0x47ba11
push 0x8a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x5315a4
push eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.0047ce3a
cmp byte [ebp - 0x20], 0
jne 0x47bac0
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047e26f
test al, al
jne 0x47bac0
cmp byte [ebp - 0x11], al
jne 0x47ba40
mov ecx, edi
call fcn.0047e08b
test al, al
je 0x47ba40
mov ecx, edi
call fcn.0047e137
jmp 0x47ba55
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047d678
test eax, eax
je 0x47ba5c
mov dword [edi + 0x10], eax
mov ebx, eax
jmp 0x47bc3e
mov eax, dword [ebp - 0xc8]
cmp dword [eax - 0xc], 0
je 0x47ba73
lea ecx, [ebp - 0x8c]
call fcn.004956af
mov al, byte [edi + 0x1c8]
mov ecx, edi
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x54], esi
lea esi, [edi + 0x28]
push 0xec
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x68], 0x5315ac
call fcn.0047ce3a
cmp byte [ebp - 0x58], 0
jne 0x47bac8
xor ebx, ebx
inc ebx
jmp 0x47bc3e
mov ecx, edi
call fcn.0047c07e
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047c0e7
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047c286
cmp byte [edi + 0x1c0], 0
mov dword [ebp + 0xc], eax
je 0x47baff
or ebx, 0xffffffff
jmp 0x47bc3e
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004073ac
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x47bb48
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044369a
push ebx
lea edx, [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.0048a6a1
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0044369a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
lea ecx, [edi + 0x178]
call fcn.00484ff8
call fcn.00406cde
push eax
lea ecx, [ebp + 8]
call fcn.00406b09
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x138]
call fcn.0048b2c9
cmp dword [ebp - 0x134], 0
lea ecx, [ebp - 0x18]
mov esi, dword [ebp + 8]
jle 0x47bb95
push esi
push ebx
call fcn.00477a70
jmp 0x47bb9e
push dword [esi - 0xc]
push esi
call fcn.004072c9
test byte [edi + 0x6c], 2
mov ebx, dword [ebp + 0xc]
je 0x47bbbb
test ebx, ebx
jne 0x47bbbb
lea eax, [ebp - 0x138]
mov ecx, edi
push eax
call fcn.0047cced
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47bbca
mov ecx, 0x5706d4
call fcn.0048d5c2
test ebx, ebx
jne 0x47bbe9
lea eax, [ebp - 0x138]
mov ecx, edi
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047ce7f
mov ebx, eax
mov ecx, edi
call fcn.0047f7c3
lea ecx, [ebp - 0x138]
call fcn.0048bdff
lea eax, [edi + 0x28]
mov dword [ebp - 0x40], 0x531594
mov dword [ebp - 0x3c], eax
mov ecx, edi
push 0x10a
lea eax, [ebp - 0x40]
push eax
call fcn.0047ce3a
lea ecx, [ebp - 0x138]
call fcn.0047bcf5
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406dd3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00406dd3
lea ecx, [ebp - 0x34]
call fcn.0048028a
lea ecx, [ebp - 0xf0]
call fcn.004515ad
mov eax, ebx
call fcn.004d0cbc
ret 8