Function at 0x411a44
Capabilities:
Accept command line arguments
Check os version
Create process on windows
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x324]
sub esp, 0x430
mov eax, dword [0x426030]
xor eax, ebp
mov dword [ebp + 0x320], eax
mov eax, dword [ebp + 0x32c]
mov dword [0x426ed8], eax
lea eax, [ebp + 0x84]
push eax
mov dword [ebp + 0x84], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411a95
cmp dword [ebp + 0x94], 2
mov byte [0x426edc], 1
je 0x411a9c
mov byte [0x426edc], 0
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x7c]
mov dword [ebp], edi
call fcn.00403cc3
lea ecx, [ebp + 0x58]
call fcn.00403cc3
lea ecx, [ebp - 0x40]
call fcn.00403cc3
lea ecx, [ebp - 0x4c]
call fcn.00403cc3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.0040863f
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00403cc3
lea eax, [ebp - 0x34]
push eax
push dword [0x426ed8]
call fcn.00409330
lea ecx, [ebp + 0x58]
call fcn.004086fe
lea ecx, [ebp + 0x58]
call fcn.004086d8
push 0x41df5c
lea ecx, [ebp - 0x28]
mov byte [ebp + 0x83], 0
call fcn.00408373
mov esi, eax
push 2
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x58]
call fcn.004084a0
push dword [esi]
push dword [eax]
call fcn.0040884c
push dword [ebp + 0x74]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00408a60
push dword [ebp - 0x28]
call fcn.00408a60
pop ecx
pop ecx
test bl, bl
je 0x411b96
push 2
lea eax, [ebp + 0x74]
push eax
lea ecx, [ebp + 0x58]
mov byte [ebp + 0x83], 1
call fcn.00408596
push eax
lea ecx, [ebp + 0x58]
call fcn.004083a9
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
lea ecx, [ebp + 0x58]
call fcn.004086fe
lea ecx, [ebp + 0x58]
call fcn.004086d8
lea ecx, [ebp - 0x1c]
call fcn.00408ade
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
push str.___InstallEnd__
mov edx, str.___Install__UTF_8_
call fcn.004117ce
test al, al
jne 0x411c1b
cmp byte [ebp + 0x83], al
jne 0x411bcb
push str.Cant_load_config_info
push edi
call fcn.0040c43d
push dword [ebp - 0x1c]
call fcn.00408a60
push dword [ebp - 0x34]
call fcn.00408a60
push dword [ebp - 0x4c]
call fcn.00408a60
push dword [ebp - 0x40]
call fcn.00408a60
push dword [ebp + 0x58]
call fcn.00408a60
push dword [ebp - 0x7c]
call fcn.00408a60
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp + 0x320]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413e3d
add ebp, 0x324
leave
ret 0x10
push 0x41df24
lea ecx, [ebp - 0x28]
call fcn.00408373
lea ecx, [ebp + 0x4c]
call fcn.00403cc3
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], edi
je 0x411eba
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], 4
mov dword [ebp + 4], vtable.CObjectVector_struct_CTextConfigPair_.0
call fcn.00408e80
test al, al
jne 0x411cd3
cmp byte [ebp + 0x83], al
jne 0x411c7e
push str.Config_failed
push edi
call fcn.0040c43d
xor edi, edi
inc edi
lea ecx, [ebp + 4]
call fcn.00411765
push dword [ebp + 0x4c]
call fcn.00408a60
push dword [ebp - 0x28]
call fcn.00408a60
push dword [ebp - 0x1c]
call fcn.00408a60
push dword [ebp - 0x34]
call fcn.00408a60
push dword [ebp - 0x4c]
call fcn.00408a60
push dword [ebp - 0x40]
call fcn.00408a60
push dword [ebp + 0x58]
call fcn.00408a60
push dword [ebp - 0x7c]
call fcn.00408a60
add esp, 0x20
mov eax, edi
jmp 0x411c01
push str.Title
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00408e03
push dword [ebp + 0x74]
call fcn.00408a60
lea ecx, [ebp + 0x74]
mov dword [esp], str.BeginPrompt
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00408e03
push dword [ebp + 0x74]
call fcn.00408a60
lea ecx, [ebp + 0x74]
mov dword [esp], 0x41ded0
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408e03
push dword [ebp + 0x74]
call fcn.00408a60
mov dword [esp], 0x41dec8
push dword [ebp - 0x70]
call fcn.0040884c
test eax, eax
jne 0x411d5f
mov byte [ebp - 4], al
push str.Directory
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00408dcd
push dword [ebp + 0x74]
mov esi, eax
call fcn.00408a60
cmp esi, edi
pop ecx
jl 0x411d9a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.004083a9
cmp dword [ebp - 0x54], edi
je 0x411dd8
cmp byte [ebp + 0x83], 0
jne 0x411dd8
push 0x24
push dword [ebp - 0x64]
push dword [ebp - 0x58]
push edi
call ebx
cmp eax, 6
je 0x411dd8
push dword [ebp - 0x70]
call fcn.00408a60
push dword [ebp - 0x58]
call fcn.00408a60
push dword [ebp - 0x64]
call fcn.00408a60
add esp, 0xc
jmp 0x411c81
push str.RunProgram
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.00408e03
push eax
lea ecx, [ebp + 0x4c]
call fcn.004083a9
push dword [ebp + 0x64]
call fcn.00408a60
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.00408e03
push eax
lea ecx, [ebp - 0x40]
call fcn.004083a9
push dword [ebp + 0x64]
call fcn.00408a60
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp + 0x74]
call fcn.00408373
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.00408e03
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.00409cba
push eax
lea ecx, [ebp - 0x4c]
call fcn.004083a9
push dword [ebp + 0x64]
call fcn.00408a60
push dword [ebp + 0x28]
call fcn.00408a60
push dword [ebp + 0x74]
call fcn.00408a60
push dword [ebp - 0x70]
call fcn.00408a60
push dword [ebp - 0x58]
call fcn.00408a60
push dword [ebp - 0x64]
call fcn.00408a60
add esp, 0x18
lea ecx, [ebp + 4]
call fcn.00411765
lea ecx, [ebp + 0x1c]
mov byte [ebp + 0x18], 0
call fcn.00408ade
push dword [0x425f70]
lea ecx, [ebp + 0x18]
call fcn.0040a1be
test al, al
jne 0x411efb
cmp byte [ebp + 0x83], al
jne 0x411eeb
push str.Can_not_create_temp_folder_archive
push edi
call fcn.0040c43d
lea ecx, [ebp + 0x18]
call fcn.0041170b
xor edi, edi
inc edi
jmp 0x411c89
push 0x1c
call fcn.00408a35
pop ecx
cmp eax, edi
je 0x411f12
mov ecx, eax
call fcn.00411991
mov esi, eax
jmp 0x411f14
xor esi, esi
push esi
lea ecx, [ebp + 0x70]
call fcn.00401f3e
mov ecx, esi
call fcn.0040cec6
test eax, eax
je 0x411f42
push str.Can_not_load_codecs
push edi
call fcn.0040c43d
mov eax, dword [ebp + 0x70]
cmp eax, edi
je 0x411eeb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x411eeb
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x34]
push eax
call fcn.0040941d
lea ecx, [ebp - 0x10]
mov byte [ebp + 0x82], 0
call fcn.00403cc3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x82]
push eax
push dword [ebp - 4]
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.004115a6
cmp eax, edi
je 0x411ff8
cmp byte [ebp + 0x83], 0
jne 0x411fe1
cmp eax, 1
je 0x411f95
cmp byte [ebp + 0x82], 0
je 0x411fb7
push 8
lea eax, [ebp + 0x74]
push eax
call fcn.0040ac8c
push eax
lea ecx, [ebp - 0x10]
call fcn.004083a9
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x411fe1
cmp dword [ebp - 0xc], edi
je 0x411fe1
push 7
lea eax, [ebp + 0x74]
push eax
call fcn.0040ac8c
push 0x10
push dword [eax]
push dword [ebp - 0x10]
push edi
call ebx
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
push dword [ebp - 0x10]
call fcn.00408a60
push dword [ebp + 0x34]
call fcn.00408a60
pop ecx
pop ecx
jmp 0x411f33
push dword [ebp - 0x10]
call fcn.00408a60
xor eax, eax
mov word [ebp + 0x118], ax
mov dword [esp], 0x206
lea eax, [ebp + 0x11a]
push edi
push eax
call fcn.00415130
add esp, 0xc
lea eax, [ebp + 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp + 0x118]
push eax
push str.SFX_CUR_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp + 0x40]
call fcn.00411969
push dword [ebp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x412068
push dword [ebp + 0x40]
call esi
push dword [ebp + 0x40]
jmp 0x411fe4
cmp dword [ebp - 0x3c], edi
je 0x41215e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.0040acac
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x28]
push eax
mov dword [ebp - 0xb8], 0x3c
mov dword [ebp - 0xb4], 0x140
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
call fcn.0040acac
mov eax, dword [ebp + 0x2c]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x28]
xor ebx, ebx
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb8]
inc ebx
push eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x80], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x98], 0x20
ja 0x412145
cmp byte [ebp + 0x83], 0
jne 0x412100
push str.Can_not_open_file
push edi
call fcn.0040c43d
push dword [ebp + 0x28]
call fcn.00408a60
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
pop ecx
push dword [ebp + 0x40]
call esi
push dword [ebp + 0x40]
call fcn.00408a60
push dword [ebp + 0x34]
call fcn.00408a60
mov eax, dword [ebp + 0x70]
pop ecx
pop ecx
cmp eax, edi
je 0x412136
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x18]
call fcn.0041170b
mov edi, ebx
jmp 0x411c89
push dword [ebp + 0x28]
mov ebx, dword [ebp - 0x80]
call fcn.00408a60
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
jmp 0x4122e8
cmp dword [ebp + 0x50], edi
jne 0x4121b6
push str.setup.exe
lea ecx, [ebp + 0x4c]
call fcn.00409260
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.0040acac
push dword [eax]
call fcn.0040a622
push dword [ebp + 0x64]
mov bl, al
neg bl
sbb bl, bl
inc bl
call fcn.00408a60
pop ecx
test bl, bl
je 0x4121b6
cmp byte [ebp + 0x83], 0
jne 0x41205b
push str.Can_not_find_setup.exe
push edi
call fcn.0040c43d
jmp 0x41205b
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x64]
call fcn.00403dba
lea eax, [ebp + 0x64]
push eax
call fcn.0040a9e5
push str.__T_
lea ecx, [ebp + 0x28]
call fcn.00408373
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040e063
push dword [ebp + 0x28]
call fcn.00408a60
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
pop ecx
push 0x41dd58
lea ecx, [ebp + 0x64]
call fcn.00408373
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x4c]
call fcn.0040e063
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
cmp dword [ebp + 0x5c], edi
je 0x41223b
push 0x20
lea ecx, [ebp + 0x4c]
call fcn.004083e0
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x4c]
call fcn.00409174
xor eax, eax
mov word [ebp - 0xda], ax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x64]
push eax
mov dword [ebp - 0x10c], 0x44
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xd8], edi
call fcn.00409cba
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.0040acac
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x74]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4122ce
cmp byte [ebp + 0x83], al
jne 0x4122c0
push edi
call fcn.0040c4bb
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
jmp 0x41205b
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x74]
mov ebx, dword [ebp - 0xc8]
call fcn.00408a60
pop ecx
cmp ebx, edi
je 0x412308
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp]
jmp 0x412112