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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
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.00415857
mov esi, eax
push ebx
test esi, esi
je 0x404e02
call fcn.004081da
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 0xc], esi
call fcn.004090ca
test eax, eax
jne 0x404d8f
mov edi, ebx
call fcn.004072dd
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b40b
mov eax, esi
lea edi, [ebp - 0x14]
call fcn.00409f7f
mov esi, 0x458d00
mov edi, esi
call fcn.0040896f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040469f
call fcn.00409d6a
push ebx
call fcn.004081da
push dword [eax]
lea eax, [ebp - 0x14]
call fcn.004045c6
add ebx, 0x128
push ebx
lea ebx, [ebp - 0x14]
call fcn.004046fb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040469f
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add edi, 4
call fcn.0040896f
mov ebx, dword [ebp + 8]
mov byte [ebp - 5], 1
jmp 0x404e15
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.004081da
push eax
mov ecx, esi
call fcn.0040b40b
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x90]
mov eax, esi
mov dword [ebp - 0x20], esi
call fcn.0040896f
cmp byte [0x458cfc], 0
je 0x404ea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 0xc]
call fcn.0041692e
push eax
call fcn.0041693f
push eax
call fcn.0041693f
push eax
mov edi, 0x458ccc
mov eax, edi
call fcn.00415cee
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
cmp byte [0x458cfc], 0
je 0x404ea0
push dword [esi]
lea eax, [ebp - 0xc]
push str.Command_line_to_pass_to_MSI:
call fcn.0041692e
push eax
call fcn.0041693f
push eax
call fcn.0041693f
push eax
mov eax, edi
call fcn.00415cee
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
lea edi, [ebx + 0x168]
add ebx, 0x7c
mov eax, ebx
mov dword [ebp - 0x14], edi
call fcn.0040896f
push 1
mov eax, edi
call fcn.00415425
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.00409f7f
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
mov ebx, dword [ebp - 0x10]
call fcn.0040b638
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x404f10
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
call fcn.0040b7f7
mov esi, dword [ebp + 8]
push ebx
call fcn.004081a8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
xor eax, eax
inc eax
jmp 0x404d88
push dword [ebp - 0x10]
lea esi, [ebp - 0x18c]
call fcn.004119e6
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x3c], 0x451c90
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
je 0x404fa4
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00405536
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00412131
lea ebx, [ebp - 0x18c]
call fcn.004120ac
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00409cf0
push dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.0040b4aa
call fcn.00411f26
push eax
push dword [ebp - 0x10]
call fcn.0040d760
lea edi, [esi + 0x104]
lea eax, [ebp - 0x134]
call fcn.0040896f
push esi
lea eax, [ebp - 0x148]
call fcn.00407202
xor edi, edi
mov esi, dword [ebp - 0x18]
push 6
call fcn.00415857
mov esi, eax
cmp esi, edi
je 0x404fc4
push 1
lea eax, [ebp - 0x18c]
push eax
call fcn.00411d0e
jmp 0x405001
mov esi, dword [ebp - 0x18]
push 7
call fcn.00415857
mov esi, eax
cmp esi, edi
je 0x404fd8
push 1
jmp 0x404ff6
mov esi, dword [ebp - 0x18]
push 8
call fcn.00415857
mov esi, eax
cmp esi, edi
je 0x405001
push edi
lea eax, [ebp - 0x18c]
push eax
call fcn.00411d0e
push edi
lea ecx, [ebp - 0x18c]
call fcn.00411df4
lea eax, [ebp - 0x18c]
push eax
call fcn.00411cdd
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1bc], al
sete al
push ebx
mov byte [0x457514], al
call fcn.0040556f
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.004045c6
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call fcn.0040b6b6
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.00402357
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040469f
push dword [ebp - 0x18]
mov eax, 0x457d48
call fcn.0040ed3c
cmp esi, edi
jne 0x4050b1
cmp byte [0x457d54], 0
je 0x4050b1
xor esi, esi
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.00416aed
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040469f
lea ebx, [ebp - 0x38]
call fcn.004098a4
lea eax, [ebp - 0x18c]
call fcn.00405329
mov eax, esi
jmp 0x404d88
mov esi, dword [ebp - 0x14]
mov edi, 0xdc
push edi
call fcn.004154b7
test byte [ebx + 0x6c], 2
je 0x4050e3
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x24], eax
push edi
lea edi, [ebp - 0x2c]
mov eax, ebx
mov dword [ebp - 0x2c], 0x44a90c
mov dword [ebp - 0x28], ebx
call fcn.00406105
lea eax, [ebp - 0x18c]
push eax
call fcn.0040562a
test al, al
je 0x4050f7
xor esi, esi
jmp 0x40508c
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x40512b
push 0x8a
lea edi, [ebp - 0x2c]
mov eax, esi
mov dword [ebp - 0x2c], 0x44a910
mov dword [ebp - 0x28], esi
call fcn.00406105
xor ebx, ebx
cmp byte [ebp - 0x24], bl
je 0x40512d
xor esi, esi
inc esi
jmp 0x40508c
xor ebx, ebx
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.004073ed
test al, al
jne 0x405123
cmp byte [ebp - 5], bl
jne 0x40515c
mov ecx, esi
call fcn.0040723d
test al, al
je 0x40515c
mov edi, esi
call fcn.004072dd
mov esi, eax
jmp 0x40508c
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.00406950
cmp eax, ebx
je 0x405172
mov dword [esi + 0x10], eax
jmp 0x405155
mov eax, dword [ebp - 0x164]
cmp dword [eax - 0xc], ebx
je 0x405184
mov byte [ebp - 0xfb], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov al, byte [esi + 0x1bc]
mov byte [ebp - 0x48], al
lea eax, [ebp - 0x58]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x60], eax
push 0xec
lea edi, [ebp - 0x6c]
mov eax, esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x6c], 0x44a92c
call fcn.00406105
cmp byte [ebp - 0x5c], bl
je 0x405123
mov eax, esi
call fcn.004056c7
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.00405722
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.00405886
mov dword [ebp + 8], eax
cmp byte [esi + 0x1b4], bl
je 0x40520a
or esi, 0xffffffff
jmp 0x40508c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf0
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], ebx
jne 0x405250
lea eax, [ebp - 0x17c]
lea edi, [ebp - 0x1c]
call fcn.0040896f
push ebx
mov eax, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041621e
add esp, 0xc
call fcn.0040896f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x14]
call fcn.004154f3
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x98]
call fcn.00416d61
test byte [esi + 0x6c], 2
je 0x405289
cmp dword [ebp + 8], ebx
jne 0x405289
lea eax, [ebp - 0x3c]
push eax
mov eax, edi
call fcn.00416db7
push esi
call fcn.00405fc3
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x405299
push 0x458d04
call fcn.00417a7f
cmp dword [ebp + 8], ebx
jne 0x4052b9
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00406135
mov dword [ebp + 8], eax
mov eax, esi
call fcn.0040876c
lea edi, [ebp - 0x98]
call fcn.00417249
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push 0x10a
lea edi, [ebp - 0x44]
mov eax, esi
mov dword [ebp - 0x44], 0x44a934
call fcn.00406105
lea edi, [ebp - 0x78]
call fcn.00409805
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
call fcn.0040469f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040469f
mov esi, dword [ebp + 8]
jmp 0x40508c