Function at 0x401014
Capabilities:
Accept command line arguments
Check os version
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e0
mov eax, dword [ebp + 8]
push ebx
mov dword [0x41863c], eax
push esi
lea eax, [ebp - 0x1e0]
push edi
push eax
mov dword [ebp - 0x1e0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
jne 0x401049
xor al, al
jmp 0x401053
cmp dword [ebp - 0x1d0], 2
sete al
mov byte [0x418640], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
lea ecx, [ebp - 0x94]
pop esi
mov dword [ebp - 0x94], ebx
push esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call fcn.00401fa9
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00401fa9
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00401fa9
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.00401fa9
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401cad
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004036ed
push dword [ebp - 0x38]
call fcn.00403935
pop ecx
mov dword [ebp - 0x68], ebx
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.00401fa9
lea eax, [ebp - 0x68]
push eax
push dword [0x41863c]
call fcn.004043f6
lea ecx, [ebp - 0x20]
call fcn.004021a5
lea ecx, [ebp - 0x20]
call fcn.0040216a
push 0x418224
lea ecx, [ebp - 0x38]
mov byte [ebp + 0xb], bl
call fcn.00401cad
mov edi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00401e67
push dword [edi]
push dword [eax]
call fcn.004039f3
push dword [ebp - 0x10]
mov edi, eax
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
pop ecx
cmp edi, ebx
pop ecx
jne 0x401187
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], 1
call fcn.00401e46
push eax
lea ecx, [ebp - 0x20]
call fcn.00401da7
push dword [ebp - 0x10]
call fcn.00403935
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004021a5
lea ecx, [ebp - 0x20]
call fcn.0040216a
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.00402286
lea eax, [ebp - 0x44]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x68]
call fcn.00401b13
test al, al
jne 0x4011cb
cmp byte [ebp + 0xb], bl
jne 0x4011c3
push str.Cant_load_config_info
push ebx
call fcn.0041183b
push 1
pop ebx
jmp 0x401a77
push 0x4181ec
lea ecx, [ebp - 0xd8]
call fcn.00401cad
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00401fa9
cmp dword [ebp - 0x40], ebx
mov byte [ebp - 0xcc], 1
je 0x401516
lea ecx, [ebp - 0x88]
call fcn.00401f8e
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x4142a4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403c12
test al, al
jne 0x40123e
cmp byte [ebp + 0xb], bl
jne 0x401236
push str.Config_failed
push ebx
call fcn.0041183b
push 1
pop ebx
jmp 0x401387
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00403f49
push dword [ebp - 0x10]
call fcn.00403935
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00403f49
push dword [ebp - 0x10]
call fcn.00403935
lea ecx, [ebp - 0x10]
mov dword [esp], str.Progress
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00403f49
push dword [ebp - 0x10]
call fcn.00403935
lea ecx, [ebp - 0x10]
mov dword [esp], 0x418190
call fcn.00401cad
push dword [ebp - 0x10]
push dword [ebp - 0xf0]
call fcn.004039f3
push dword [ebp - 0x10]
mov edi, eax
call fcn.00403935
cmp edi, ebx
pop ecx
jne 0x4012f5
mov byte [ebp - 0xcc], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00403f13
push dword [ebp - 0x10]
mov edi, eax
call fcn.00403935
cmp edi, ebx
pop ecx
jl 0x401336
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0xd8]
mov eax, dword [eax + edi*4]
add eax, 0xc
push eax
call fcn.00401da7
cmp dword [ebp - 0xa8], ebx
je 0x4013f5
cmp byte [ebp + 0xb], bl
jne 0x4013f5
push 0x24
push dword [ebp - 0x38]
push dword [ebp - 0xac]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4013f5
push dword [ebp - 0xf0]
call fcn.00403935
push dword [ebp - 0xac]
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
add esp, 0xc
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x4142a4
call fcn.00404103
lea ecx, [ebp - 0x88]
call fcn.004040d7
push dword [ebp - 0x2c]
call fcn.00403935
push dword [ebp - 0xd8]
call fcn.00403935
push dword [ebp - 0x44]
call fcn.00403935
push dword [ebp - 0x68]
call fcn.00403935
push dword [ebp - 0x5c]
call fcn.00403935
push dword [ebp - 0x74]
call fcn.00403935
push dword [ebp - 0x20]
call fcn.00403935
push dword [ebp - 0x94]
call fcn.00403935
add esp, 0x20
jmp 0x401aad
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00403f49
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401da7
push dword [ebp - 0xfc]
call fcn.00403935
push dword [ebp - 0x10]
call fcn.00403935
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00403f49
push eax
lea ecx, [ebp - 0x74]
call fcn.00401da7
push dword [ebp - 0xfc]
call fcn.00403935
push dword [ebp - 0x10]
call fcn.00403935
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00403f49
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.0040247d
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401da7
push dword [ebp - 0xfc]
call fcn.00403935
push dword [ebp - 0xb8]
call fcn.00403935
push dword [ebp - 0x10]
call fcn.00403935
push dword [ebp - 0xf0]
call fcn.00403935
push dword [ebp - 0xac]
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
add esp, 0x18
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x4142a4
call fcn.00404103
lea ecx, [ebp - 0x88]
call fcn.004040d7
lea ecx, [ebp - 0xc4]
mov byte [ebp - 0xc8], bl
call fcn.00401efa
push dword [0x418034]
lea ecx, [ebp - 0xc8]
call fcn.00405088
test al, al
jne 0x401554
cmp byte [ebp + 0xb], bl
jne 0x40154c
push str.Can_not_create_temp_folder_archive
push ebx
call fcn.0041183b
push 1
pop ebx
jmp 0x401a4b
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x104], ebx
push eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0x108], 0x414298
call fcn.00401ab6
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 1], bl
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.00401fa9
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0x108]
push dword [ebp - 0xcc]
push eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00402d4a
cmp eax, ebx
je 0x401629
cmp byte [ebp + 0xb], bl
jne 0x401621
cmp eax, 1
je 0x4015c4
cmp byte [ebp - 1], bl
je 0x4015ec
lea eax, [ebp - 0xb8]
push 8
push eax
call fcn.00405d25
push eax
lea ecx, [ebp - 0x50]
call fcn.00401da7
push dword [ebp - 0xb8]
call fcn.00403935
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x401621
cmp dword [ebp - 0x4c], ebx
je 0x401621
lea eax, [ebp - 0xb8]
push 7
push eax
call fcn.00405d25
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xb8]
call fcn.00403935
pop ecx
push 1
pop ebx
jmp 0x401a36
lea ecx, [ebp - 0xa0]
call fcn.00401efa
lea eax, [ebp - 0xa0]
push eax
call fcn.00404df9
push dword [ebp - 0xc4]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x40165a
push 1
pop ebx
jmp 0x401a22
cmp dword [ebp - 0x70], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4017dc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00401ad2
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0x140
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], eax
je 0x4016b0
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00401e10
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00401ad2
mov eax, dword [ebp - 0xa8]
push 1
neg eax
sbb eax, eax
pop esi
and eax, dword [ebp - 0xac]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x124], 0x20
jg 0x4017bd
cmp byte [ebp + 0xb], bl
jne 0x401715
push str.Can_not_open_file
push ebx
call fcn.0041183b
push dword [ebp - 0xac]
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
pop ecx
pop ecx
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xa0]
call fcn.00403935
push dword [ebp - 0x50]
call fcn.00403935
push dword [ebp - 0xe4]
call fcn.00403935
add esp, 0xc
lea ecx, [ebp - 0xc8]
call fcn.00401aee
push dword [ebp - 0xc4]
call fcn.00403935
push dword [ebp - 0x2c]
call fcn.00403935
push dword [ebp - 0xd8]
call fcn.00403935
push dword [ebp - 0x44]
call fcn.00403935
push dword [ebp - 0x68]
call fcn.00403935
push dword [ebp - 0x5c]
call fcn.00403935
push dword [ebp - 0x74]
call fcn.00403935
push dword [ebp - 0x20]
call fcn.00403935
push dword [ebp - 0x94]
call fcn.00403935
add esp, 0x24
mov eax, esi
jmp 0x401aaf
push dword [ebp - 0xac]
mov esi, dword [ebp - 0x10c]
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
pop ecx
jmp 0x401a0b
cmp dword [ebp - 0x28], ebx
jne 0x401838
push str.setup.exe
lea ecx, [ebp - 0x2c]
call fcn.00401d48
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00401ad2
push dword [eax]
call fcn.0040566e
push dword [ebp - 0xb8]
neg al
sbb al, al
inc al
mov byte [ebp - 0x11], al
call fcn.00403935
cmp byte [ebp - 0x11], bl
pop ecx
je 0x401838
cmp byte [ebp + 0xb], bl
jne 0x401962
push str.Can_not_find_setup.exe
push ebx
call fcn.0041183b
jmp 0x401962
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401d0e
lea eax, [ebp - 0x38]
push eax
call fcn.00405adb
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e83
push dword [ebp - 0x10]
call fcn.00403935
push dword [ebp - 0x38]
call fcn.00403935
pop ecx
pop ecx
push 0x418064
lea ecx, [ebp - 0x10]
call fcn.00401cad
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401e83
push dword [ebp - 0x10]
call fcn.00403935
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x4018c3
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.00401de5
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401e10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14c], 0x44
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x120], ebx
mov word [ebp - 0x11a], bx
mov dword [ebp - 0x118], ebx
call fcn.0040247d
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00401ad2
push dword [ebp - 0xb8]
call fcn.00403935
pop ecx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x14c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xf0]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4019f2
cmp byte [ebp + 0xb], bl
jne 0x401956
push ebx
call fcn.004118d8
push dword [ebp - 0xf0]
call fcn.00403935
pop ecx
push dword [ebp - 0xa0]
call esi
push dword [ebp - 0xa0]
call fcn.00403935
push dword [ebp - 0x50]
call fcn.00403935
push dword [ebp - 0xe4]
call fcn.00403935
add esp, 0xc
lea ecx, [ebp - 0xc8]
call fcn.00401aee
push dword [ebp - 0xc4]
call fcn.00403935
push dword [ebp - 0x2c]
call fcn.00403935
push dword [ebp - 0xd8]
call fcn.00403935
push dword [ebp - 0x44]
call fcn.00403935
push dword [ebp - 0x68]
call fcn.00403935
push dword [ebp - 0x5c]
call fcn.00403935
push dword [ebp - 0x74]
call fcn.00403935
push dword [ebp - 0x20]
call fcn.00403935
push dword [ebp - 0x94]
call fcn.00403935
add esp, 0x24
push 1
pop eax
jmp 0x401aaf
push dword [ebp - 0xfc]
call edi
push dword [ebp - 0xf0]
mov esi, dword [ebp - 0x100]
call fcn.00403935
cmp esi, ebx
pop ecx
je 0x401a1c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xa0]
call esi
push dword [ebp - 0xa0]
call fcn.00403935
pop ecx
push dword [ebp - 0x50]
call fcn.00403935
push dword [ebp - 0xe4]
call fcn.00403935
pop ecx
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.00401aee
push dword [ebp - 0xc4]
call fcn.00403935
push dword [ebp - 0x2c]
call fcn.00403935
push dword [ebp - 0xd8]
call fcn.00403935
add esp, 0xc
push dword [ebp - 0x44]
call fcn.00403935
push dword [ebp - 0x68]
call fcn.00403935
push dword [ebp - 0x5c]
call fcn.00403935
push dword [ebp - 0x74]
call fcn.00403935
push dword [ebp - 0x20]
call fcn.00403935
push dword [ebp - 0x94]
call fcn.00403935
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10