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, 0x1d4
mov eax, dword [ebp + 8]
push ebx
mov dword [0x41765c], eax
push esi
lea eax, [ebp - 0x1d4]
push edi
push eax
mov dword [ebp - 0x1d4], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
xor ebx, ebx
test eax, eax
jne 0x401049
xor al, al
jmp 0x401053
cmp dword [ebp - 0x1c4], 2
sete al
mov byte [0x417660], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
lea ecx, [ebp - 0x9c]
pop edi
mov dword [ebp - 0x9c], ebx
push edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
call fcn.0040223c
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040223c
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.0040223c
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0040223c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401d4c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040377b
push dword [ebp - 0x44]
call fcn.0040391b
pop ecx
mov dword [ebp - 0x5c], ebx
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.0040223c
lea eax, [ebp - 0x5c]
push eax
push dword [0x41765c]
call fcn.00404429
lea ecx, [ebp - 0x20]
call fcn.0040242f
lea ecx, [ebp - 0x20]
call fcn.004023f4
push 0x417254
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], bl
call fcn.00401d4c
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f06
push dword [esi]
push dword [eax]
call fcn.004039de
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
pop ecx
cmp esi, ebx
pop ecx
jne 0x401187
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], 1
call fcn.00401ee5
push eax
lea ecx, [ebp - 0x20]
call fcn.00401e46
push dword [ebp - 0x10]
call fcn.0040391b
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0040242f
lea ecx, [ebp - 0x20]
call fcn.004023f4
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00402510
lea eax, [ebp - 0x74]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x5c]
call fcn.00401bd9
test al, al
jne 0x4011cb
cmp byte [ebp + 0xb], bl
jne 0x4011c3
push str.Cant_load_config_info
push ebx
call fcn.004108bc
push 1
pop ebx
jmp 0x401add
push 0x41721c
lea ecx, [ebp - 0xd8]
call fcn.00401d4c
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040223c
cmp dword [ebp - 0x70], ebx
mov byte [ebp - 0xcc], 1
je 0x4014f4
lea ecx, [ebp - 0xb0]
call fcn.00402221
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x4132d0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00403c04
test al, al
jne 0x40123e
cmp byte [ebp + 0xb], bl
jne 0x401236
push str.Config_failed
push ebx
call fcn.004108bc
push 1
pop ebx
jmp 0x401368
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403f41
push dword [ebp - 0x10]
call fcn.0040391b
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403f41
push dword [ebp - 0x10]
call fcn.0040391b
lea ecx, [ebp - 0x10]
mov dword [esp], 0x4171c8
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00403f41
push dword [ebp - 0x10]
call fcn.0040391b
mov dword [esp], 0x4171c0
push dword [ebp - 0xe4]
call fcn.004039de
test eax, eax
jne 0x4012dc
mov byte [ebp - 0xcc], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403f0b
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040391b
cmp esi, ebx
pop ecx
jl 0x401320
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xd8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00401e46
cmp dword [ebp - 0x28], ebx
je 0x4013d6
cmp byte [ebp + 0xb], bl
jne 0x4013d6
push 0x24
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4013d6
push dword [ebp - 0xe4]
call fcn.0040391b
push dword [ebp - 0x2c]
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x4132d0
call fcn.0040410f
lea ecx, [ebp - 0xb0]
call fcn.004040cf
push dword [ebp - 0x38]
call fcn.0040391b
push dword [ebp - 0xd8]
call fcn.0040391b
push dword [ebp - 0x74]
call fcn.0040391b
push dword [ebp - 0x5c]
call fcn.0040391b
push dword [ebp - 0x50]
call fcn.0040391b
push dword [ebp - 0x68]
call fcn.0040391b
push dword [ebp - 0x20]
call fcn.0040391b
push dword [ebp - 0x9c]
call fcn.0040391b
add esp, 0x20
jmp 0x401b13
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00403f41
push eax
lea ecx, [ebp - 0x38]
call fcn.00401e46
push dword [ebp - 0xf0]
call fcn.0040391b
push dword [ebp - 0x10]
call fcn.0040391b
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00403f41
push eax
lea ecx, [ebp - 0x68]
call fcn.00401e46
push dword [ebp - 0xf0]
call fcn.0040391b
push dword [ebp - 0x10]
call fcn.0040391b
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00403f41
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040270c
push eax
lea ecx, [ebp - 0x50]
call fcn.00401e46
push dword [ebp - 0xf0]
call fcn.0040391b
push dword [ebp - 0xc8]
call fcn.0040391b
push dword [ebp - 0x10]
call fcn.0040391b
push dword [ebp - 0xe4]
call fcn.0040391b
push dword [ebp - 0x2c]
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
add esp, 0x18
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x4132d0
call fcn.0040410f
lea ecx, [ebp - 0xb0]
call fcn.004040cf
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x90], bl
call fcn.00401f99
push dword [0x417040]
lea ecx, [ebp - 0x90]
call fcn.004050fa
test al, al
jne 0x401532
cmp byte [ebp + 0xb], bl
jne 0x40152a
push str.Can_not_create_temp_folder_archive
push ebx
call fcn.004108bc
push 1
pop ebx
jmp 0x401ab1
push 0x1c
call fcn.004038f4
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401556
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401fd9
mov dword [esi], 0x4132c4
mov dword [ebp - 0x14], esi
jmp 0x40155b
mov dword [ebp - 0x14], ebx
mov esi, ebx
cmp esi, ebx
je 0x401565
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.00407ddc
test eax, eax
je 0x401587
push str.Can_not_load_codecs
push ebx
call fcn.004108bc
cmp esi, ebx
je 0x40152a
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40152a
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xf8], ebx
push eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xfc], 0x4132b8
call fcn.00401b1c
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 1], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0040223c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xfc]
push dword [ebp - 0xcc]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00402ff0
cmp eax, ebx
je 0x401681
cmp byte [ebp + 0xb], bl
jne 0x401659
cmp eax, 1
je 0x4015fc
cmp byte [ebp - 1], bl
je 0x401624
lea eax, [ebp - 0xc8]
push 8
push eax
call fcn.00405e3f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401e46
push dword [ebp - 0xc8]
call fcn.0040391b
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x401659
cmp dword [ebp - 0x28], ebx
je 0x401659
lea eax, [ebp - 0xc8]
push 7
push eax
call fcn.00405e3f
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xc8]
call fcn.0040391b
pop ecx
push dword [ebp - 0x2c]
call fcn.0040391b
push dword [ebp - 0xbc]
call fcn.0040391b
pop ecx
cmp esi, ebx
pop ecx
je 0x4019f1
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4019f1
push dword [ebp - 0x2c]
call fcn.0040391b
pop ecx
lea ecx, [ebp - 0x80]
call fcn.00401f99
lea eax, [ebp - 0x80]
push eax
call fcn.00404e62
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4016dd
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.0040391b
push dword [ebp - 0xbc]
call fcn.0040391b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x40152a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40152a
cmp dword [ebp - 0x64], ebx
je 0x401844
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401b38
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x138], 0x3c
mov dword [ebp - 0x134], 0x140
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], eax
je 0x40172d
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x50]
push eax
call fcn.00401eaf
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401b38
mov eax, dword [ebp - 0x28]
push 1
neg eax
sbb eax, eax
pop edi
and eax, dword [ebp - 0x2c]
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x118], 0x20
ja 0x401828
cmp byte [ebp + 0xb], bl
jne 0x401789
push str.Can_not_open_file
push ebx
call fcn.004108bc
push dword [ebp - 0x2c]
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
pop ecx
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.0040391b
push dword [ebp - 0xbc]
call fcn.0040391b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x4017c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b54
push dword [ebp - 0x8c]
call fcn.0040391b
push dword [ebp - 0x38]
call fcn.0040391b
push dword [ebp - 0xd8]
call fcn.0040391b
push dword [ebp - 0x74]
call fcn.0040391b
push dword [ebp - 0x5c]
call fcn.0040391b
push dword [ebp - 0x50]
call fcn.0040391b
push dword [ebp - 0x68]
call fcn.0040391b
push dword [ebp - 0x20]
call fcn.0040391b
push dword [ebp - 0x9c]
call fcn.0040391b
add esp, 0x24
mov eax, edi
jmp 0x401b15
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x100]
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
pop ecx
jmp 0x401a75
cmp dword [ebp - 0x34], ebx
jne 0x4018a0
push str.setup.exe
lea ecx, [ebp - 0x38]
call fcn.00401de7
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00401b38
push dword [eax]
call fcn.004056d6
push dword [ebp - 0xc8]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.0040391b
cmp byte [ebp - 1], bl
pop ecx
je 0x4018a0
cmp byte [ebp + 0xb], bl
jne 0x4019ca
push str.Can_not_find_setup.exe
push ebx
call fcn.004108bc
jmp 0x4019ca
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x44]
push eax
call fcn.00401dad
lea eax, [ebp - 0x44]
push eax
call fcn.00405b1f
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401f22
push dword [ebp - 0x10]
call fcn.0040391b
push dword [ebp - 0x44]
call fcn.0040391b
pop ecx
pop ecx
push 0x41706c
lea ecx, [ebp - 0x10]
call fcn.00401d4c
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401f22
push dword [ebp - 0x10]
call fcn.0040391b
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x40192b
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401e84
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401eaf
lea eax, [ebp - 0x38]
mov dword [ebp - 0x140], 0x44
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x114], ebx
mov word [ebp - 0x10e], bx
mov dword [ebp - 0x10c], ebx
call fcn.0040270c
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401b38
push dword [ebp - 0xc8]
call fcn.0040391b
pop ecx
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x140]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xe4]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x401a58
cmp byte [ebp + 0xb], bl
jne 0x4019be
push ebx
call fcn.00410959
push dword [ebp - 0xe4]
call fcn.0040391b
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.0040391b
push dword [ebp - 0xbc]
call fcn.0040391b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x4019f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b54
push dword [ebp - 0x8c]
call fcn.0040391b
push dword [ebp - 0x38]
call fcn.0040391b
push dword [ebp - 0xd8]
call fcn.0040391b
push dword [ebp - 0x74]
call fcn.0040391b
push dword [ebp - 0x5c]
call fcn.0040391b
push dword [ebp - 0x50]
call fcn.0040391b
push dword [ebp - 0x68]
call fcn.0040391b
push dword [ebp - 0x20]
call fcn.0040391b
push dword [ebp - 0x9c]
call fcn.0040391b
add esp, 0x24
push 1
pop eax
jmp 0x401b15
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xe4]
mov edi, dword [ebp - 0xf4]
call fcn.0040391b
cmp edi, ebx
pop ecx
je 0x401a8a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.0040391b
push dword [ebp - 0xbc]
call fcn.0040391b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x401ab1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b54
push dword [ebp - 0x8c]
call fcn.0040391b
push dword [ebp - 0x38]
call fcn.0040391b
push dword [ebp - 0xd8]
call fcn.0040391b
add esp, 0xc
push dword [ebp - 0x74]
call fcn.0040391b
push dword [ebp - 0x5c]
call fcn.0040391b
push dword [ebp - 0x50]
call fcn.0040391b
push dword [ebp - 0x68]
call fcn.0040391b
push dword [ebp - 0x20]
call fcn.0040391b
push dword [ebp - 0x9c]
call fcn.0040391b
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10