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 [0x423164], eax
call fcn.00401a7b
push 3
xor ebx, ebx
pop edi
lea ecx, [ebp - 0x98]
push edi
mov byte [0x423168], al
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040218d
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040218d
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040218d
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040218d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401cb5
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x40]
call fcn.004038d7
push dword [ebp - 0x40]
call fcn.00403a63
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.0040218d
lea ecx, [ebp - 0x64]
call fcn.0040460b
lea ecx, [ebp - 0x1c]
call fcn.0040237b
lea ecx, [ebp - 0x1c]
call fcn.00402340
push 0x420278
lea ecx, [ebp - 0x40]
mov byte [ebp + 0xb], bl
call fcn.00401cb5
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401e6f
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.00403b38
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
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.00401e4e
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401daf
push dword [ebp - 0x10]
call fcn.00403a63
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040237b
lea ecx, [ebp - 0x1c]
call fcn.00402340
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.0040245b
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.00410ec0
push 1
pop ebx
jmp 0x401a27
push 0x420240
lea ecx, [ebp - 0xc4]
call fcn.00401cb5
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040218d
cmp dword [ebp - 0x54], ebx
mov byte [ebp - 0xc8], 1
je 0x4014b2
lea ecx, [ebp - 0xac]
call fcn.00402172
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xac], 0x41b33c
call fcn.00403de4
test al, al
jne 0x40120b
cmp byte [ebp + 0xb], bl
jne 0x401203
mov edx, str.Config_failed
xor ecx, ecx
call fcn.00410ec0
push 1
pop ebx
jmp 0x40132c
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x40]
call fcn.004040fd
push dword [ebp - 0x10]
call fcn.00403a63
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401cb5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x28]
call fcn.004040fd
push dword [ebp - 0x10]
call fcn.00403a63
lea ecx, [ebp - 0x10]
mov dword [esp], 0x4201ec
call fcn.00401cb5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xd4]
call fcn.004040fd
push dword [ebp - 0x10]
call fcn.00403a63
pop ecx
mov edx, 0x4201e4
mov ecx, dword [ebp - 0xd4]
call fcn.00403b38
test eax, eax
jne 0x4012a2
mov byte [ebp - 0xc8], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xac]
call fcn.004040cb
push dword [ebp - 0x10]
mov esi, eax
call fcn.00403a63
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.00401daf
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.00403a63
push dword [ebp - 0x28]
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
add esp, 0xc
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x41b33c
call fcn.00404349
lea ecx, [ebp - 0xac]
call fcn.00404320
push dword [ebp - 0x34]
call fcn.00403a63
push dword [ebp - 0xc4]
call fcn.00403a63
push dword [ebp - 0x58]
call fcn.00403a63
push dword [ebp - 0x64]
call fcn.00403a63
push dword [ebp - 0x70]
call fcn.00403a63
push dword [ebp - 0x4c]
call fcn.00403a63
push dword [ebp - 0x1c]
call fcn.00403a63
push dword [ebp - 0x98]
call fcn.00403a63
add esp, 0x20
jmp 0x401a5d
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.004040fd
push eax
lea ecx, [ebp - 0x34]
call fcn.00401daf
push dword [ebp - 0xec]
call fcn.00403a63
push dword [ebp - 0x10]
call fcn.00403a63
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xec]
call fcn.004040fd
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401daf
push dword [ebp - 0xec]
call fcn.00403a63
push dword [ebp - 0x10]
call fcn.00403a63
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004040fd
mov edx, eax
lea ecx, [ebp - 0xec]
call fcn.00402635
push eax
lea ecx, [ebp - 0x70]
call fcn.00401daf
push dword [ebp - 0xec]
call fcn.00403a63
push dword [ebp - 0xe0]
call fcn.00403a63
push dword [ebp - 0x10]
call fcn.00403a63
push dword [ebp - 0xd4]
call fcn.00403a63
push dword [ebp - 0x28]
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
add esp, 0x18
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x41b33c
call fcn.00404349
lea ecx, [ebp - 0xac]
call fcn.00404320
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x8c], bl
call fcn.00401c9d
push dword [0x420060]
lea ecx, [ebp - 0x8c]
call fcn.004052cf
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.00410ec0
push 1
pop ebx
jmp 0x4019fb
push 0x1c
call fcn.00403a3d
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401512
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401f2a
mov dword [esi], 0x41b330
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.00407f8e
test eax, eax
je 0x40153a
mov edx, str.Can_not_load_codecs
xor ecx, ecx
call fcn.00410ec0
jmp 0x40163d
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
push eax
call fcn.00401d16
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.0040218d
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.00402efe
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.00405ed1
push eax
lea ecx, [ebp - 0x28]
call fcn.00401daf
push dword [ebp - 0xe0]
call fcn.00403a63
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.00405ed1
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.00403a63
pop ecx
push dword [ebp - 0x28]
jmp 0x40191f
push dword [ebp - 0x28]
call fcn.00403a63
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00401c9d
lea ecx, [ebp - 0x7c]
call fcn.00404f70
mov ecx, dword [ebp - 0x88]
call fcn.00404f2c
test al, al
jne 0x401650
mov ecx, dword [ebp - 0x7c]
call fcn.00404f2c
push dword [ebp - 0x7c]
call fcn.00403a63
push dword [ebp - 0xb8]
call fcn.00403a63
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.00401e18
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.00410ec0
push dword [ebp - 0x28]
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00404f2c
push dword [ebp - 0x7c]
call fcn.00403a63
push dword [ebp - 0xb8]
call fcn.00403a63
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.0040536a
push dword [ebp - 0x88]
call fcn.00403a63
push dword [ebp - 0x34]
call fcn.00403a63
push dword [ebp - 0xc4]
call fcn.00403a63
push dword [ebp - 0x58]
call fcn.00403a63
push dword [ebp - 0x64]
call fcn.00403a63
push dword [ebp - 0x70]
call fcn.00403a63
push dword [ebp - 0x4c]
call fcn.00403a63
push dword [ebp - 0x1c]
call fcn.00403a63
push dword [ebp - 0x98]
call fcn.00403a63
add esp, 0x24
mov eax, edi
jmp 0x401a5f
push dword [ebp - 0x28]
mov edi, dword [ebp - 0xf4]
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
pop ecx
jmp 0x4019bf
cmp dword [ebp - 0x30], ebx
jne 0x4017ec
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.00401d50
mov ecx, dword [ebp - 0x34]
call fcn.004057af
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.00410ec0
jmp 0x401914
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401d16
lea ecx, [ebp - 0x40]
call fcn.00405bad
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e8b
push dword [ebp - 0x10]
call fcn.00403a63
push dword [ebp - 0x40]
call fcn.00403a63
pop ecx
pop ecx
push 0x420090
lea ecx, [ebp - 0x10]
call fcn.00401cb5
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e8b
push dword [ebp - 0x10]
call fcn.00403a63
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x401876
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00401ded
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00401e18
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.00402635
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.00401a66
push dword [ebp - 0xe0]
call fcn.00403a63
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.00410ef6
push dword [ebp - 0xd4]
call fcn.00403a63
pop ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00404f2c
push dword [ebp - 0x7c]
call fcn.00403a63
push dword [ebp - 0xb8]
call fcn.00403a63
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.0040536a
push dword [ebp - 0x88]
call fcn.00403a63
push dword [ebp - 0x34]
call fcn.00403a63
push dword [ebp - 0xc4]
call fcn.00403a63
push dword [ebp - 0x58]
call fcn.00403a63
push dword [ebp - 0x64]
call fcn.00403a63
push dword [ebp - 0x70]
call fcn.00403a63
push dword [ebp - 0x4c]
call fcn.00403a63
push dword [ebp - 0x1c]
call fcn.00403a63
push dword [ebp - 0x98]
call fcn.00403a63
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.00403a63
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.00404f2c
push dword [ebp - 0x7c]
call fcn.00403a63
push dword [ebp - 0xb8]
call fcn.00403a63
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.0040536a
push dword [ebp - 0x88]
call fcn.00403a63
push dword [ebp - 0x34]
call fcn.00403a63
push dword [ebp - 0xc4]
call fcn.00403a63
add esp, 0xc
push dword [ebp - 0x58]
call fcn.00403a63
push dword [ebp - 0x64]
call fcn.00403a63
push dword [ebp - 0x70]
call fcn.00403a63
push dword [ebp - 0x4c]
call fcn.00403a63
push dword [ebp - 0x1c]
call fcn.00403a63
push dword [ebp - 0x98]
call fcn.00403a63
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10