Function at 0x404d3c
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 - 9], 0
mov dword [ebp - 0x18], esi
call fcn.004151cd
mov esi, eax
push ebx
test esi, esi
je 0x404e00
call fcn.00408135
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 8], esi
call fcn.00408fde
test eax, eax
jne 0x404d8d
mov edi, ebx
call fcn.00407257
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b2d5
mov eax, esi
lea edi, [ebp - 0x14]
call fcn.00409e3e
mov esi, 0x457cc0
mov edi, esi
call fcn.004088ee
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046b1
call fcn.00409c29
push ebx
call fcn.00408135
push dword [eax]
lea eax, [ebp - 0x14]
call fcn.004045e3
add ebx, 0x128
push ebx
lea ebx, [ebp - 0x14]
call fcn.004046e6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004046b1
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
add edi, 4
call fcn.004088ee
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 1
jmp 0x404e13
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.00408135
push eax
mov ecx, esi
call fcn.0040b2d5
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x90]
mov eax, esi
mov dword [ebp - 0x2c], esi
call fcn.004088ee
cmp byte [0x457cbc], 0
je 0x404e9e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 8]
call fcn.00416300
push eax
call fcn.00416311
push eax
call fcn.00416311
push eax
mov edi, 0x457c8c
mov eax, edi
call fcn.0041568f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
cmp byte [0x457cbc], 0
je 0x404e9e
push dword [esi]
lea eax, [ebp - 8]
push str.Command_line_to_pass_to_MSI:
call fcn.00416300
push eax
call fcn.00416311
push eax
call fcn.00416311
push eax
mov eax, edi
call fcn.0041568f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
lea edi, [ebx + 0x168]
add ebx, 0x7c
mov eax, ebx
mov dword [ebp - 0x14], edi
call fcn.004088ee
push 1
mov eax, edi
call fcn.00414d9b
mov eax, ebx
lea edi, [ebp - 8]
call fcn.00409e3e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
mov ebx, dword [ebp - 0x10]
call fcn.0040b4ff
mov ebx, eax
xor edi, edi
cmp ebx, edi
je 0x404f0e
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040b6be
mov esi, dword [ebp + 8]
push ebx
call fcn.00408103
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
xor eax, eax
inc eax
jmp 0x404d86
push dword [ebp - 0x10]
lea esi, [ebp - 0x18c]
call fcn.00411718
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x3c], 0x4506e8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
je 0x404fa2
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0040551d
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00411e38
lea ebx, [ebp - 0x18c]
call fcn.00411db8
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00409baf
push dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.0040b374
call fcn.00411c37
push eax
push dword [ebp - 0x10]
call fcn.0040d5dc
lea edi, [esi + 0x104]
lea eax, [ebp - 0x134]
call fcn.004088ee
push esi
lea eax, [ebp - 0x148]
call fcn.0040717b
xor edi, edi
mov esi, dword [ebp - 0x18]
push 6
call fcn.004151cd
mov esi, eax
cmp esi, edi
je 0x404fc2
push 1
lea eax, [ebp - 0x18c]
push eax
call fcn.00411a40
jmp 0x405000
mov esi, dword [ebp - 0x18]
push 7
call fcn.004151cd
mov esi, eax
cmp esi, edi
je 0x404fd6
push 1
jmp 0x404ff4
mov esi, dword [ebp - 0x18]
push 8
call fcn.004151cd
mov esi, eax
cmp esi, edi
je 0x405000
push edi
lea eax, [ebp - 0x18c]
push eax
call fcn.00411a40
push edi
lea eax, [ebp - 0x18c]
push eax
call fcn.00411b16
lea eax, [ebp - 0x18c]
push eax
call fcn.00411a0f
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1bc], al
sete al
push ebx
mov byte [0x456514], al
call fcn.00405556
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.004045e3
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.0040b57d
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.00402383
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046b1
push dword [ebp - 0x18]
mov eax, 0x456d08
call fcn.0040ea6b
cmp esi, edi
jne 0x4050b0
cmp byte [0x456d14], 0
je 0x4050b0
xor esi, esi
inc esi
push esi
push 0xcc
mov dword [ebx + 0xac], 3
call fcn.004164bf
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004046b1
lea ebx, [ebp - 0x38]
call fcn.0040977e
lea eax, [ebp - 0x18c]
call fcn.0040531a
mov eax, esi
jmp 0x404d86
mov esi, dword [ebp - 0x14]
mov edi, 0xdc
push edi
call fcn.00414e2d
test byte [ebx + 0x6c], 2
je 0x4050e2
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x20], eax
push edi
lea edi, [ebp - 0x28]
mov eax, ebx
mov dword [ebp - 0x28], 0x44990c
mov dword [ebp - 0x24], ebx
call fcn.0040607e
lea eax, [ebp - 0x18c]
push eax
call fcn.00405611
test al, al
je 0x4050f6
xor esi, esi
jmp 0x40508b
mov esi, ebx
mov eax, dword [esi + 0x6c]
shr eax, 2
test al, 1
je 0x40512a
push 0x8a
lea edi, [ebp - 0x28]
mov eax, esi
mov dword [ebp - 0x28], 0x449910
mov dword [ebp - 0x24], esi
call fcn.0040607e
xor ebx, ebx
cmp byte [ebp - 0x20], bl
je 0x40512c
xor esi, esi
inc esi
jmp 0x40508b
xor ebx, ebx
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.00407367
test al, al
jne 0x405122
cmp byte [ebp - 9], bl
jne 0x40515a
push esi
call fcn.004071b6
test al, al
je 0x40515a
mov edi, esi
call fcn.00407257
mov esi, eax
jmp 0x40508b
lea eax, [ebp - 0x18c]
push eax
push esi
call fcn.004068c9
cmp eax, ebx
je 0x405170
mov dword [esi + 0x10], eax
jmp 0x405153
mov eax, dword [ebp - 0x164]
cmp dword [eax - 0xc], ebx
je 0x405182
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], 0x449928
call fcn.0040607e
cmp byte [ebp - 0x5c], bl
je 0x405122
mov eax, esi
call fcn.004056ae
lea ebx, [ebp - 0x18c]
call fcn.00405709
mov eax, ebx
push eax
push esi
call fcn.004057fc
cmp byte [esi + 0x1b4], 0
mov ebx, eax
je 0x405202
or esi, 0xffffffff
jmp 0x40508b
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409baf
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], 0
jne 0x405247
lea eax, [ebp - 0x17c]
lea edi, [ebp - 0x1c]
call fcn.004088ee
mov eax, edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.00415bbf
pop ecx
pop ecx
call fcn.004088ee
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x14]
call fcn.00414e69
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebp - 0x98]
call fcn.00416733
test byte [esi + 0x6c], 2
je 0x40527e
test ebx, ebx
jne 0x40527e
lea eax, [ebp - 0x3c]
push eax
mov eax, edi
call fcn.00416789
push esi
call fcn.00405f39
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40528d
push 0x457cc4
call fcn.00417451
test ebx, ebx
jne 0x4052ab
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004060ae
mov ebx, eax
mov eax, esi
call fcn.004086eb
lea edi, [ebp - 0x98]
call fcn.00416c1b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push 0x10a
lea edi, [ebp - 0x44]
mov eax, esi
mov dword [ebp - 0x44], 0x449930
call fcn.0040607e
lea edi, [ebp - 0x78]
call fcn.004096f8
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x8c]
add eax, 0xfffffff0
call fcn.004046b1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046b1
mov esi, ebx
jmp 0x40508b