Function at 0x401014
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x41a72c], eax
call fcn.00401a7b
push 3
xor ebx, ebx
pop edi
lea ecx, [ebp - 0x98]
push edi
mov byte [0x41a730], al
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040218e
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040218e
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040218e
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040218e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401cb6
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x40]
call fcn.004038c8
push dword [ebp - 0x40]
call fcn.00403a55
pop ecx
mov dword [ebp - 0x64], ebx
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0040218e
lea ecx, [ebp - 0x64]
call fcn.004045ff
lea ecx, [ebp - 0x1c]
call fcn.0040237c
lea ecx, [ebp - 0x1c]
call fcn.00402341
push 0x41a258
lea ecx, [ebp - 0x40]
mov byte [ebp + 0xb], bl
call fcn.00401cb6
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e70
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.00403b2b
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
pop ecx
cmp esi, ebx
pop ecx
jne 0x401154
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 1
call fcn.00401e4f
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401db0
push dword [ebp - 0x10]
call fcn.00403a55
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040237c
lea ecx, [ebp - 0x1c]
call fcn.00402341
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0040245d
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x58]
push eax
push str.___InstallEnd__
mov edx, str.___Install__UTF_8_
call fcn.00401b11
test al, al
jne 0x401199
cmp byte [ebp + 0xb], bl
jne 0x401191
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.00410ec9
push 1
pop ebx
jmp 0x401a27
push 0x41a220
lea ecx, [ebp - 0xc4]
call fcn.00401cb6
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040218e
cmp dword [ebp - 0x54], ebx
mov byte [ebp - 0xc8], 1
je 0x4014b2
lea ecx, [ebp - 0xac]
call fcn.00402173
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xac], 0x416304
call fcn.00403dd7
test al, al
jne 0x40120b
cmp byte [ebp + 0xb], bl
jne 0x401203
mov edx, str.Config_failed
xor ecx, ecx
call fcn.00410ec9
push 1
pop ebx
jmp 0x40132c
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x40]
call fcn.004040f0
push dword [ebp - 0x10]
call fcn.00403a55
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401cb6
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x28]
call fcn.004040f0
push dword [ebp - 0x10]
call fcn.00403a55
lea ecx, [ebp - 0x10]
mov dword [esp], str.Progress
call fcn.00401cb6
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004040f0
push dword [ebp - 0x10]
call fcn.00403a55
pop ecx
mov edx, 0x41a1c4
mov ecx, dword [ebp - 0xd4]
call fcn.00403b2b
test eax, eax
jne 0x4012a2
mov byte [ebp - 0xc8], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xac]
call fcn.004040be
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a55
cmp esi, ebx
pop ecx
jl 0x4012e4
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0xc4]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00401db0
cmp dword [ebp - 0x24], ebx
je 0x40139a
cmp byte [ebp + 0xb], bl
jne 0x40139a
push 0x24
push dword [ebp - 0x40]
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40139a
push dword [ebp - 0xd4]
call fcn.00403a55
push dword [ebp - 0x28]
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
add esp, 0xc
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x416304
call fcn.0040433c
lea ecx, [ebp - 0xac]
call fcn.00404313
push dword [ebp - 0x34]
call fcn.00403a55
push dword [ebp - 0xc4]
call fcn.00403a55
push dword [ebp - 0x58]
call fcn.00403a55
push dword [ebp - 0x64]
call fcn.00403a55
push dword [ebp - 0x70]
call fcn.00403a55
push dword [ebp - 0x4c]
call fcn.00403a55
push dword [ebp - 0x1c]
call fcn.00403a55
push dword [ebp - 0x98]
call fcn.00403a55
add esp, 0x20
jmp 0x401a5d
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x34]
call fcn.00401db0
push dword [ebp - 0xec]
call fcn.00403a55
push dword [ebp - 0x10]
call fcn.00403a55
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.004040f0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401db0
push dword [ebp - 0xec]
call fcn.00403a55
push dword [ebp - 0x10]
call fcn.00403a55
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004040f0
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.00402638
push eax
lea ecx, [ebp - 0x70]
call fcn.00401db0
push dword [ebp - 0xec]
call fcn.00403a55
push dword [ebp - 0xe0]
call fcn.00403a55
push dword [ebp - 0x10]
call fcn.00403a55
push dword [ebp - 0xd4]
call fcn.00403a55
push dword [ebp - 0x28]
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
add esp, 0x18
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x416304
call fcn.0040433c
lea ecx, [ebp - 0xac]
call fcn.00404313
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x8c], bl
call fcn.00401c9e
push dword [0x41a040]
lea ecx, [ebp - 0x8c]
call fcn.004052c3
test al, al
jne 0x4014f1
cmp byte [ebp + 0xb], bl
jne 0x4014e9
mov edx, str.Can_not_create_temp_folder_archive
xor ecx, ecx
call fcn.00410ec9
push 1
pop ebx
jmp 0x4019fb
push 0x1c
call fcn.00403a2e
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401512
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401f2b
mov dword [esi], 0x4162f8
jmp 0x401514
xor esi, esi
cmp esi, ebx
je 0x40151e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.00407f5e
test eax, eax
je 0x40153a
mov edx, str.Can_not_load_codecs
xor ecx, ecx
call fcn.00410ec9
jmp 0x40163d
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
push eax
call fcn.00401d17
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040218e
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x64]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xb8]
push dword [ebp - 0xc8]
mov ecx, esi
push eax
call fcn.00402f01
cmp eax, ebx
je 0x4015f8
cmp byte [ebp + 0xb], bl
jne 0x4015f0
cmp eax, 1
je 0x401593
cmp byte [ebp - 1], bl
je 0x4015bb
push 8
lea ecx, [ebp - 0xe0]
pop edx
call fcn.00405ec5
push eax
lea ecx, [ebp - 0x28]
call fcn.00401db0
push dword [ebp - 0xe0]
call fcn.00403a55
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x4015f0
cmp dword [ebp - 0x24], ebx
je 0x4015f0
push 7
lea ecx, [ebp - 0xe0]
pop edx
call fcn.00405ec5
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xe0]
call fcn.00403a55
pop ecx
push dword [ebp - 0x28]
jmp 0x40191f
push dword [ebp - 0x28]
call fcn.00403a55
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00401c9e
lea ecx, [ebp - 0x7c]
call fcn.00404f64
mov ecx, dword [ebp - 0x88]
call fcn.00404f20
test al, al
jne 0x401650
mov ecx, dword [ebp - 0x7c]
call fcn.00404f20
push dword [ebp - 0x7c]
call fcn.00403a55
push dword [ebp - 0xb8]
call fcn.00403a55
pop ecx
pop ecx
cmp esi, ebx
je 0x4014e9
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4014e9
cmp dword [ebp - 0x48], ebx
je 0x4017b4
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.00401a66
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x12c], 0x3c
mov dword [ebp - 0x128], 0x140
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], eax
je 0x40169e
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401e19
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov eax, dword [ebp - 0x24]
push 1
neg eax
sbb eax, eax
pop edi
and eax, dword [ebp - 0x28]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x10c], 0x20
ja 0x401798
cmp byte [ebp + 0xb], bl
jne 0x4016f9
mov edx, str.Can_not_open_file
xor ecx, ecx
call fcn.00410ec9
push dword [ebp - 0x28]
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00404f20
push dword [ebp - 0x7c]
call fcn.00403a55
push dword [ebp - 0xb8]
call fcn.00403a55
pop ecx
cmp esi, ebx
pop ecx
je 0x401732
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040535e
push dword [ebp - 0x88]
call fcn.00403a55
push dword [ebp - 0x34]
call fcn.00403a55
push dword [ebp - 0xc4]
call fcn.00403a55
push dword [ebp - 0x58]
call fcn.00403a55
push dword [ebp - 0x64]
call fcn.00403a55
push dword [ebp - 0x70]
call fcn.00403a55
push dword [ebp - 0x4c]
call fcn.00403a55
push dword [ebp - 0x1c]
call fcn.00403a55
push dword [ebp - 0x98]
call fcn.00403a55
add esp, 0x24
mov eax, edi
jmp 0x401a5f
push dword [ebp - 0x28]
mov edi, dword [ebp - 0xf4]
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
pop ecx
jmp 0x4019bf
cmp dword [ebp - 0x30], ebx
jne 0x4017ec
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.00401d51
mov ecx, dword [ebp - 0x34]
call fcn.004057a3
test al, al
jne 0x4017ec
cmp byte [ebp + 0xb], bl
jne 0x401914
mov edx, str.Can_not_find_setup.exe
xor ecx, ecx
call fcn.00410ec9
jmp 0x401914
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401d17
lea ecx, [ebp - 0x40]
call fcn.00405ba1
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e8c
push dword [ebp - 0x10]
call fcn.00403a55
push dword [ebp - 0x40]
call fcn.00403a55
pop ecx
pop ecx
push 0x41a070
lea ecx, [ebp - 0x10]
call fcn.00401cb6
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e8c
push dword [ebp - 0x10]
call fcn.00403a55
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x401876
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00401dee
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00401e19
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x134], 0x44
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x108], ebx
mov word [ebp - 0x102], bx
mov dword [ebp - 0x100], ebx
call fcn.00402638
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.00401a66
push dword [ebp - 0xe0]
call fcn.00403a55
pop ecx
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xd4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4019a2
cmp byte [ebp + 0xb], bl
jne 0x401908
xor ecx, ecx
call fcn.00410eff
push dword [ebp - 0xd4]
call fcn.00403a55
pop ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00404f20
push dword [ebp - 0x7c]
call fcn.00403a55
push dword [ebp - 0xb8]
call fcn.00403a55
pop ecx
cmp esi, ebx
pop ecx
je 0x40193b
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040535e
push dword [ebp - 0x88]
call fcn.00403a55
push dword [ebp - 0x34]
call fcn.00403a55
push dword [ebp - 0xc4]
call fcn.00403a55
push dword [ebp - 0x58]
call fcn.00403a55
push dword [ebp - 0x64]
call fcn.00403a55
push dword [ebp - 0x70]
call fcn.00403a55
push dword [ebp - 0x4c]
call fcn.00403a55
push dword [ebp - 0x1c]
call fcn.00403a55
push dword [ebp - 0x98]
call fcn.00403a55
add esp, 0x24
push 1
pop eax
jmp 0x401a5f
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xd4]
mov edi, dword [ebp - 0xf0]
call fcn.00403a55
cmp edi, ebx
pop ecx
je 0x4019d4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7c]
call fcn.00404f20
push dword [ebp - 0x7c]
call fcn.00403a55
push dword [ebp - 0xb8]
call fcn.00403a55
pop ecx
cmp esi, ebx
pop ecx
je 0x4019fb
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040535e
push dword [ebp - 0x88]
call fcn.00403a55
push dword [ebp - 0x34]
call fcn.00403a55
push dword [ebp - 0xc4]
call fcn.00403a55
add esp, 0xc
push dword [ebp - 0x58]
call fcn.00403a55
push dword [ebp - 0x64]
call fcn.00403a55
push dword [ebp - 0x70]
call fcn.00403a55
push dword [ebp - 0x4c]
call fcn.00403a55
push dword [ebp - 0x1c]
call fcn.00403a55
push dword [ebp - 0x98]
call fcn.00403a55
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10