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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x41f158], eax
call fcn.00401964
test al, al
jne 0x401042
mov edx, str.Unsupported_Windows_version
xor ecx, ecx
call fcn.0040b6ce
jmp 0x4017fe
call fcn.00414d20
lea ecx, [ebp - 0xb4]
call fcn.0040372d
lea ecx, [ebp - 0x1c]
call fcn.0040372d
lea ecx, [ebp - 0x80]
call fcn.0040372d
lea ecx, [ebp - 0x64]
call fcn.0040372d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403750
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402fc7
push dword [ebp - 0x28]
call fcn.004031e3
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.0040372d
lea ecx, [ebp - 0x8c]
call fcn.004044f8
lea ecx, [ebp - 0x1c]
call fcn.00403b9f
lea ecx, [ebp - 0x1c]
call fcn.00403b54
xor ebx, ebx
push 0x41b6ec
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], bl
call fcn.0040324f
test al, al
je 0x4010f3
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
add eax, 4
mov byte [ebp + 0xb], 1
push eax
call fcn.0040380e
lea ecx, [ebp - 0x1c]
call fcn.00403b9f
lea ecx, [ebp - 0x1c]
call fcn.00403b54
lea ecx, [ebp - 0x98]
call fcn.004033f3
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x98]
push eax
push str.___InstallEnd__
mov edx, str.___Install__UTF_8_
call fcn.00401a1f
test al, al
jne 0x401137
cmp byte [ebp + 0xb], bl
jne 0x40112f
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.0040b6ce
push 1
pop ebx
jmp 0x401885
push 0x41b6b8
lea ecx, [ebp - 0xa8]
call fcn.00403793
lea ecx, [ebp - 0x34]
call fcn.0040372d
cmp dword [ebp - 0x94], ebx
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0x9c], 1
je 0x401337
lea ecx, [ebp - 0x10]
call fcn.0040dd6c
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x98]
call fcn.00403d9f
test al, al
jne 0x40119b
cmp byte [ebp + 0xb], bl
jne 0x401193
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0040b6ce
push 1
pop ebx
jmp 0x40124e
push str.Title
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.004040c6
push str.BeginPrompt
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.004040c6
push 0x41b67c
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xc0]
call fcn.004040c6
mov ecx, dword [ebp - 0xc0]
mov edx, 0x41b678
call fcn.004032ad
test al, al
je 0x4011e8
mov byte [ebp - 0x9c], bl
mov edx, str.Directory
lea ecx, [ebp - 0x10]
call fcn.00404095
cmp eax, ebx
jl 0x40120e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
lea ecx, [ebp - 0xa8]
add eax, 0xc
push eax
call fcn.00403872
cmp dword [ebp - 0x3c], ebx
je 0x4012aa
cmp byte [ebp + 0xb], bl
jne 0x4012aa
push 0x24
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ebx
call edi
cmp eax, 6
je 0x4012aa
push dword [ebp - 0xc0]
call fcn.004031e3
push dword [ebp - 0x40]
call fcn.004031e3
push dword [ebp - 0x28]
call fcn.004031e3
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00401ca2
push dword [ebp - 0x34]
call fcn.004031e3
push dword [ebp - 0xa8]
call fcn.004031e3
push dword [ebp - 0x98]
call fcn.004031e3
push dword [ebp - 0x8c]
call fcn.004031e3
push dword [ebp - 0x64]
call fcn.004031e3
push dword [ebp - 0x80]
call fcn.004031e3
push dword [ebp - 0x1c]
call fcn.004031e3
push dword [ebp - 0xb4]
call fcn.004031e3
add esp, 0x20
jmp 0x4018c1
push str.RunProgram
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.004040c6
push eax
lea ecx, [ebp - 0x34]
call fcn.00403872
push dword [ebp - 0x4c]
call fcn.004031e3
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
mov dword [esp], str.ExecuteFile
call fcn.004040c6
push eax
lea ecx, [ebp - 0x80]
call fcn.00403872
push dword [ebp - 0x4c]
call fcn.004031e3
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x4c]
mov dword [esp], str.ExecuteParameters
call fcn.004040c6
push eax
lea ecx, [ebp - 0x64]
call fcn.00403872
push dword [ebp - 0x4c]
call fcn.004031e3
push dword [ebp - 0xc0]
call fcn.004031e3
push dword [ebp - 0x40]
call fcn.004031e3
push dword [ebp - 0x28]
call fcn.004031e3
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.00401ca2
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x74], bl
call fcn.0040372d
push dword [0x41b550]
lea ecx, [ebp - 0x74]
call fcn.00404d78
test al, al
jne 0x40136d
cmp byte [ebp + 0xb], bl
jne 0x401365
mov edx, str.Cannot_create_temp_folder_archive
xor ecx, ecx
call fcn.0040b6ce
push 1
pop ebx
jmp 0x40185f
push 0x18
call fcn.004031af
cmp eax, ebx
pop ecx
je 0x401384
mov ecx, eax
call fcn.0040199a
mov esi, eax
jmp 0x401386
xor esi, esi
cmp esi, ebx
je 0x401390
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.0040927a
test eax, eax
je 0x4013ac
mov edx, str.Cannot_load_codecs
xor ecx, ecx
call fcn.0040b6ce
jmp 0x4014a8
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
call fcn.004037e0
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], bl
call fcn.0040372d
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x8c]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x58]
push dword [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.004024b1
cmp eax, ebx
je 0x401462
cmp byte [ebp + 0xb], bl
jne 0x40144c
cmp eax, 1
je 0x4013f5
cmp byte [ebp - 1], bl
je 0x401405
push 8
lea edx, [ebp - 0x10]
pop ecx
call fcn.004064f8
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x40144c
cmp dword [ebp - 0xc], ebx
jne 0x40142d
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004018ca
push eax
lea ecx, [ebp - 0x10]
call fcn.00403872
push dword [ebp - 0x4c]
call fcn.004031e3
pop ecx
push 7
lea ecx, [ebp - 0x4c]
pop edx
call fcn.0040639a
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x10]
push ebx
call edi
push dword [ebp - 0x4c]
call fcn.004031e3
pop ecx
push dword [ebp - 0x10]
call fcn.004031e3
push dword [ebp - 0x58]
call fcn.004031e3
pop ecx
jmp 0x401794
push dword [ebp - 0x10]
call fcn.004031e3
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.0040372d
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0xc4], 1
call fcn.00404aa7
mov ecx, dword [ebp - 0x58]
call fcn.00404a99
test al, al
jne 0x4014bb
lea ecx, [ebp - 0xd0]
call fcn.004018dd
push dword [ebp - 0x58]
call fcn.004031e3
pop ecx
cmp esi, ebx
je 0x401365
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x401365
cmp dword [ebp - 0x7c], ebx
je 0x40161a
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x28]
push eax
call fcn.004037e0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x10c], 0x3c
mov dword [ebp - 0x108], 0x140
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], eax
je 0x401512
lea ecx, [ebp - 0x64]
call fcn.004039ec
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x64]
push eax
call fcn.00403a44
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x40]
push eax
call fcn.004037e0
mov eax, dword [ebp - 0x3c]
push 1
neg eax
sbb eax, eax
pop edi
and eax, dword [ebp - 0x40]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0xec], 0x20
ja 0x401604
cmp byte [ebp + 0xb], bl
jne 0x40156e
mov edx, str.Cannot_open_file
xor ecx, ecx
call fcn.0040b6ce
push dword [ebp - 0x40]
call fcn.004031e3
push dword [ebp - 0x28]
call fcn.004031e3
pop ecx
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.004018dd
push dword [ebp - 0x58]
call fcn.004031e3
cmp esi, ebx
pop ecx
je 0x40159e
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x74]
call fcn.00404e25
push dword [ebp - 0x70]
call fcn.004031e3
push dword [ebp - 0x34]
call fcn.004031e3
push dword [ebp - 0xa8]
call fcn.004031e3
push dword [ebp - 0x98]
call fcn.004031e3
push dword [ebp - 0x8c]
call fcn.004031e3
push dword [ebp - 0x64]
call fcn.004031e3
push dword [ebp - 0x80]
call fcn.004031e3
push dword [ebp - 0x1c]
call fcn.004031e3
push dword [ebp - 0xb4]
call fcn.004031e3
add esp, 0x24
mov eax, edi
jmp 0x4018c3
push dword [ebp - 0x40]
mov edi, dword [ebp - 0xd4]
call fcn.004031e3
push dword [ebp - 0x28]
jmp 0x401826
cmp dword [ebp - 0x30], ebx
jne 0x401652
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.0040380e
mov ecx, dword [ebp - 0x34]
call fcn.004055cd
test al, al
jne 0x401652
cmp byte [ebp + 0xb], bl
jne 0x401781
mov edx, str.Cannot_find_setup.exe
xor ecx, ecx
call fcn.0040b6ce
jmp 0x401781
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.004037e0
lea ecx, [ebp - 0x28]
call fcn.00405b88
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00403750
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403c1e
push dword [ebp - 0x10]
call fcn.004031e3
push dword [ebp - 0x28]
call fcn.004031e3
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004037e0
push 0x41b55c
lea ecx, [ebp - 0x28]
call fcn.00403750
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403c1e
push dword [ebp - 0x28]
call fcn.004031e3
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x4016e0
lea ecx, [ebp - 0x34]
call fcn.004039e4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00403a44
lea eax, [ebp - 0x34]
lea edx, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x114], 0x44
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0xe8], ebx
mov word [ebp - 0xe2], bx
mov dword [ebp - 0xe0], ebx
call fcn.00403709
push eax
lea ecx, [ebp - 0xc0]
call fcn.004037e0
push dword [ebp - 0x4c]
call fcn.004031e3
pop ecx
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc0]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401806
cmp byte [ebp + 0xb], bl
jne 0x40176c
lea ecx, [ebp - 0x40]
call fcn.00401bec
push dword [ebp - 0xc0]
call fcn.004031e3
push dword [ebp - 0x40]
call fcn.004031e3
pop ecx
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.004018dd
push dword [ebp - 0x58]
call fcn.004031e3
cmp esi, ebx
pop ecx
je 0x40179f
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x74]
call fcn.00404e25
push dword [ebp - 0x70]
call fcn.004031e3
push dword [ebp - 0x34]
call fcn.004031e3
push dword [ebp - 0xa8]
call fcn.004031e3
push dword [ebp - 0x98]
call fcn.004031e3
push dword [ebp - 0x8c]
call fcn.004031e3
push dword [ebp - 0x64]
call fcn.004031e3
push dword [ebp - 0x80]
call fcn.004031e3
push dword [ebp - 0x1c]
call fcn.004031e3
push dword [ebp - 0xb4]
call fcn.004031e3
add esp, 0x24
push 1
pop eax
jmp 0x4018c3
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc0]
mov edi, dword [ebp - 0x124]
call fcn.004031e3
push dword [ebp - 0x40]
call fcn.004031e3
pop ecx
cmp edi, ebx
pop ecx
je 0x401841
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xd0]
call fcn.004018dd
push dword [ebp - 0x58]
call fcn.004031e3
cmp esi, ebx
pop ecx
je 0x40185f
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x74]
call fcn.00404e25
push dword [ebp - 0x70]
call fcn.004031e3
push dword [ebp - 0x34]
call fcn.004031e3
push dword [ebp - 0xa8]
call fcn.004031e3
add esp, 0xc
push dword [ebp - 0x98]
call fcn.004031e3
push dword [ebp - 0x8c]
call fcn.004031e3
push dword [ebp - 0x64]
call fcn.004031e3
push dword [ebp - 0x80]
call fcn.004031e3
push dword [ebp - 0x1c]
call fcn.004031e3
push dword [ebp - 0xb4]
call fcn.004031e3
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10