Function at 0x404c10
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.00415ac5
mov esi, eax
push ebx
test esi, esi
je 0x404cd4
call fcn.00408098
mov eax, dword [eax]
add esi, 4
push eax
push esi
mov dword [ebp - 0x18], esi
call fcn.00408f22
test eax, eax
jne 0x404c61
mov edi, ebx
call fcn.00407197
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebx + 0x28]
push esi
mov dword [ebp - 0x10], ecx
call fcn.0040b250
mov eax, esi
lea edi, [ebp - 8]
call fcn.00409e5a
mov esi, 0x45aed8
mov edi, esi
call fcn.004087db
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
call fcn.00409c45
push ebx
call fcn.00408098
push dword [eax]
lea eax, [ebp - 8]
call fcn.004044e8
add ebx, 0x128
push ebx
lea ebx, [ebp - 8]
call fcn.0040461b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add edi, 4
call fcn.004087db
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 1
jmp 0x404ce7
lea esi, [ebx + 0x28]
mov dword [ebp - 0x10], esi
call fcn.00408098
push eax
mov ecx, esi
call fcn.0040b250
lea esi, [ebx + 0x24]
lea edi, [ebx + 0x9c]
mov eax, esi
mov dword [ebp - 0x24], esi
call fcn.004087db
cmp byte [0x45aed4], 0
je 0x404d72
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Full_command_line:
lea eax, [ebp - 8]
call fcn.00416bf9
push eax
call fcn.00416c0a
push eax
call fcn.00416c0a
push eax
mov edi, 0x45aea4
mov eax, edi
call fcn.00415f87
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
cmp byte [0x45aed4], 0
je 0x404d72
push dword [esi]
lea eax, [ebp - 8]
push str.Command_line_to_pass_to_MSI:
call fcn.00416bf9
push eax
call fcn.00416c0a
push eax
call fcn.00416c0a
push eax
mov eax, edi
call fcn.00415f87
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebx + 0x16c]
add ebx, 0x88
mov eax, ebx
mov dword [ebp - 8], edi
call fcn.004087db
push 1
mov eax, edi
call fcn.00415635
mov eax, ebx
lea edi, [ebp - 0x18]
call fcn.00409e5a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004045dc
mov ebx, dword [ebp - 0x10]
call fcn.0040b47d
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404de5
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 8]
call fcn.0040b679
mov esi, dword [ebp + 8]
push edi
call fcn.00408066
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
xor eax, eax
inc eax
jmp 0x404c5a
push dword [ebp - 0x10]
lea esi, [ebp - 0x194]
call fcn.00411c3b
mov esi, dword [ebp + 8]
test byte [esi + 0x6c], 2
mov dword [ebp - 0x40], 0x453048
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
je 0x404e79
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00405460
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.00412386
lea ebx, [ebp - 0x194]
call fcn.00412301
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov edi, esp
call fcn.00409bcb
push dword [ebp - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.0040b2ef
call fcn.0041217b
push eax
push dword [ebp - 0x10]
call fcn.0040d5a1
lea edi, [esi + 0x104]
lea eax, [ebp - 0x13c]
call fcn.004087db
push esi
lea eax, [ebp - 0x150]
call fcn.004070b5
xor ebx, ebx
mov esi, dword [ebp - 0x20]
push 6
call fcn.00415ac5
mov esi, eax
cmp esi, ebx
je 0x404e99
push 1
lea eax, [ebp - 0x194]
push eax
call fcn.00411f63
jmp 0x404ed6
mov esi, dword [ebp - 0x20]
push 7
call fcn.00415ac5
mov esi, eax
cmp esi, ebx
je 0x404ead
push 1
jmp 0x404ecb
mov esi, dword [ebp - 0x20]
push 8
call fcn.00415ac5
mov esi, eax
cmp esi, ebx
je 0x404ed6
push ebx
lea eax, [ebp - 0x194]
push eax
call fcn.00411f63
push ebx
lea ecx, [ebp - 0x194]
call fcn.00412049
lea eax, [ebp - 0x194]
push eax
call fcn.00411f32
mov ebx, dword [ebp + 8]
test al, al
mov byte [ebx + 0x1c8], al
sete al
push ebx
mov byte [0x4595a4], al
call fcn.00405499
push str.Advinst_
lea eax, [ebp - 0x18]
call fcn.004044e8
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.0040b538
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.00402288
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004045dc
lea edi, [ebx + 0x140]
lea eax, [ebp - 0x18]
call fcn.004087db
push dword [ebp - 0x18]
mov eax, 0x459ee8
call fcn.0040ede2
test esi, esi
jne 0x404f9d
cmp byte [0x459ef4], 0
je 0x404f9d
lea edi, [ebx + 0x134]
mov dword [ebx + 0xb8], 3
call fcn.0040df4b
inc esi
push esi
push 0xcc
call fcn.00416db8
pop ecx
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004045dc
lea ebx, [ebp - 0x3c]
call fcn.00409753
lea eax, [ebp - 0x194]
call fcn.00405253
mov eax, esi
jmp 0x404c5a
mov edi, dword [ebp - 8]
push 0
mov esi, 0xdc
push esi
call fcn.004156c7
test byte [ebx + 0x6c], 2
je 0x404fd1
lea eax, [ebp - 0x194]
mov dword [ebp - 0x28], eax
push esi
lea esi, [ebp - 0x30]
mov eax, ebx
mov dword [ebp - 0x30], 0x44b930
mov dword [ebp - 0x2c], ebx
call fcn.004060b2
lea eax, [ebp - 0x194]
push eax
call fcn.00405554
test al, al
je 0x404fe5
xor esi, esi
jmp 0x404f78
mov edi, ebx
test byte [edi + 0x6c], 4
je 0x405015
push 0x8a
lea esi, [ebp - 0x30]
mov eax, edi
mov dword [ebp - 0x30], 0x44b938
mov dword [ebp - 0x2c], edi
call fcn.004060b2
xor ebx, ebx
cmp byte [ebp - 0x28], bl
je 0x405017
xor esi, esi
inc esi
jmp 0x404f78
xor ebx, ebx
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.004072a7
test al, al
jne 0x40500d
cmp byte [ebp - 9], bl
jne 0x405044
mov edx, edi
call fcn.004070f0
test al, al
je 0x405044
call fcn.00407197
mov esi, eax
jmp 0x404f78
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.00406813
cmp eax, ebx
je 0x40505a
mov dword [edi + 0x10], eax
jmp 0x40503d
mov eax, dword [ebp - 0x16c]
cmp dword [eax - 0xc], ebx
je 0x40506c
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], 0x44b960
call fcn.004060b2
cmp byte [ebp - 0x60], bl
je 0x40500d
mov eax, edi
call fcn.0040562d
lea eax, [ebp - 0x194]
push eax
push edi
call fcn.0040568b
push edi
lea eax, [ebp - 0x194]
call fcn.00405822
mov dword [ebp - 0x14], eax
cmp byte [edi + 0x1c0], bl
je 0x4050f1
or esi, 0xffffffff
jmp 0x404f78
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409bcb
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax - 0xc], ebx
jne 0x405137
lea eax, [ebp - 0x184]
lea edi, [ebp - 0x1c]
call fcn.004087db
push ebx
mov eax, edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004164b7
add esp, 0xc
call fcn.004087db
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 8]
call fcn.0041575c
mov eax, dword [0x45a180]
mov ecx, 0x45a180
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.0041703b
mov eax, dword [ebp - 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x1c]
call fcn.00402288
mov ebx, dword [ebp + 8]
test byte [ebx + 0x6c], 2
je 0x405198
cmp dword [ebp - 0x14], 0
jne 0x405198
push ebx
lea esi, [ebp - 0xa0]
call fcn.00405f43
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4051a8
push 0x45aedc
call fcn.004184d2
cmp dword [ebp - 0x14], 0
jne 0x4051c9
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004060ee
mov dword [ebp - 0x14], eax
call fcn.0040864e
lea eax, [ebp - 0xa0]
call fcn.0041764e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
push 0x10a
lea esi, [ebp - 0x48]
mov eax, ebx
mov dword [ebp - 0x48], 0x44b970
call fcn.004060b2
lea edi, [ebp - 0x7c]
call fcn.004096cd
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x94]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
mov esi, dword [ebp - 0x14]
jmp 0x404f78