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 [0x4200b4], 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 [0x4200b8], 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.0040220b
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040220b
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.0040220b
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0040220b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401d24
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403761
push dword [ebp - 0x44]
call fcn.004038e4
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.0040220b
mov ecx, dword [0x4200b4]
lea edx, [ebp - 0x5c]
call fcn.004043d0
lea ecx, [ebp - 0x20]
call fcn.004023fe
lea ecx, [ebp - 0x20]
call fcn.004023c3
push 0x41d274
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], bl
call fcn.00401d24
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ede
mov edx, dword [esi]
mov ecx, dword [eax]
call fcn.00403997
push dword [ebp - 0x10]
mov esi, eax
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
pop ecx
cmp esi, ebx
pop ecx
jne 0x401184
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], 1
call fcn.00401ebd
push eax
lea ecx, [ebp - 0x20]
call fcn.00401e1e
push dword [ebp - 0x10]
call fcn.004038e4
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004023fe
lea ecx, [ebp - 0x20]
call fcn.004023c3
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.004024de
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x74]
push eax
push str.___InstallEnd__
mov edx, str.___Install__UTF_8_
call fcn.00401bb1
test al, al
jne 0x4011c9
cmp byte [ebp + 0xb], bl
jne 0x4011c1
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.0040f9fe
push 1
pop ebx
jmp 0x401ac4
push 0x41d23c
lea ecx, [ebp - 0xd8]
call fcn.00401d24
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040220b
cmp dword [ebp - 0x70], ebx
mov byte [ebp - 0xcc], 1
je 0x4014e2
lea ecx, [ebp - 0xb0]
call fcn.004021f0
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xb0], 0x419318
call fcn.00403bf8
test al, al
jne 0x40123b
cmp byte [ebp + 0xb], bl
jne 0x401233
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0040f9fe
push 1
pop ebx
jmp 0x40135c
push str.Title
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403f11
push dword [ebp - 0x10]
call fcn.004038e4
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.00401d24
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403f11
push dword [ebp - 0x10]
call fcn.004038e4
lea ecx, [ebp - 0x10]
mov dword [esp], str.Progress
call fcn.00401d24
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00403f11
push dword [ebp - 0x10]
call fcn.004038e4
pop ecx
mov edx, 0x41d1e0
mov ecx, dword [ebp - 0xe4]
call fcn.00403997
test eax, eax
jne 0x4012d2
mov byte [ebp - 0xcc], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0xb0]
call fcn.00403edf
push dword [ebp - 0x10]
mov esi, eax
call fcn.004038e4
cmp esi, ebx
pop ecx
jl 0x401314
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xd8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00401e1e
cmp dword [ebp - 0x28], ebx
je 0x4013ca
cmp byte [ebp + 0xb], bl
jne 0x4013ca
push 0x24
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4013ca
push dword [ebp - 0xe4]
call fcn.004038e4
push dword [ebp - 0x2c]
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x419318
call fcn.004040cb
lea ecx, [ebp - 0xb0]
call fcn.0040408b
push dword [ebp - 0x38]
call fcn.004038e4
push dword [ebp - 0xd8]
call fcn.004038e4
push dword [ebp - 0x74]
call fcn.004038e4
push dword [ebp - 0x5c]
call fcn.004038e4
push dword [ebp - 0x50]
call fcn.004038e4
push dword [ebp - 0x68]
call fcn.004038e4
push dword [ebp - 0x20]
call fcn.004038e4
push dword [ebp - 0x9c]
call fcn.004038e4
add esp, 0x20
jmp 0x401afa
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00403f11
push eax
lea ecx, [ebp - 0x38]
call fcn.00401e1e
push dword [ebp - 0xf0]
call fcn.004038e4
push dword [ebp - 0x10]
call fcn.004038e4
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00403f11
push eax
lea ecx, [ebp - 0x68]
call fcn.00401e1e
push dword [ebp - 0xf0]
call fcn.004038e4
push dword [ebp - 0x10]
call fcn.004038e4
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0x20]
lea edx, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00403f11
mov edx, eax
lea ecx, [ebp - 0xf0]
call fcn.004026f5
push eax
lea ecx, [ebp - 0x50]
call fcn.00401e1e
push dword [ebp - 0xf0]
call fcn.004038e4
push dword [ebp - 0xc8]
call fcn.004038e4
push dword [ebp - 0x10]
call fcn.004038e4
push dword [ebp - 0xe4]
call fcn.004038e4
push dword [ebp - 0x2c]
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
add esp, 0x18
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x419318
call fcn.004040cb
lea ecx, [ebp - 0xb0]
call fcn.0040408b
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x90], bl
call fcn.00401f71
push dword [0x41d060]
lea ecx, [ebp - 0x90]
call fcn.0040504a
test al, al
jne 0x401521
cmp byte [ebp + 0xb], bl
jne 0x401519
mov edx, str.Can_not_create_temp_folder_archive
xor ecx, ecx
call fcn.0040f9fe
push 1
pop ebx
jmp 0x401a98
push 0x1c
call fcn.004038be
mov esi, eax
pop ecx
cmp esi, ebx
je 0x401545
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00401fb1
mov dword [esi], 0x41930c
mov dword [ebp - 0x14], esi
jmp 0x40154a
mov dword [ebp - 0x14], ebx
mov esi, ebx
cmp esi, ebx
je 0x401554
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.00407cb2
test eax, eax
je 0x401577
mov edx, str.Can_not_load_codecs
xor ecx, ecx
call fcn.0040f9fe
cmp esi, ebx
je 0x401519
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x401519
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], 0x419300
call fcn.00401b03
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.0040220b
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x5c]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xfc]
push dword [ebp - 0xcc]
mov ecx, esi
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00402fd5
cmp eax, ebx
je 0x40166f
cmp byte [ebp + 0xb], bl
jne 0x401647
cmp eax, 1
je 0x4015ea
cmp byte [ebp - 1], bl
je 0x401612
push 8
lea ecx, [ebp - 0xc8]
pop edx
call fcn.00405d5f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401e1e
push dword [ebp - 0xc8]
call fcn.004038e4
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x401647
cmp dword [ebp - 0x28], ebx
je 0x401647
push 7
lea ecx, [ebp - 0xc8]
pop edx
call fcn.00405d5f
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.004038e4
pop ecx
push dword [ebp - 0x2c]
call fcn.004038e4
push dword [ebp - 0xbc]
call fcn.004038e4
pop ecx
cmp esi, ebx
pop ecx
je 0x4019d8
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4019d8
push dword [ebp - 0x2c]
call fcn.004038e4
pop ecx
lea ecx, [ebp - 0x80]
call fcn.00401f71
lea ecx, [ebp - 0x80]
call fcn.00404dc4
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4016ca
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.004038e4
push dword [ebp - 0xbc]
call fcn.004038e4
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x401519
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x401519
cmp dword [ebp - 0x64], ebx
je 0x40182e
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x44]
call fcn.00401b18
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 0x401718
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x50]
push eax
call fcn.00401e87
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00401b18
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 0x401812
cmp byte [ebp + 0xb], bl
jne 0x401773
mov edx, str.Can_not_open_file
xor ecx, ecx
call fcn.0040f9fe
push dword [ebp - 0x2c]
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
pop ecx
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.004038e4
push dword [ebp - 0xbc]
call fcn.004038e4
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x4017ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b2d
push dword [ebp - 0x8c]
call fcn.004038e4
push dword [ebp - 0x38]
call fcn.004038e4
push dword [ebp - 0xd8]
call fcn.004038e4
push dword [ebp - 0x74]
call fcn.004038e4
push dword [ebp - 0x5c]
call fcn.004038e4
push dword [ebp - 0x50]
call fcn.004038e4
push dword [ebp - 0x68]
call fcn.004038e4
push dword [ebp - 0x20]
call fcn.004038e4
push dword [ebp - 0x9c]
call fcn.004038e4
add esp, 0x24
mov eax, edi
jmp 0x401afc
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x100]
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
pop ecx
jmp 0x401a5c
cmp dword [ebp - 0x34], ebx
jne 0x401889
push str.setup.exe
lea ecx, [ebp - 0x38]
call fcn.00401dbf
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xc8]
call fcn.00401b18
mov ecx, dword [eax]
call fcn.004055fe
push dword [ebp - 0xc8]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.004038e4
cmp byte [ebp - 1], bl
pop ecx
je 0x401889
cmp byte [ebp + 0xb], bl
jne 0x4019b1
mov edx, str.Can_not_find_setup.exe
xor ecx, ecx
call fcn.0040f9fe
jmp 0x4019b1
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x44]
push eax
call fcn.00401d85
lea ecx, [ebp - 0x44]
call fcn.00405a45
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401efa
push dword [ebp - 0x10]
call fcn.004038e4
push dword [ebp - 0x44]
call fcn.004038e4
pop ecx
pop ecx
push 0x41d08c
lea ecx, [ebp - 0x10]
call fcn.00401d24
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401efa
push dword [ebp - 0x10]
call fcn.004038e4
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x401913
push 0x20
lea ecx, [ebp - 0x38]
call fcn.00401e5c
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00401e87
lea eax, [ebp - 0x38]
lea edx, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x140], 0x44
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.004026f5
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.00401b18
push dword [ebp - 0xc8]
call fcn.004038e4
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 0x401a3f
cmp byte [ebp + 0xb], bl
jne 0x4019a5
xor ecx, ecx
call fcn.0040fa92
push dword [ebp - 0xe4]
call fcn.004038e4
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.004038e4
push dword [ebp - 0xbc]
call fcn.004038e4
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x4019d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b2d
push dword [ebp - 0x8c]
call fcn.004038e4
push dword [ebp - 0x38]
call fcn.004038e4
push dword [ebp - 0xd8]
call fcn.004038e4
push dword [ebp - 0x74]
call fcn.004038e4
push dword [ebp - 0x5c]
call fcn.004038e4
push dword [ebp - 0x50]
call fcn.004038e4
push dword [ebp - 0x68]
call fcn.004038e4
push dword [ebp - 0x20]
call fcn.004038e4
push dword [ebp - 0x9c]
call fcn.004038e4
add esp, 0x24
push 1
pop eax
jmp 0x401afc
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe4]
mov edi, dword [ebp - 0xf4]
call fcn.004038e4
cmp edi, ebx
pop ecx
je 0x401a71
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.004038e4
push dword [ebp - 0xbc]
call fcn.004038e4
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x401a98
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.00401b2d
push dword [ebp - 0x8c]
call fcn.004038e4
push dword [ebp - 0x38]
call fcn.004038e4
push dword [ebp - 0xd8]
call fcn.004038e4
add esp, 0xc
push dword [ebp - 0x74]
call fcn.004038e4
push dword [ebp - 0x5c]
call fcn.004038e4
push dword [ebp - 0x50]
call fcn.004038e4
push dword [ebp - 0x68]
call fcn.004038e4
push dword [ebp - 0x20]
call fcn.004038e4
push dword [ebp - 0x9c]
call fcn.004038e4
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10