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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x41ca4e
call fcn.00419e78
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.00414950
lea ecx, [ebp - 0x7c]
call fcn.004032e0
lea ecx, [ebp + 0x40]
call fcn.004032e0
lea ecx, [ebp - 0x3c]
call fcn.004032e0
lea ecx, [ebp - 0x18]
call fcn.004032e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0x4c]
call fcn.004032aa
lea eax, [ebp + 0x40]
push eax
lea edx, [ebp - 0x7c]
lea ecx, [ebp + 0x4c]
call fcn.00403005
push dword [ebp + 0x4c]
call fcn.00419e72
pop ecx
lea ecx, [ebp - 0x30]
call fcn.004032e0
lea ecx, [ebp - 0x30]
call fcn.004044c2
lea ecx, [ebp + 0x40]
call fcn.00403d3e
lea ecx, [ebp + 0x40]
call fcn.00403d0d
push 0x41e668
lea ecx, [ebp + 0x40]
mov byte [ebp + 0x73], 0
call fcn.00403831
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.004033d9
lea ecx, [ebp + 0x40]
call fcn.00403d3e
lea ecx, [ebp + 0x40]
call fcn.00403d0d
lea ecx, [ebp - 0x24]
call fcn.00403165
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.0040b498
jmp 0x401c3b
push esi
push edi
push 0x41e69c
lea ecx, [ebp - 0x70]
call fcn.00403267
lea ecx, [ebp + 0x34]
call fcn.004032e0
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.00403efb
test al, al
jne 0x4016a1
cmp byte [ebp + 0x73], al
jne 0x401697
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0040b498
mov dword [ebp + 0x70], ebx
mov esi, ebx
jmp 0x401741
push str.Title
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x4c]
call fcn.004040d6
push str.BeginPrompt
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x28]
call fcn.004040d6
push 0x41e6d0
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0xc]
call fcn.004040d6
mov ecx, dword [ebp + 0xc]
mov edx, 0x41e6dc
call fcn.00403c7d
xor al, 1
lea ecx, [ebp + 0x58]
mov edx, str.Directory
mov byte [ebp + 0x67], al
call fcn.00403e3b
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.00403304
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.00419e72
push dword [ebp + 0x28]
call fcn.00419e72
push dword [ebp + 0x4c]
call fcn.00419e72
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.00419e72
mov ebx, esi
jmp 0x401c26
push str.RunProgram
lea edx, [ebp + 0x58]
lea ecx, [ebp + 0x18]
call fcn.004040d6
push eax
lea ecx, [ebp + 0x34]
call fcn.00403304
push dword [ebp + 0x18]
call fcn.00419e72
lea edx, [ebp + 0x58]
mov dword [esp], str.ExecuteFile
lea ecx, [ebp + 0x18]
call fcn.004040d6
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403304
push dword [ebp + 0x18]
call fcn.00419e72
lea edx, [ebp + 0x58]
mov dword [esp], str.ExecuteParameters
lea ecx, [ebp + 0x18]
call fcn.004040d6
push eax
lea ecx, [ebp - 0x18]
call fcn.00403304
push dword [ebp + 0x18]
call fcn.00419e72
push dword [ebp + 0xc]
call fcn.00419e72
push dword [ebp + 0x28]
call fcn.00419e72
push dword [ebp + 0x4c]
call fcn.00419e72
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.00419e72
mov al, byte [ebp + 0x67]
pop ecx
mov byte [ebp + 0x24], al
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x4c], 0
call fcn.004032e0
push 0x41e614
lea ecx, [ebp - 0x4c]
call fcn.0040460b
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.0040b498
jmp 0x401c0f
push 0x18
call fcn.00419e34
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.004094fb
test eax, eax
je 0x401891
mov edx, str.Cannot_load_codecs
xor ecx, ecx
call fcn.0040b498
jmp 0x401c02
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp]
call fcn.0040323f
lea ecx, [ebp + 0x58]
mov byte [ebp + 0x67], 0
call fcn.004032e0
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.0040640c
mov eax, 0x80004005
cmp dword [ebp + 0x5c], 0
jne 0x401914
mov edx, eax
lea ecx, [ebp + 0x4c]
call fcn.0040451d
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x58]
call fcn.00403304
push dword [ebp + 0x4c]
call fcn.00419e72
pop ecx
push 7
pop edx
lea ecx, [ebp + 0x18]
call fcn.00406376
push 0x10
push dword [eax]
push dword [ebp + 0x58]
push 0
call edi
push dword [ebp + 0x18]
call fcn.00419e72
pop ecx
push dword [ebp + 0x58]
call fcn.00419e72
pop ecx
jmp 0x401bf9
push dword [ebp + 0x58]
call fcn.00419e72
pop ecx
lea ecx, [ebp - 0x8c]
call fcn.004032e0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x80], bl
call fcn.00404a2d
mov ecx, dword [ebp]
call fcn.00404db4
test al, al
je 0x401bee
cmp dword [ebp - 0x38], 0
je 0x401a4d
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040323f
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.00403615
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x18]
call fcn.004034b5
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x28]
call fcn.0040323f
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.0040b498
push dword [ebp + 0x28]
call fcn.00419e72
push dword [ebp + 0x4c]
jmp 0x401bab
push dword [ebp + 0x28]
mov edi, dword [ebp - 0x90]
call fcn.00419e72
push dword [ebp + 0x4c]
jmp 0x401bd1
cmp dword [ebp + 0x38], 0
jne 0x401a86
push str.setup.exe
lea ecx, [ebp + 0x34]
call fcn.004033d9
mov ecx, dword [ebp + 0x34]
call fcn.00404ee8
test al, al
jne 0x401a86
cmp byte [ebp + 0x73], al
jne 0x401bee
mov edx, str.Cannot_find_setup.exe
xor ecx, ecx
call fcn.0040b498
jmp 0x401bee
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040323f
lea ecx, [ebp + 0x4c]
call fcn.00405fd0
push str.__T_
lea ecx, [ebp + 0xc]
call fcn.004032aa
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x34]
call fcn.004039ba
push dword [ebp + 0xc]
call fcn.00419e72
push dword [ebp + 0x4c]
call fcn.00419e72
pop ecx
pop ecx
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040323f
push 0x41e7f4
lea ecx, [ebp + 0x4c]
call fcn.004032aa
lea eax, [ebp]
push eax
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x34]
call fcn.004039ba
push dword [ebp + 0x4c]
call fcn.00419e72
cmp dword [ebp + 0x44], 0
pop ecx
je 0x401b15
lea ecx, [ebp + 0x34]
call fcn.004035ed
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp + 0x34]
call fcn.004034b5
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.0040345a
push eax
lea ecx, [ebp - 0x58]
call fcn.0040323f
push dword [ebp - 0xe4]
call fcn.00419e72
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.00419e72
push dword [ebp - 0x64]
call fcn.00419e72
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.00419e72
push dword [ebp - 0x64]
call fcn.00419e72
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.00419e72
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.00404bc1
push dword [ebp - 0x48]
call fcn.00419e72
pop ecx
push dword [ebp + 0x34]
call fcn.00419e72
push dword [ebp - 0x70]
call fcn.00419e72
pop ecx
pop ecx
pop edi
pop esi
push dword [ebp - 0x24]
call fcn.00419e72
push dword [ebp - 0x30]
call fcn.00419e72
push dword [ebp - 0x18]
call fcn.00419e72
push dword [ebp - 0x3c]
call fcn.00419e72
push dword [ebp + 0x40]
call fcn.00419e72
push dword [ebp - 0x7c]
call fcn.00419e72
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x401c82
mov edx, str.Unsupported_Windows_version
xor ecx, ecx
call fcn.0040b498
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x68
leave
ret 0x10