Function at 0x401517
Capabilities:
Accept command line arguments
Check os version
Create process on windows

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x41cd8e
call fcn.0041a068
sub esp, 0x230
mov eax, dword [ebp + 0x70]
mov dword [0x4231c4], eax
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x23c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401c73
cmp dword [ebp - 0x22c], 2
jne 0x401c73
push ebx
call fcn.00414900
lea ecx, [ebp - 0x7c]
call fcn.004032dd
lea ecx, [ebp + 0x40]
call fcn.004032dd
lea ecx, [ebp - 0x3c]
call fcn.004032dd
lea ecx, [ebp - 0x18]
call fcn.004032dd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004032a7
lea eax, [ebp + 0x40]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp + 0x4c]
call fcn.00403002
push dword [ebp + 0x4c]
call fcn.0041a062
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004032dd
lea ecx, [ebp - 0x30]
call fcn.004044a6
lea ecx, [ebp + 0x40]
call fcn.00403d25
lea ecx, [ebp + 0x40]
call fcn.00403cf4
push 0x41e668
lea ecx, [ebp + 0x40]
mov byte [ebp + 0x73], 0
call fcn.00403825
xor ebx, ebx
inc ebx
test al, al
je 0x401606
mov eax, dword [ebp + 0x40]
lea ecx, [ebp + 0x40]
add eax, 4
mov byte [ebp + 0x73], bl
push eax
call fcn.004033d0
lea ecx, [ebp + 0x40]
call fcn.00403d25
lea ecx, [ebp + 0x40]
call fcn.00403cf4
lea ecx, [ebp - 0x24]
call fcn.00403162
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push str.___InstallEnd__
mov edx, str.___Install__UTF_8_
call fcn.004012c3
test al, al
jne 0x401642
cmp byte [ebp + 0x73], al
jne 0x401c3b
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.0040b487
jmp 0x401c3b
push esi
push edi
push 0x41e69c
lea ecx, [ebp - 0x70]
call fcn.00403264
lea ecx, [ebp + 0x34]
call fcn.004032dd
cmp dword [ebp - 0x20], 0
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp + 0x24], bl
je 0x401815
xor eax, eax
lea edx, [ebp + 0x58]
lea ecx, [ebp - 0x24]
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
call fcn.00403ee2
test al, al
jne 0x4016a1
cmp byte [ebp + 0x73], al
jne 0x401697
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0040b487
mov dword [ebp + 0x70], ebx
mov esi, ebx
jmp 0x401741
push str.Title
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x4c]
call fcn.004040bd
push str.BeginPrompt
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x28]
call fcn.004040bd
push 0x41e6d0
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0xc]
call fcn.004040bd
mov ecx, dword [ebp + 0xc]
mov edx, 0x41e6dc
call fcn.00403c64
xor al, 1
lea ecx, [ebp + 0x58]
mov edx, str.Directory
mov byte [ebp + 0x67], al
call fcn.00403e22
mov ecx, eax
test ecx, ecx
js 0x401708
mov eax, dword [ebp + 0x58]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x70]
add eax, 0xc
push eax
call fcn.00403301
cmp dword [ebp + 0x2c], 0
je 0x40176a
cmp byte [ebp + 0x73], 0
jne 0x40176a
push 0x24
push dword [ebp + 0x4c]
xor esi, esi
push dword [ebp + 0x28]
push esi
call edi
cmp eax, 6
je 0x40176a
push dword [ebp + 0xc]
call fcn.0041a062
push dword [ebp + 0x28]
call fcn.0041a062
push dword [ebp + 0x4c]
call fcn.0041a062
add esp, 0xc
mov edi, dword [ebp + 0x5c]
jmp 0x401757
mov eax, dword [ebp + 0x58]
dec edi
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x401757
push ebx
call fcn.004011f9
test edi, edi
jne 0x401746
push dword [ebp + 0x58]
call fcn.0041a062
mov ebx, esi
jmp 0x401c26
push str.RunProgram
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x18]
call fcn.004040bd
push eax
lea ecx, [ebp + 0x34]
call fcn.00403301
push dword [ebp + 0x18]
call fcn.0041a062
lea edx, [ebp + 0x58]
mov dword [esp], str.ExecuteFile
lea ecx, [ebp + 0x18]
call fcn.004040bd
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403301
push dword [ebp + 0x18]
call fcn.0041a062
lea edx, [ebp + 0x58]
mov dword [esp], str.ExecuteParameters
lea ecx, [ebp + 0x18]
call fcn.004040bd
push eax
lea ecx, [ebp - 0x18]
call fcn.00403301
push dword [ebp + 0x18]
call fcn.0041a062
push dword [ebp + 0xc]
call fcn.0041a062
push dword [ebp + 0x28]
call fcn.0041a062
push dword [ebp + 0x4c]
call fcn.0041a062
mov esi, dword [ebp + 0x5c]
add esp, 0x10
jmp 0x401802
mov eax, dword [ebp + 0x58]
dec esi
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x401802
push ebx
call fcn.004011f9
test esi, esi
jne 0x4017f1
push dword [ebp + 0x58]
call fcn.0041a062
mov al, byte [ebp + 0x67]
pop ecx
mov byte [ebp + 0x24], al
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x4c], 0
call fcn.004032dd
push 0x41e614
lea ecx, [ebp - 0x4c]
call fcn.004045ef
test al, al
jne 0x40184c
cmp byte [ebp + 0x73], al
jne 0x401c0f
mov edx, str.Cannot_create_temp_folder_archive
xor ecx, ecx
call fcn.0040b487
jmp 0x401c0f
push 0x18
call fcn.0041a024
mov esi, eax
xor eax, eax
pop ecx
push esi
mov dword [esi + 4], eax
mov dword [esi], 0x41e61c
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov word [esi + 0x14], ax
call dword [0x41e620]
mov ecx, esi
call fcn.004094e8
test eax, eax
je 0x401891
mov edx, str.Cannot_load_codecs
xor ecx, ecx
call fcn.0040b487
jmp 0x401c02
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp]
call fcn.0040323c
lea ecx, [ebp + 0x58]
mov byte [ebp + 0x67], 0
call fcn.004032dd
lea eax, [ebp + 0x58]
mov ecx, esi
push eax
lea eax, [ebp + 0x67]
push eax
push dword [ebp + 0x24]
lea eax, [ebp]
push eax
lea edx, [ebp - 0x30]
call fcn.00402a3f
test eax, eax
je 0x401941
cmp byte [ebp + 0x73], 0
jne 0x401933
cmp eax, ebx
je 0x4018df
cmp byte [ebp + 0x67], 0
jne 0x4018df
cmp eax, 0x80004004
je 0x401933
jmp 0x4018ef
push 8
lea edx, [ebp + 0x58]
pop ecx
call fcn.004063f8
mov eax, 0x80004005
cmp dword [ebp + 0x5c], 0
jne 0x401914
mov edx, eax
lea ecx, [ebp + 0x4c]
call fcn.00404501
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x58]
call fcn.00403301
push dword [ebp + 0x4c]
call fcn.0041a062
pop ecx
push 7
pop edx
lea ecx, [ebp + 0x18]
call fcn.00406362
push 0x10
push dword [eax]
push dword [ebp + 0x58]
push 0
call edi
push dword [ebp + 0x18]
call fcn.0041a062
pop ecx
push dword [ebp + 0x58]
call fcn.0041a062
pop ecx
jmp 0x401bf9
push dword [ebp + 0x58]
call fcn.0041a062
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.004032dd
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x80], bl
call fcn.00404a11
mov ecx, dword [ebp]
call fcn.00404d98
test al, al
je 0x401bee
cmp dword [ebp - 0x38], 0
je 0x401a4d
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040323c
xor eax, eax
mov dword [ebp - 0xc8], 0x3c
cmp dword [ebp + 0x44], 0
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0xc4], 0x140
mov dword [ebp - 0xb8], eax
je 0x4019ce
lea ecx, [ebp - 0x18]
call fcn.00403609
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004034a9
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x28]
call fcn.0040323c
mov eax, dword [ebp + 0x28]
xor ecx, ecx
cmp dword [ebp + 0x2c], ecx
mov dword [ebp - 0xac], ebx
cmove eax, ecx
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0xa8], 0x20
ja 0x401a37
cmp byte [ebp + 0x73], 0
jne 0x401a27
mov edx, str.Cannot_open_file
xor ecx, ecx
call fcn.0040b487
push dword [ebp + 0x28]
call fcn.0041a062
push dword [ebp + 0x4c]
jmp 0x401bab
push dword [ebp + 0x28]
mov edi, dword [ebp - 0x90]
call fcn.0041a062
push dword [ebp + 0x4c]
jmp 0x401bd1
cmp dword [ebp + 0x38], 0
jne 0x401a86
push str.setup.exe
lea ecx, [ebp + 0x34]
call fcn.004033d0
mov ecx, dword [ebp + 0x34]
call fcn.00404ecc
test al, al
jne 0x401a86
cmp byte [ebp + 0x73], al
jne 0x401bee
mov edx, str.Cannot_find_setup.exe
xor ecx, ecx
call fcn.0040b487
jmp 0x401bee
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040323c
lea ecx, [ebp + 0x4c]
call fcn.00405fb4
push str.__T_
lea ecx, [ebp + 0xc]
call fcn.004032a7
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x34]
call fcn.004039a8
push dword [ebp + 0xc]
call fcn.0041a062
push dword [ebp + 0x4c]
call fcn.0041a062
pop ecx
pop ecx
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040323c
push 0x41e7f4
lea ecx, [ebp + 0x4c]
call fcn.004032a7
lea eax, [ebp]
push eax
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x34]
call fcn.004039a8
push dword [ebp + 0x4c]
call fcn.0041a062
cmp dword [ebp + 0x44], 0
pop ecx
je 0x401b15
lea ecx, [ebp + 0x34]
call fcn.004035e1
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x34]
call fcn.004034a9
xor eax, eax
mov dword [ebp - 0x128], 0x44
xor ecx, ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
lea edx, [ebp - 0x70]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf4], eax
lea eax, [ebp + 0x34]
mov word [ebp - 0xf6], cx
lea ecx, [ebp - 0xe4]
push eax
call fcn.0040344e
push eax
lea ecx, [ebp - 0x58]
call fcn.0040323c
push dword [ebp - 0xe4]
call fcn.0041a062
pop ecx
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x128]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401bb4
cmp byte [ebp + 0x73], al
jne 0x401ba0
lea ecx, [ebp - 0x64]
call fcn.004014a7
push dword [ebp - 0x58]
call fcn.0041a062
push dword [ebp - 0x64]
call fcn.0041a062
pop ecx
pop ecx
jmp 0x401bee
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x58]
mov edi, dword [ebp - 0xd8]
call fcn.0041a062
push dword [ebp - 0x64]
call fcn.0041a062
pop ecx
pop ecx
test edi, edi
je 0x401bec
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea ecx, [ebp - 0x8c]
call fcn.00401167
push dword [ebp]
call fcn.0041a062
pop ecx
mov eax, dword [esi]
push esi
mov dword [ebp - 4], 0xd
call dword [eax + 8]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xe
call fcn.00404ba5
push dword [ebp - 0x48]
call fcn.0041a062
pop ecx
push dword [ebp + 0x34]
call fcn.0041a062
push dword [ebp - 0x70]
call fcn.0041a062
pop ecx
pop ecx
pop edi
pop esi
push dword [ebp - 0x24]
call fcn.0041a062
push dword [ebp - 0x30]
call fcn.0041a062
push dword [ebp - 0x18]
call fcn.0041a062
push dword [ebp - 0x3c]
call fcn.0041a062
push dword [ebp + 0x40]
call fcn.0041a062
push dword [ebp - 0x7c]
call fcn.0041a062
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x401c82
mov edx, str.Unsupported_Windows_version
xor ecx, ecx
call fcn.0040b487
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
leave
ret 0x10