Function at 0x404c75
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.00415c11
mov esi, eax
push ebx
test esi, esi
je 0x404d39
call fcn.00408148
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 0x18], esi
call fcn.004090d9
test eax, eax
jne 0x404cc6
mov edi, ebx
call fcn.00407247
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b33e
mov eax, esi
lea edi, [ebp - 8]
call fcn.00409f80
mov esi, 0x45aea0
mov edi, esi
call fcn.00408901
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
call fcn.00409d6b
push ebx
call fcn.00408148
push dword [eax]
lea eax, [ebp - 8]
call fcn.0040456b
add ebx, 0x128
push ebx
lea ebx, [ebp - 8]
call fcn.004046a0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add edi, 4
call fcn.00408901
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 1
jmp 0x404d4c
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.00408148
push eax
mov ecx, esi
call fcn.0040b33e
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x9c]
mov eax, esi
mov dword [ebp - 0x24], esi
call fcn.00408901
cmp byte [0x45ae9c], 0
je 0x404dd7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 8]
call fcn.00416d25
push eax
call fcn.00416d36
push eax
call fcn.00416d36
push eax
mov edi, 0x45ae6c
mov eax, edi
call fcn.004160b3
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
cmp byte [0x45ae9c], 0
je 0x404dd7
push dword [esi]
lea eax, [ebp - 8]
push str.Command_line_to_pass_to_MSI:
call fcn.00416d25
push eax
call fcn.00416d36
push eax
call fcn.00416d36
push eax
mov eax, edi
call fcn.004160b3
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea edi, [ebx + 0x16c]
add ebx, 0x88
mov eax, ebx
mov dword [ebp - 8], edi
call fcn.00408901
push 1
mov eax, edi
call fcn.00415786
mov eax, ebx
lea edi, [ebp - 0x18]
call fcn.00409f80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404644
mov ebx, dword [ebp - 0x10]
call fcn.0040b56b
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404e4a
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040b767
mov esi, dword [ebp + 8]
push edi
call fcn.00408116
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
xor eax, eax
inc eax
jmp 0x404cbf
push dword [ebp - 0x10]
lea esi, [ebp - 0x194]
call fcn.00411cec
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x40], 0x452fe8
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x404ede
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.004054c4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00412437
lea ebx, [ebp - 0x194]
call fcn.004123b2
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00409cf1
push dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.0040b3dd
call fcn.0041222c
push eax
push dword [ebp - 0x10]
call fcn.0040d68f
lea edi, [esi + 0x104]
lea eax, [ebp - 0x13c]
call fcn.00408901
push esi
lea eax, [ebp - 0x150]
call fcn.00407165
xor ebx, ebx
mov esi, dword [ebp - 0x20]
push 6
call fcn.00415c11
mov esi, eax
cmp esi, ebx
je 0x404efe
push 1
lea eax, [ebp - 0x194]
push eax
call fcn.00412014
jmp 0x404f3b
mov esi, dword [ebp - 0x20]
push 7
call fcn.00415c11
mov esi, eax
cmp esi, ebx
je 0x404f12
push 1
jmp 0x404f30
mov esi, dword [ebp - 0x20]
push 8
call fcn.00415c11
mov esi, eax
cmp esi, ebx
je 0x404f3b
push ebx
lea eax, [ebp - 0x194]
push eax
call fcn.00412014
push ebx
lea ecx, [ebp - 0x194]
call fcn.004120fa
lea eax, [ebp - 0x194]
push eax
call fcn.00411fe3
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1c8], al
sete al
push ebx
mov byte [0x459594], al
call fcn.004054fd
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.0040456b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.0040b626
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.00402306
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404644
lea edi, [ebx + 0x140]
lea eax, [ebp - 0x18]
call fcn.00408901
push dword [ebp - 0x18]
mov eax, 0x459ec0
call fcn.0040ee8b
test esi, esi
jne 0x405002
cmp byte [0x459ecc], 0
je 0x405002
lea edi, [ebx + 0x134]
mov dword [ebx + 0xb8], 3
call fcn.0040e0d6
inc esi
push esi
push 0xcc
call fcn.00416ee4
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404644
lea ebx, [ebp - 0x3c]
call fcn.00409879
lea eax, [ebp - 0x194]
call fcn.004052b7
mov eax, esi
jmp 0x404cbf
mov edi, dword [ebp - 8]
push 0
mov esi, 0xdc
push esi
call fcn.00415818
test byte [ebx + 0x6c], 2
je 0x405036
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.0040606d
lea eax, [ebp - 0x194]
push eax
call fcn.004055b8
test al, al
je 0x40504a
xor esi, esi
jmp 0x404fdd
mov edi, ebx
test byte [edi + 0x6c], 4
je 0x40507a
push 0x8a
lea esi, [ebp - 0x30]
mov eax, edi
mov dword [ebp - 0x30], 0x44b92c
mov dword [ebp - 0x2c], edi
call fcn.0040606d
xor ebx, ebx
cmp byte [ebp - 0x28], bl
je 0x40507c
xor esi, esi
inc esi
jmp 0x404fdd
xor ebx, ebx
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.00407357
test al, al
jne 0x405072
cmp byte [ebp - 9], bl
jne 0x4050a9
mov edx, edi
call fcn.004071a0
test al, al
je 0x4050a9
call fcn.00407247
mov esi, eax
jmp 0x404fdd
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.004068c3
cmp eax, ebx
je 0x4050bf
mov dword [edi + 0x10], eax
jmp 0x4050a2
mov eax, dword [ebp - 0x16c]
cmp dword [eax - 0xc], ebx
je 0x4050d1
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.0040606d
cmp byte [ebp - 0x60], bl
je 0x405072
mov eax, edi
call fcn.00405674
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.004056d2
push edi
lea eax, [ebp - 0x194]
call fcn.00405869
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x1c0], bl
je 0x405156
or esi, 0xffffffff
jmp 0x404fdd
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf1
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], ebx
jne 0x40519c
lea eax, [ebp - 0x184]
lea edi, [ebp - 0x1c]
call fcn.00408901
push ebx
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004165e3
add esp, 0xc
call fcn.00408901
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 8]
call fcn.004158ad
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.00417167
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 0x1c]
push ebx
call fcn.00402306
mov edi, dword [ebp + 8]
test byte [edi + 0x6c], 2
je 0x4051fd
cmp dword [ebp - 0x14], 0
jne 0x4051fd
push edi
lea esi, [ebp - 0xa0]
call fcn.00405efe
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40520d
push 0x45aea4
call fcn.004185fe
cmp dword [ebp - 0x14], 0
jne 0x40522e
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.004060a6
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.004086fe
lea eax, [ebp - 0xa0]
call fcn.0041777a
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.0040606d
lea edi, [ebp - 0x7c]
call fcn.004097f3
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [ebx - 0x10]
call fcn.00404644
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
mov esi, dword [ebp - 0x14]
jmp 0x404fdd