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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
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 - 0x20], esi
call fcn.00415b5b
mov esi, eax
push ebx
test esi, esi
je 0x404d20
call fcn.0040814c
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 0x18], esi
call fcn.00409051
test eax, eax
jne 0x404cad
mov edi, ebx
call fcn.0040724b
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b2d3
mov eax, esi
lea edi, [ebp - 8]
call fcn.00409f0c
mov esi, 0x45aea0
mov edi, esi
call fcn.00408905
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
call fcn.00409cf7
push ebx
call fcn.0040814c
push dword [eax]
lea eax, [ebp - 8]
call fcn.0040455c
add ebx, 0x128
push ebx
lea ebx, [ebp - 8]
call fcn.00404684
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add edi, 4
call fcn.00408905
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 1
jmp 0x404d33
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.0040814c
push eax
mov ecx, esi
call fcn.0040b2d3
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x9c]
mov eax, esi
mov dword [ebp - 0x24], esi
call fcn.00408905
cmp byte [0x45ae9c], 0
je 0x404dbe
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 8]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
call fcn.00416ca0
push eax
mov edi, 0x45ae6c
mov eax, edi
call fcn.0041601d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
cmp byte [0x45ae9c], 0
je 0x404dbe
push dword [esi]
lea eax, [ebp - 8]
push str.Command_line_to_pass_to_MSI:
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
call fcn.00416ca0
push eax
mov eax, edi
call fcn.0041601d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
lea edi, [ebx + 0x16c]
add ebx, 0x88
mov eax, ebx
mov dword [ebp - 8], edi
call fcn.00408905
push 1
mov eax, edi
call fcn.004156d0
mov eax, ebx
lea edi, [ebp - 0x18]
call fcn.00409f0c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404645
mov ebx, dword [ebp - 0x10]
call fcn.0040b500
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404e31
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040b6fc
mov esi, dword [ebp + 8]
push edi
call fcn.0040811a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
xor eax, eax
inc eax
jmp 0x404ca6
push dword [ebp - 0x10]
lea esi, [ebp - 0x194]
call fcn.00411c57
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x40], 0x452ff0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x404ec5
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.004054ab
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.004123a2
lea ebx, [ebp - 0x194]
call fcn.0041231d
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00409c7d
push dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.0040b372
call fcn.00412197
push eax
push dword [ebp - 0x10]
call fcn.0040d624
lea edi, [esi + 0x104]
lea eax, [ebp - 0x13c]
call fcn.00408905
push esi
lea eax, [ebp - 0x150]
call fcn.00407169
xor ebx, ebx
mov esi, dword [ebp - 0x20]
push 6
call fcn.00415b5b
mov esi, eax
cmp esi, ebx
je 0x404ee5
push 1
lea eax, [ebp - 0x194]
push eax
call fcn.00411f7f
jmp 0x404f22
mov esi, dword [ebp - 0x20]
push 7
call fcn.00415b5b
mov esi, eax
cmp esi, ebx
je 0x404ef9
push 1
jmp 0x404f17
mov esi, dword [ebp - 0x20]
push 8
call fcn.00415b5b
mov esi, eax
cmp esi, ebx
je 0x404f22
push ebx
lea eax, [ebp - 0x194]
push eax
call fcn.00411f7f
push ebx
lea ecx, [ebp - 0x194]
call fcn.00412065
lea eax, [ebp - 0x194]
push eax
call fcn.00411f4e
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1c8], al
sete al
push ebx
mov byte [0x459594], al
call fcn.004054e4
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.0040455c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.0040b5bb
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.004022f6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404645
lea edi, [ebx + 0x140]
lea eax, [ebp - 0x18]
call fcn.00408905
push dword [ebp - 0x18]
mov eax, 0x459ec0
call fcn.0040edff
test esi, esi
jne 0x404fe9
cmp byte [0x459ecc], 0
je 0x404fe9
lea edi, [ebx + 0x134]
mov dword [ebx + 0xb8], 3
call fcn.0040e04a
inc esi
push esi
push 0xcc
call fcn.00416e4e
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404645
lea ebx, [ebp - 0x3c]
call fcn.0040984c
lea eax, [ebp - 0x194]
call fcn.0040529e
mov eax, esi
jmp 0x404ca6
mov edi, dword [ebp - 8]
push 0
mov esi, 0xdc
push esi
call fcn.00415762
test byte [ebx + 0x6c], 2
je 0x40501d
lea eax, [ebp - 0x194]
mov dword [ebp - 0x28], eax
push esi
lea esi, [ebp - 0x30]
mov eax, ebx
mov dword [ebp - 0x30], 0x44b924
mov dword [ebp - 0x2c], ebx
call fcn.00406071
lea eax, [ebp - 0x194]
push eax
call fcn.0040559f
test al, al
je 0x405031
xor esi, esi
jmp 0x404fc4
mov edi, ebx
test byte [edi + 0x6c], 4
je 0x405061
push 0x8a
lea esi, [ebp - 0x30]
mov eax, edi
mov dword [ebp - 0x30], 0x44b92c
mov dword [ebp - 0x2c], edi
call fcn.00406071
xor ebx, ebx
cmp byte [ebp - 0x28], bl
je 0x405063
xor esi, esi
inc esi
jmp 0x404fc4
xor ebx, ebx
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.0040735b
test al, al
jne 0x405059
cmp byte [ebp - 9], bl
jne 0x405090
mov edx, edi
call fcn.004071a4
test al, al
je 0x405090
call fcn.0040724b
mov esi, eax
jmp 0x404fc4
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.004068c7
cmp eax, ebx
je 0x4050a6
mov dword [edi + 0x10], eax
jmp 0x405089
mov eax, dword [ebp - 0x16c]
cmp dword [eax - 0xc], ebx
je 0x4050b8
mov byte [ebp - 0x103], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov al, byte [edi + 0x1c8]
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x194]
mov dword [ebp - 0x64], eax
push 0xec
lea esi, [ebp - 0x70]
mov eax, edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x70], 0x44b988
call fcn.00406071
cmp byte [ebp - 0x60], bl
je 0x405059
mov eax, edi
call fcn.00405678
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.004056d6
push edi
lea eax, [ebp - 0x194]
call fcn.0040586d
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x1c0], bl
je 0x40513d
or esi, 0xffffffff
jmp 0x404fc4
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c7d
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], ebx
jne 0x405183
lea eax, [ebp - 0x184]
lea edi, [ebp - 0x1c]
call fcn.00408905
push ebx
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041654d
add esp, 0xc
call fcn.00408905
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 8]
call fcn.004157f7
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
lea ebx, [ebp - 0xa0]
push dword [ebp - 0x20]
call fcn.004170d1
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 0x1c]
push ebx
call fcn.004022f6
mov edi, dword [ebp + 8]
test byte [edi + 0x6c], 2
je 0x4051e4
cmp dword [ebp - 0x14], 0
jne 0x4051e4
push edi
lea esi, [ebp - 0xa0]
call fcn.00405f02
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4051f4
push 0x45aea4
call fcn.00418568
cmp dword [ebp - 0x14], 0
jne 0x405215
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004060aa
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.00408702
lea eax, [ebp - 0xa0]
call fcn.004176e4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
push 0x10a
lea esi, [ebp - 0x48]
mov eax, edi
mov dword [ebp - 0x48], 0x44b998
call fcn.00406071
lea edi, [ebp - 0x7c]
call fcn.004097ad
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
call fcn.00404645
lea eax, [ebx - 0x10]
call fcn.00404645
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404645
mov esi, dword [ebp - 0x14]
jmp 0x404fc4