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

Disassembly:
push 0x12c
mov eax, 0x507642
call fcn.004d2c19
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x18]
push 3
mov byte [ebp - 0x11], bl
call fcn.004894b5
mov ecx, edi
mov esi, eax
call fcn.0047e588
test esi, esi
je 0x47acce
push dword [eax]
lea ecx, [esi + 4]
mov dword [ebp - 0x10], ecx
call fcn.004451dc
test eax, eax
jne 0x47ac54
mov ecx, edi
call fcn.0047d739
jmp 0x47b29e
push dword [ebp - 0x10]
lea ecx, [edi + 0x28]
call fcn.00480d81
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov edx, esi
call fcn.0046f880
push eax
mov ecx, 0x56b840
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov ecx, 0x56b840
call fcn.0046f310
mov ecx, edi
call fcn.0047e588
lea ecx, [ebp - 0x10]
push dword [eax]
call fcn.00409419
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x128]
call fcn.0047a5d5
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push esi
lea ecx, [edi + 4]
call fcn.004434b9
mov byte [ebp - 0x11], 1
jmp 0x47acd7
push eax
lea ecx, [edi + 0x28]
call fcn.00480d81
lea esi, [edi + 0x24]
push esi
lea ecx, [edi + 0x9c]
call fcn.004434b9
cmp byte [0x56b83c], 0
je 0x47ad96
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.Full_command_line:
call fcn.004072c4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
je 0x47ad25
push eax
lea ecx, [ebp - 0x10]
call fcn.004072c4
lea eax, [ebp - 0x10]
mov ecx, 0x56b80c
push eax
call fcn.00489943
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
cmp byte [0x56b83c], 0
je 0x47ad96
mov esi, dword [esi]
call fcn.00406d01
push eax
lea ecx, [ebp - 0x10]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
push str.Command_line_to_pass_to_MSI:
call fcn.004072c4
test esi, esi
je 0x47ad79
push esi
lea ecx, [ebp - 0x10]
call fcn.004072c4
lea eax, [ebp - 0x10]
mov ecx, 0x56b80c
push eax
call fcn.00489943
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea esi, [edi + 0x88]
lea ecx, [edi + 0x16c]
push esi
call fcn.004434b9
push 1
lea ecx, [edi + 0x16c]
call fcn.00484731
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.0046f880
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.00406df6
lea esi, [edi + 0x28]
mov ecx, esi
call fcn.00480fd2
mov dword [ebp - 0x10], eax
test eax, eax
je 0x47ae1b
lea ecx, [edi + 0xfc]
push ecx
lea ecx, [ebp + 8]
call fcn.004073cf
lea eax, [ebp + 8]
mov ecx, edi
push eax
push dword [ebp - 0x10]
call fcn.0047e54b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406df6
xor eax, eax
inc eax
jmp 0x47b29e
push esi
lea ecx, [ebp - 0xf0]
call fcn.0047fb2c
test byte [edi + 0x6c], 2
mov dword [ebp - 0x38], 0x52e5cc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
je 0x47aea5
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0047b4c4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00480267
lea ecx, [ebp - 0xf0]
call fcn.004801c3
push ecx
mov ecx, esp
push eax
call fcn.004073cf
mov ecx, esi
call fcn.00480e2b
lea ecx, [ebp - 0xf0]
call fcn.0048004d
push eax
mov ecx, esi
call fcn.004830c7
lea eax, [ebp - 0x98]
push eax
lea ecx, [edi + 0x104]
call fcn.004434b9
lea eax, [ebp - 0xac]
mov ecx, edi
push eax
call fcn.0047d641
push 6
lea ecx, [edi + 0x18]
call fcn.004894b5
mov esi, eax
test esi, esi
je 0x47aec4
push 1
lea ecx, [ebp - 0xf0]
call fcn.0047fde9
jmp 0x47af00
push 7
lea ecx, [edi + 0x18]
call fcn.004894b5
mov esi, eax
test esi, esi
je 0x47aed8
push 1
jmp 0x47aef5
push 8
lea ecx, [edi + 0x18]
call fcn.004894b5
mov esi, eax
test esi, esi
je 0x47af00
push ebx
lea ecx, [ebp - 0xf0]
call fcn.0047fde9
push ebx
lea ecx, [ebp - 0xf0]
call fcn.0047ff03
cmp byte [ebp + 8], 0
je 0x47af2f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47b289
lea eax, [ebp - 0xf0]
mov dword [edi + 0xb8], 3
push eax
mov dword [ebp - 0x74], ebx
call fcn.0047b2a6
jmp 0x47b289
lea ecx, [ebp - 0xf0]
call fcn.0047fdaa
test al, al
mov byte [edi + 0x1c8], al
mov ecx, edi
sete byte [0x565b5c]
call fcn.0047b50d
push str.Advinst_
lea ecx, [ebp - 0x1c]
call fcn.00409419
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x28]
call fcn.004810a2
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004072ec
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x140]
call fcn.004434b9
push dword [ebp - 0x1c]
call fcn.0048754c
test esi, esi
jne 0x47afd0
cmp byte [0x56b7f0], 0
je 0x47afd0
lea ecx, [edi + 0x134]
mov dword [edi + 0xb8], 3
call fcn.00483b68
mov dl, 1
mov ecx, 0xcc
call fcn.0048a5d0
jmp 0x47b0fc
push ecx
push ebx
lea esi, [edi + 0x16c]
push 0xdc
mov ecx, esi
call fcn.004847b4
test byte [edi + 0x6c], 2
je 0x47b00d
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x28], 0x52bcac
mov dword [ebp - 0x20], eax
mov ecx, edi
push 0xdc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edi
push eax
call fcn.0047c464
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047b5da
test al, al
jne 0x47b27a
test byte [edi + 0x6c], 4
je 0x47b04d
push 0x8a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x52bcb4
push eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.0047c464
cmp byte [ebp - 0x20], 0
jne 0x47b0fc
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047d871
test al, al
jne 0x47b0fc
cmp byte [ebp - 0x11], al
jne 0x47b07c
mov ecx, edi
call fcn.0047d68d
test al, al
je 0x47b07c
mov ecx, edi
call fcn.0047d739
jmp 0x47b091
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047cca2
test eax, eax
je 0x47b098
mov dword [edi + 0x10], eax
mov ebx, eax
jmp 0x47b27a
mov eax, dword [ebp - 0xc8]
cmp dword [eax - 0xc], 0
je 0x47b0af
lea ecx, [ebp - 0x90]
call fcn.00494c44
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 - 0x90]
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], 0x52bca4
call fcn.0047c464
cmp byte [ebp - 0x58], 0
jne 0x47b104
xor ebx, ebx
inc ebx
jmp 0x47b27a
mov ecx, edi
call fcn.0047b6a8
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047b711
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.0047b8b0
cmp byte [edi + 0x1c0], 0
mov dword [ebp + 0xc], eax
je 0x47b13b
or ebx, 0xffffffff
jmp 0x47b27a
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004073cf
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x47b184
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x18]
call fcn.004434b9
push ebx
lea edx, [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.00489c6d
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004434b9
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea ecx, [edi + 0x178]
call fcn.004845ba
call fcn.00406d01
push eax
lea ecx, [ebp + 8]
call fcn.00406b29
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.0048a89a
cmp dword [ebp - 0x134], 0
lea ecx, [ebp - 0x18]
mov esi, dword [ebp + 8]
jle 0x47b1d1
push esi
push ebx
call fcn.004770b0
jmp 0x47b1da
push dword [esi - 0xc]
push esi
call fcn.004072ec
test byte [edi + 0x6c], 2
mov ebx, dword [ebp + 0xc]
je 0x47b1f7
test ebx, ebx
jne 0x47b1f7
lea eax, [ebp - 0x138]
mov ecx, edi
push eax
call fcn.0047c317
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47b206
mov ecx, 0x56b844
call fcn.0048cb90
test ebx, ebx
jne 0x47b225
lea eax, [ebp - 0x138]
mov ecx, edi
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0047c4a9
mov ebx, eax
mov ecx, edi
call fcn.0047ed8d
lea ecx, [ebp - 0x138]
call fcn.0048b3d0
lea eax, [edi + 0x28]
mov dword [ebp - 0x40], 0x52bc9c
mov dword [ebp - 0x3c], eax
mov ecx, edi
push 0x10a
lea eax, [ebp - 0x40]
push eax
call fcn.0047c464
lea ecx, [ebp - 0x138]
call fcn.0047b32b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00406df6
lea ecx, [ebp - 0x34]
call fcn.0047f854
lea ecx, [ebp - 0xf0]
call fcn.00451398
mov eax, ebx
call fcn.004d2be2
ret 8