Function at 0x411a44
Capabilities:
Accept command line arguments
Check os version
Create process on windows
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
push ebx
mov ebx, dword [ebp + 0x32c]
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp + 0x118], ax
xor edi, edi
lea eax, [ebp + 0x11a]
push edi
push eax
call fcn.00415160
add esp, 0xc
push 0x104
lea eax, [ebp + 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp + 0x118]
push eax
push str.SFX_PATH
call esi
lea eax, [ebp + 0x31e]
cmp word [eax], 0x5c
je 0x411ac9
dec eax
dec eax
lea ecx, [ebp + 0x118]
cmp eax, ecx
jne 0x411ab5
jmp 0x411ace
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x118]
push eax
push str.SFX_DIR
call esi
lea eax, [ebp + 0x84]
push eax
mov dword [0x426ed8], ebx
mov dword [ebp + 0x84], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411b0d
cmp dword [ebp + 0x94], 2
mov byte [0x426edc], 1
je 0x411b14
mov byte [0x426edc], 0
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 0x41df44
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 0x411c09
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 0x411c8e
cmp byte [ebp + 0x83], al
jne 0x411c3e
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.00413e6c
add ebp, 0x324
leave
ret 0x10
push 0x41df0c
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 0x411f2f
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 0x411d46
cmp byte [ebp + 0x83], al
jne 0x411cf1
push str.Config_failed
push edi
call fcn.0040c43d
xor esi, esi
inc esi
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, esi
jmp 0x411c74
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], 0x41deb8
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], 0x41deb0
push dword [ebp - 0x70]
call fcn.0040884c
test eax, eax
jne 0x411dd2
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 0x411e0d
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 0x411e4d
cmp byte [ebp + 0x83], 0
jne 0x411e4d
push 0x24
push dword [ebp - 0x64]
push dword [ebp - 0x58]
push edi
call ebx
cmp eax, 6
je 0x411e4d
push dword [ebp - 0x70]
call fcn.00408a60
push dword [ebp - 0x58]
call fcn.00408a60
push dword [ebp - 0x64]
call fcn.00408a60
add esp, 0xc
xor esi, esi
jmp 0x411cf4
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 0x411f70
cmp byte [ebp + 0x83], al
jne 0x411f60
push str.Can_not_create_temp_folder_archive
push edi
call fcn.0040c43d
lea ecx, [ebp + 0x18]
call fcn.0041170b
xor esi, esi
inc esi
jmp 0x411cfc
push 0x1c
call fcn.00408a35
pop ecx
cmp eax, edi
je 0x411f87
mov ecx, eax
call fcn.00411991
mov esi, eax
jmp 0x411f89
xor esi, esi
push esi
lea ecx, [ebp + 0x70]
call fcn.00401f3e
mov ecx, esi
call fcn.0040cec6
test eax, eax
je 0x411fb7
push str.Can_not_load_codecs
push edi
call fcn.0040c43d
mov eax, dword [ebp + 0x70]
cmp eax, edi
je 0x411f60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x411f60
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 0x41206d
cmp byte [ebp + 0x83], 0
jne 0x412056
cmp eax, 1
je 0x41200a
cmp byte [ebp + 0x82], 0
je 0x41202c
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 0x412056
cmp dword [ebp - 0xc], edi
je 0x412056
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 0x411fa8
push dword [ebp - 0x10]
call fcn.00408a60
pop ecx
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 0x412097
push dword [ebp + 0x40]
call esi
push dword [ebp + 0x40]
jmp 0x412059
cmp dword [ebp - 0x3c], edi
je 0x41218d
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 0x412174
cmp byte [ebp + 0x83], 0
jne 0x41212f
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 0x412165
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp + 0x18]
call fcn.0041170b
mov esi, ebx
jmp 0x411cfc
push dword [ebp + 0x28]
mov ebx, dword [ebp - 0x80]
call fcn.00408a60
push dword [ebp + 0x64]
call fcn.00408a60
pop ecx
jmp 0x412317
cmp dword [ebp + 0x50], edi
jne 0x4121e5
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 0x4121e5
cmp byte [ebp + 0x83], 0
jne 0x41208d
push str.Can_not_find_setup.exe
push edi
call fcn.0040c43d
jmp 0x41208d
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 0x41226a
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 0x4122fd
cmp byte [ebp + 0x83], al
jne 0x4122ef
push edi
call fcn.0040c4bb
push dword [ebp + 0x74]
call fcn.00408a60
pop ecx
jmp 0x41208d
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 0x412337
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 0x412141