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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x18]
push 3
mov byte [ebp - 5], 0
mov dword [ebp - 0x18], esi
call fcn.0041302e
mov esi, eax
push ebx
test esi, esi
je 0x404df8
call fcn.00407fcf
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 0xc], esi
call fcn.00408e89
test eax, eax
jne 0x404d85
mov edi, ebx
call fcn.004070d1
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b023
mov eax, esi
lea edi, [ebp - 0x14]
call fcn.00409ce9
mov esi, 0x456c3c
mov edi, esi
call fcn.0040872e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
call fcn.00409ad4
push ebx
call fcn.00407fcf
push dword [eax]
lea eax, [ebp - 0x14]
call fcn.004045c9
add ebx, 0x120
push ebx
lea ebx, [ebp - 0x14]
call fcn.004046d7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046a2
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add edi, 4
call fcn.0040872e
mov ebx, dword [ebp + 8]
mov byte [ebp - 5], 1
jmp 0x404e0b
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.00407fcf
push eax
mov ecx, esi
call fcn.0040b023
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x90]
mov eax, esi
mov dword [ebp - 0x20], esi
call fcn.0040872e
cmp byte [0x456c38], 0
je 0x404e96
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 0xc]
call fcn.004141f6
push eax
call fcn.00414207
push eax
call fcn.00414207
push eax
mov edi, 0x456c08
mov eax, edi
call fcn.004134f0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [0x456c38], 0
je 0x404e96
push dword [esi]
lea eax, [ebp - 0xc]
push str.Command_line_to_pass_to_MSI:
call fcn.004141f6
push eax
call fcn.00414207
push eax
call fcn.00414207
push eax
mov eax, edi
call fcn.004134f0
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
lea edi, [ebx + 0x160]
add ebx, 0x7c
mov eax, ebx
mov dword [ebp - 0x14], edi
call fcn.0040872e
push 1
mov eax, edi
call fcn.00412bfc
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.00409ce9
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
mov ebx, dword [ebp - 0x10]
call fcn.0040b1cf
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x404f06
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
call fcn.0040b38e
mov esi, dword [ebp + 8]
push ebx
call fcn.00407f9d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
xor eax, eax
inc eax
jmp 0x404d7e
push dword [ebp - 0x10]
lea esi, [ebp - 0x17c]
call fcn.0040f5aa
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x3c], 0x44e868
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
je 0x404f89
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.004054e7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.0040fc99
lea ebx, [ebp - 0x17c]
call fcn.0040fc19
push eax
push dword [ebp - 0x10]
call fcn.0040b0c2
call fcn.0040fa98
push eax
push dword [ebp - 0x10]
call fcn.0040d2e5
lea edi, [esi + 0xfc]
lea eax, [ebp - 0x124]
call fcn.0040872e
push esi
lea eax, [ebp - 0x138]
call fcn.00406ff5
xor edi, edi
mov esi, dword [ebp - 0x18]
push 6
call fcn.0041302e
mov esi, eax
cmp esi, edi
je 0x404fa9
push 1
lea eax, [ebp - 0x17c]
push eax
call fcn.0040f8d2
jmp 0x404fe7
mov esi, dword [ebp - 0x18]
push 7
call fcn.0041302e
mov esi, eax
cmp esi, edi
je 0x404fbd
push 1
jmp 0x404fdb
mov esi, dword [ebp - 0x18]
push 8
call fcn.0041302e
mov esi, eax
cmp esi, edi
je 0x404fe7
push edi
lea eax, [ebp - 0x17c]
push eax
call fcn.0040f8d2
push edi
lea eax, [ebp - 0x17c]
push eax
call fcn.0040f9a8
lea eax, [ebp - 0x17c]
push eax
call fcn.0040f8a1
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1b4], al
sete al
push ebx
mov byte [0x455500], al
call fcn.00405520
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.004045c9
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.0040b24d
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.00402360
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
push dword [ebp - 0x18]
call fcn.0040476f
cmp esi, edi
jne 0x405092
cmp byte [0x456c04], 0
je 0x405092
xor esi, esi
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.004143b5
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004046a2
lea ebx, [ebp - 0x38]
call fcn.00409629
lea eax, [ebp - 0x17c]
call fcn.004052e4
mov eax, esi
jmp 0x404d7e
mov esi, dword [ebp - 0x14]
mov edi, 0xdc
push edi
call fcn.00412c8e
test byte [ebx + 0x6c], 2
je 0x4050c4
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x24], eax
push edi
lea edi, [ebp - 0x2c]
mov eax, ebx
mov dword [ebp - 0x2c], 0x4488ec
mov dword [ebp - 0x28], ebx
call fcn.00405f4c
lea eax, [ebp - 0x17c]
push eax
call fcn.004055db
test al, al
je 0x4050d8
xor esi, esi
jmp 0x40506d
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x40510c
push 0x8a
lea edi, [ebp - 0x2c]
mov eax, esi
mov dword [ebp - 0x2c], 0x4488f0
mov dword [ebp - 0x28], esi
call fcn.00405f4c
xor ebx, ebx
cmp byte [ebp - 0x24], bl
je 0x40510e
xor esi, esi
inc esi
jmp 0x40506d
xor ebx, ebx
lea eax, [ebp - 0x17c]
push eax
push esi
call fcn.004071e1
test al, al
jne 0x405104
cmp byte [ebp - 5], bl
jne 0x40513c
push esi
call fcn.00407030
test al, al
je 0x40513c
mov edi, esi
call fcn.004070d1
mov esi, eax
jmp 0x40506d
lea eax, [ebp - 0x17c]
push eax
push esi
call fcn.00406754
cmp eax, ebx
je 0x405152
mov dword [esi + 0x10], eax
jmp 0x405135
mov eax, dword [ebp - 0x154]
cmp dword [eax - 0xc], ebx
je 0x405164
mov byte [ebp - 0xeb], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
mov al, byte [esi + 0x1b4]
mov byte [ebp - 0x64], al
lea eax, [ebp - 0x74]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x7c], eax
push 0xec
lea edi, [ebp - 0x88]
mov eax, esi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x88], 0x448908
call fcn.00405f4c
cmp byte [ebp - 0x78], bl
je 0x405104
mov eax, esi
call fcn.00405678
lea eax, [ebp - 0x17c]
push eax
push esi
call fcn.004056d3
mov dword [ebp + 8], eax
cmp byte [esi + 0x1ac], bl
je 0x4051e6
or esi, 0xffffffff
jmp 0x40506d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], ebx
jne 0x40522a
lea eax, [ebp - 0x16c]
lea edi, [ebp - 0x1c]
call fcn.0040872e
mov eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00413a20
pop ecx
pop ecx
call fcn.0040872e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x14]
call fcn.00412cca
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x4c], bl
call fcn.00414b07
test byte [esi + 0x6c], 2
je 0x405279
cmp dword [ebp + 8], ebx
jne 0x405279
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
call fcn.00414629
push esi
lea edi, [ebp - 0x58]
call fcn.00405e0a
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x405289
push 0x456c40
call fcn.00414d9e
cmp dword [ebp + 8], ebx
jne 0x4052a6
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00405f7c
mov dword [ebp + 8], eax
mov eax, esi
call fcn.0040852b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
push 0x10a
lea edi, [ebp - 0x60]
mov eax, esi
mov dword [ebp - 0x60], 0x448910
call fcn.00405f4c
lea edi, [ebp - 0x48]
call fcn.004095a3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046a2
mov esi, dword [ebp + 8]
jmp 0x40506d