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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x18]
push 3
mov byte [esp + 0x1b], 0
mov dword [esp + 0x28], esi
call fcn.004657b5
mov esi, eax
push edi
test esi, esi
je 0x4582ec
call fcn.0045afb9
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.0042e0ac
test eax, eax
jne 0x45827a
mov ebx, edi
call fcn.0045a238
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ebx, [edi + 0x28]
push esi
mov dword [esp + 0x10], ebx
call fcn.0045ce0b
lea eax, [esp + 0x10]
push eax
call fcn.0044f580
pop ecx
mov edi, 0x506014
call fcn.00438b14
lea ecx, [esp + 0x10]
call fcn.004058e3
mov eax, edi
call fcn.0044f180
mov edi, dword [ebp + 8]
push edi
call fcn.0045afb9
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.00405d54
lea eax, [edi + 0xf8]
push eax
lea ebx, [esp + 0x14]
call fcn.00457d82
mov ecx, ebx
call fcn.004058e3
add edi, 4
mov eax, esi
call fcn.00438b14
mov edi, dword [ebp + 8]
mov byte [esp + 0x17], 1
jmp 0x4582fe
lea ebx, [edi + 0x28]
mov dword [esp + 0x10], ebx
call fcn.0045afb9
push eax
call fcn.0045ce0b
lea ebx, [edi + 0x24]
add edi, 0x8c
mov eax, ebx
mov dword [esp + 0x28], ebx
call fcn.00438b14
cmp byte [0x506010], 0
je 0x45838a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x18]
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov esi, 0x505fe0
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x10]
call fcn.004058e3
cmp byte [0x506010], 0
je 0x45838a
push dword [ebx]
lea eax, [esp + 0x14]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.00466612
push eax
call fcn.00466622
push eax
call fcn.00466622
push eax
mov eax, esi
call fcn.00465a03
lea ecx, [esp + 0x10]
call fcn.004058e3
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x138]
lea esi, [ebx + 0x7c]
mov eax, esi
mov dword [esp + 0x10], edi
call fcn.00438b14
push 1
mov eax, edi
call fcn.004653f4
lea eax, [esp + 0x20]
push eax
call fcn.0044f580
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x20]
call fcn.004058e3
mov edi, dword [esp + 0xc]
call fcn.0045cfae
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x458401
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
call fcn.0045d157
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.0045af8b
lea ecx, [esp + 0x20]
call fcn.004058e3
xor eax, eax
inc eax
jmp 0x458271
push dword [esp + 0xc]
lea edi, [esp + 0x8c]
call fcn.0045c076
test byte [ebx + 0x6c], 2
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x458462
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00458add
lea eax, [esp + 0x38]
push eax
mov eax, edi
push eax
call fcn.0045c5f1
mov esi, edi
call fcn.0045c592
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x458455
push eax
mov eax, dword [esp + 0x10]
call fcn.0045cea7
push ebx
lea ecx, [esp + 0xd0]
call fcn.0045a15e
mov esi, dword [esp + 0x24]
push 6
call fcn.004657b5
mov esi, eax
test esi, esi
je 0x458483
push 1
lea edi, [esp + 0x8c]
call fcn.0045c2df
jmp 0x4584c5
mov esi, dword [esp + 0x24]
push 7
call fcn.004657b5
mov esi, eax
test esi, esi
je 0x458498
push 1
jmp 0x4584b9
mov esi, dword [esp + 0x24]
push 8
call fcn.004657b5
mov esi, eax
test esi, esi
je 0x4584c5
push 0
lea edi, [esp + 0x8c]
call fcn.0045c2df
push 0
lea edi, [esp + 0x8c]
call fcn.0045c3a7
cmp byte [ebp + 0xc], 0
je 0x45850f
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x4584f2
lea eax, [esp + 0x88]
push eax
mov dword [ebx + 0xa8], 3
mov dword [esp + 0x16c], esi
call fcn.00458840
lea edi, [esp + 0x38]
call fcn.0045bd3c
lea eax, [esp + 0x88]
push eax
call fcn.00439583
mov eax, esi
jmp 0x458271
lea eax, [esp + 0x88]
push eax
call fcn.0045c2b1
test al, al
mov byte [ebx + 0x18c], al
sete al
push ebx
mov byte [0x503af8], al
call fcn.00458b14
push str.Advinst_
lea eax, [esp + 0x1c]
push eax
call fcn.00405d54
push dword [esp + 0xc]
lea eax, [esp + 0x24]
call fcn.0045d01b
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x20]
call fcn.00438d54
lea ecx, [esp + 0x20]
call fcn.004058e3
push dword [esp + 0x18]
mov eax, 0x505fd4
call fcn.00433594
test esi, esi
jne 0x4585a7
cmp byte [0x505fdc], 0
je 0x4585a7
inc esi
push esi
push 0xcc
mov dword [ebx + 0xa8], 3
call fcn.00466798
pop ecx
pop ecx
lea ecx, [esp + 0x18]
call fcn.004058e3
jmp 0x4584f2
mov esi, dword [esp + 0x10]
mov edi, 0xdc
push edi
call fcn.00465482
test byte [ebx + 0x6c], 2
je 0x4585df
lea eax, [esp + 0x88]
mov dword [esp + 0x34], eax
push edi
lea edi, [esp + 0x30]
mov eax, ebx
mov dword [esp + 0x30], 0x4db6fc
mov dword [esp + 0x34], ebx
call fcn.0045949c
lea eax, [esp + 0x88]
call fcn.00458bb4
test al, al
je 0x4585ff
lea ecx, [esp + 0x18]
call fcn.004058e3
xor esi, esi
jmp 0x4584f2
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x458640
push 0x8a
lea edi, [esp + 0x30]
mov eax, esi
mov dword [esp + 0x30], 0x4db700
mov dword [esp + 0x34], esi
call fcn.0045949c
xor ebx, ebx
cmp byte [esp + 0x34], bl
je 0x458642
lea ecx, [esp + 0x18]
call fcn.004058e3
xor esi, esi
inc esi
jmp 0x4584f2
xor ebx, ebx
lea eax, [esp + 0x88]
push eax
push esi
call fcn.0045a330
test al, al
jne 0x45862f
cmp byte [esp + 0x17], bl
jne 0x458672
push esi
call fcn.0045a197
test al, al
je 0x458672
mov ebx, esi
call fcn.0045a238
mov esi, eax
jmp 0x458599
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00459920
mov edi, eax
cmp edi, ebx
je 0x458699
lea ecx, [esp + 0x18]
mov dword [esi + 0x10], edi
call fcn.004058e3
mov esi, edi
jmp 0x4584f2
mov eax, dword [esp + 0xb0]
cmp dword [eax - 0xc], ebx
je 0x4586ad
mov byte [esp + 0x115], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov al, byte [esi + 0x18c]
mov byte [esp + 0x84], al
lea eax, [esp + 0x74]
mov dword [esp + 0x64], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x6c], eax
push 0xec
lea edi, [esp + 0x64]
mov eax, esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x64], 0x4db708
call fcn.0045949c
cmp byte [esp + 0x70], bl
je 0x45862f
call fcn.00458c3b
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00458c87
mov dword [esp + 0xc], eax
cmp byte [esi + 0x184], bl
je 0x458748
lea ecx, [esp + 0x18]
call fcn.004058e3
or esi, 0xffffffff
jmp 0x4584f2
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call fcn.0041f0fb
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x45878a
lea eax, [esp + 0x98]
lea edi, [esp + 0x1c]
call fcn.00438b14
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.00465edd
pop ecx
call fcn.00438b14
lea ecx, [esp + 0x28]
call fcn.004058e3
mov eax, dword [esp + 0x10]
call fcn.004654d3
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x49], bl
mov byte [esp + 0x54], bl
call fcn.00466d62
test byte [esi + 0x6c], 2
je 0x4587e9
cmp dword [esp + 0xc], ebx
jne 0x4587e9
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
call fcn.0046692a
push esi
lea edi, [esp + 0x48]
call fcn.0045933d
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
jne 0x4587fa
push 0x506018
call fcn.00466eaf
cmp dword [esp + 0xc], ebx
jne 0x45881c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004594cc
mov dword [esp + 0xc], eax
lea edi, [esp + 0x54]
call fcn.0045bceb
lea ecx, [esp + 0x1c]
call fcn.004058e3
lea ecx, [esp + 0x18]
call fcn.004058e3
mov esi, dword [esp + 0xc]
jmp 0x4584f2