Function at 0x457778
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 + 0x17], 0
mov dword [esp + 0x28], esi
call fcn.00464bf2
mov esi, eax
push edi
test esi, esi
je 0x45782a
call fcn.0045a4ea
mov eax, dword [eax]
push eax
add esi, 4
push esi
call fcn.0042e27d
test eax, eax
jne 0x4577cd
mov ebx, edi
call fcn.00459776
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.0045c30c
lea eax, [esp + 0x18]
push eax
call fcn.0044f7f0
pop ecx
mov edi, 0x50502c
call fcn.00438ebc
lea ecx, [esp + 0x18]
call fcn.004058a3
mov eax, edi
call fcn.0044f3f0
mov edi, dword [ebp + 8]
push edi
call fcn.0045a4ea
push dword [eax]
lea eax, [edi + 0xf4]
push eax
call fcn.00457306
add edi, 4
mov eax, esi
call fcn.00438ebc
mov edi, dword [ebp + 8]
mov byte [esp + 0x13], 1
jmp 0x45783c
lea ebx, [edi + 0x28]
mov dword [esp + 0x10], ebx
call fcn.0045a4ea
push eax
call fcn.0045c30c
lea ebx, [edi + 0x24]
add edi, 0x88
mov eax, ebx
mov dword [esp + 0x28], ebx
call fcn.00438ebc
cmp byte [0x505028], 0
je 0x4578c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [esp + 0x20]
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
mov esi, 0x504ff8
mov eax, esi
call fcn.00464e5b
lea ecx, [esp + 0x18]
call fcn.004058a3
cmp byte [0x505028], 0
je 0x4578c8
push dword [ebx]
lea eax, [esp + 0x1c]
push str.Command_line_to_pass_to_MSI:
push eax
call fcn.00465a6a
push eax
call fcn.00465a7a
push eax
call fcn.00465a7a
push eax
mov eax, esi
call fcn.00464e5b
lea ecx, [esp + 0x18]
call fcn.004058a3
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x130]
lea esi, [ebx + 0x7c]
mov eax, esi
mov dword [esp + 0x18], edi
call fcn.00438ebc
push 1
mov eax, edi
call fcn.00464831
lea eax, [esp + 0x20]
push eax
call fcn.0044f7f0
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x20]
call fcn.004058a3
mov edi, dword [esp + 0xc]
call fcn.0045c4af
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x45793f
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
call fcn.0045c658
mov ecx, eax
mov eax, edi
mov edi, ebx
call fcn.0045a4bc
lea ecx, [esp + 0x20]
call fcn.004058a3
xor eax, eax
inc eax
jmp 0x4577c4
push dword [esp + 0xc]
lea edi, [esp + 0x8c]
call fcn.0045b58e
test byte [ebx + 0x6c], 2
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x4579a0
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.0045801b
lea eax, [esp + 0x38]
push eax
mov eax, edi
push eax
call fcn.0045bb09
mov esi, edi
call fcn.0045baaa
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x457993
push eax
mov eax, dword [esp + 0x10]
call fcn.0045c3a8
push ebx
lea ecx, [esp + 0xd0]
call fcn.0045969c
mov esi, dword [esp + 0x24]
push 6
call fcn.00464bf2
mov esi, eax
test esi, esi
je 0x4579c1
push 1
lea edi, [esp + 0x8c]
call fcn.0045b7f7
jmp 0x457a03
mov esi, dword [esp + 0x24]
push 7
call fcn.00464bf2
mov esi, eax
test esi, esi
je 0x4579d6
push 1
jmp 0x4579f7
mov esi, dword [esp + 0x24]
push 8
call fcn.00464bf2
mov esi, eax
test esi, esi
je 0x457a03
push 0
lea edi, [esp + 0x8c]
call fcn.0045b7f7
push 0
lea edi, [esp + 0x8c]
call fcn.0045b8bf
cmp byte [ebp + 0xc], 0
je 0x457a4d
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
je 0x457a30
lea eax, [esp + 0x88]
push eax
mov dword [ebx + 0xa4], 3
mov dword [esp + 0x16c], esi
call fcn.00457d7e
lea edi, [esp + 0x38]
call fcn.0045b254
lea eax, [esp + 0x88]
push eax
call fcn.00439906
mov eax, esi
jmp 0x4577c4
lea eax, [esp + 0x88]
push eax
call fcn.0045b7c9
test al, al
mov byte [ebx + 0x184], al
sete al
push ebx
mov byte [0x502b78], al
call fcn.00458052
push str.Advinst_
lea eax, [esp + 0x18]
push eax
call fcn.00405d14
push dword [esp + 0xc]
lea eax, [esp + 0x24]
call fcn.0045c51c
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.004390fc
lea ecx, [esp + 0x20]
call fcn.004058a3
push dword [esp + 0x14]
mov eax, 0x504fec
call fcn.004337c5
test esi, esi
jne 0x457ae5
cmp byte [0x504ff4], 0
je 0x457ae5
inc esi
push esi
push 0xcc
mov dword [ebx + 0xa4], 3
call fcn.00465bf0
pop ecx
pop ecx
lea ecx, [esp + 0x14]
call fcn.004058a3
jmp 0x457a30
mov esi, dword [esp + 0x18]
mov edi, 0xdc
push edi
call fcn.004648bf
test byte [ebx + 0x6c], 2
je 0x457b1d
lea eax, [esp + 0x88]
mov dword [esp + 0x34], eax
push edi
lea edi, [esp + 0x30]
mov eax, ebx
mov dword [esp + 0x30], 0x4da6e0
mov dword [esp + 0x34], ebx
call fcn.004589da
lea eax, [esp + 0x88]
call fcn.004580f2
test al, al
je 0x457b3d
lea ecx, [esp + 0x14]
call fcn.004058a3
xor esi, esi
jmp 0x457a30
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x457b7e
push 0x8a
lea edi, [esp + 0x30]
mov eax, esi
mov dword [esp + 0x30], 0x4da6e4
mov dword [esp + 0x34], esi
call fcn.004589da
xor ebx, ebx
cmp byte [esp + 0x34], bl
je 0x457b80
lea ecx, [esp + 0x14]
call fcn.004058a3
xor esi, esi
inc esi
jmp 0x457a30
xor ebx, ebx
lea eax, [esp + 0x88]
push eax
push esi
call fcn.0045986e
test al, al
jne 0x457b6d
cmp byte [esp + 0x13], bl
jne 0x457bb0
push esi
call fcn.004596d5
test al, al
je 0x457bb0
mov ebx, esi
call fcn.00459776
mov esi, eax
jmp 0x457ad7
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00458e5e
mov edi, eax
cmp edi, ebx
je 0x457bd7
lea ecx, [esp + 0x14]
mov dword [esi + 0x10], edi
call fcn.004058a3
mov esi, edi
jmp 0x457a30
mov eax, dword [esp + 0xb0]
cmp dword [eax - 0xc], ebx
je 0x457beb
mov byte [esp + 0x115], 1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x78], eax
mov al, byte [esi + 0x184]
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], 0x4da6ec
call fcn.004589da
cmp byte [esp + 0x70], bl
je 0x457b6d
call fcn.00458179
lea eax, [esp + 0x88]
push eax
push esi
call fcn.004581c5
mov dword [esp + 0xc], eax
cmp byte [esi + 0x17c], bl
je 0x457c86
lea ecx, [esp + 0x14]
call fcn.004058a3
or esi, 0xffffffff
jmp 0x457a30
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call fcn.0041f17d
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x457cc8
lea eax, [esp + 0x98]
lea edi, [esp + 0x1c]
call fcn.00438ebc
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.00465335
pop ecx
call fcn.00438ebc
lea ecx, [esp + 0x28]
call fcn.004058a3
mov eax, dword [esp + 0x18]
call fcn.00464910
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.004661ba
test byte [esi + 0x6c], 2
je 0x457d27
cmp dword [esp + 0xc], ebx
jne 0x457d27
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
call fcn.00465d82
push esi
lea edi, [esp + 0x48]
call fcn.0045887b
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0xffffffff
jne 0x457d38
push 0x505030
call fcn.00466307
cmp dword [esp + 0xc], ebx
jne 0x457d5a
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00458a0a
mov dword [esp + 0xc], eax
lea edi, [esp + 0x54]
call fcn.0045b21c
lea ecx, [esp + 0x1c]
call fcn.004058a3
lea ecx, [esp + 0x14]
call fcn.004058a3
mov esi, dword [esp + 0xc]
jmp 0x457a30