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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531de0
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x5d2280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [0x5d3a90], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4223ae
cmp dword [ebp - 0x94], 2
jne 0x4223ae
mov al, 1
jmp 0x4223b0
xor al, al
mov byte [0x5d3a94], al
call fcn.00401fc0
lea ecx, [ebp - 0x180]
call fcn.00408160
lea ecx, [ebp - 0xd8]
call fcn.00408160
lea ecx, [ebp - 0x158]
call fcn.00408160
lea ecx, [ebp - 0x118]
call fcn.00408160
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00408100
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00407ba0
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 4
lea ecx, [ebp - 0x14c]
call fcn.00408160
lea eax, [ebp - 0x14c]
push eax
call fcn.0040a490
lea ecx, [ebp - 0xd8]
call fcn.004091f0
lea ecx, [ebp - 0xd8]
call fcn.004091a0
push 0x53432c
lea ecx, [ebp - 0xd8]
xor bl, bl
call fcn.00408a00
test al, al
je 0x422490
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
add eax, 4
mov bl, 1
push eax
call fcn.004083a0
lea ecx, [ebp - 0xd8]
call fcn.004091f0
lea ecx, [ebp - 0xd8]
call fcn.004091a0
lea ecx, [ebp - 0x140]
call fcn.00407e10
lea eax, [ebp - 0x140]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x14c]
call fcn.00421fe0
test al, al
jne 0x4224d5
test bl, bl
jne 0x4224cb
push str.Cant_load_config_info
push 0
call fcn.004201a0
mov ebx, 1
jmp 0x422e1f
push 0x534360
lea ecx, [ebp - 0x174]
call fcn.00407fe0
lea ecx, [ebp - 0xf0]
call fcn.00408160
cmp dword [ebp - 0x13c], 0
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0xf4], 1
je 0x422786
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0xb0], 0
push eax
mov dword [ebp - 0xac], 0
call fcn.00409810
test al, al
jne 0x422559
test bl, bl
jne 0x42254f
push str.Config_failed
push 0
call fcn.004201a0
mov ebx, 1
jmp 0x422637
push str.Title
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00409c30
push str.BeginPrompt
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00409c30
push 0x534394
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00409c30
push 0x5343a0
push dword [ebp - 0x100]
call fcn.004090e0
mov bh, al
lea eax, [ebp - 0xb4]
push str.Directory
push eax
xor bh, 1
call fcn.00409710
mov ecx, eax
test ecx, ecx
js 0x4225e5
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x174]
add eax, 0xc
push eax
call fcn.004081f0
cmp dword [ebp - 0xe0], 0
je 0x422678
test bl, bl
jne 0x422678
push 0x24
push dword [ebp - 0xcc]
push dword [ebp - 0xe4]
push 0
call edi
cmp eax, 6
je 0x422678
push dword [ebp - 0x100]
xor ebx, ebx
call fcn.00522dfc
push dword [ebp - 0xe4]
call fcn.00522dfc
push dword [ebp - 0xcc]
call fcn.00522dfc
add esp, 0xc
mov edi, dword [ebp - 0xb0]
test edi, edi
je 0x42266d
mov eax, dword [ebp - 0xb4]
dec edi
mov esi, dword [eax + edi*4]
test esi, esi
je 0x422669
push dword [esi + 0xc]
call fcn.00522dfc
push dword [esi]
call fcn.00522dfc
push 0x18
push esi
call fcn.00522de5
add esp, 0x10
test edi, edi
jne 0x422641
push dword [ebp - 0xb4]
jmp 0x422dfe
push str.RunProgram
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00409c30
push eax
lea ecx, [ebp - 0xf0]
call fcn.004081f0
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 4
lea eax, [ebp - 0xb4]
push str.ExecuteFile
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00409c30
push eax
lea ecx, [ebp - 0x158]
call fcn.004081f0
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 4
lea eax, [ebp - 0xb4]
push str.ExecuteParameters
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00409c30
push eax
lea ecx, [ebp - 0x118]
call fcn.004081f0
push dword [ebp - 0xc0]
call fcn.00522dfc
push dword [ebp - 0x100]
call fcn.00522dfc
push dword [ebp - 0xe4]
call fcn.00522dfc
push dword [ebp - 0xcc]
call fcn.00522dfc
mov edi, dword [ebp - 0xb0]
add esp, 0x10
test edi, edi
je 0x42276c
nop dword [eax]
mov eax, dword [ebp - 0xb4]
dec edi
mov esi, dword [eax + edi*4]
test esi, esi
je 0x422768
push dword [esi + 0xc]
call fcn.00522dfc
push dword [esi]
call fcn.00522dfc
push 0x18
push esi
call fcn.00522de5
add esp, 0x10
test edi, edi
jne 0x422740
push dword [ebp - 0xb4]
call fcn.00522dfc
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 4
mov byte [ebp - 0xf4], bh
lea ecx, [ebp - 0x164]
mov byte [ebp - 0x168], 0
call fcn.00408160
push 0x53431c
lea ecx, [ebp - 0x168]
call fcn.0040a7d0
test al, al
jne 0x4227c6
test bl, bl
jne 0x4227bc
push str.Cannot_create_temp_folder_archive
push 0
call fcn.004201a0
mov ebx, 1
jmp 0x422de6
push 0x18
call fcn.00522db5
mov esi, eax
add esp, 4
test esi, esi
je 0x422800
mov dword [esi + 4], 0
mov dword [esi], vtable.CCodecs.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
jmp 0x422802
xor esi, esi
mov dword [ebp - 4], 1
test esi, esi
je 0x422813
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041d470
test eax, eax
je 0x42283b
push str.Cannot_load_codecs
push 0
call fcn.004201a0
mov ebx, 1
jmp 0x422dd5
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00407f80
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0xa5], 0
call fcn.00408160
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa5]
push eax
push dword [ebp - 0xf4]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.00421400
cmp eax, 2
jne 0x422899
push dword [ebp - 0xb4]
xor ebx, ebx
jmp 0x422dbf
test eax, eax
je 0x422942
test bl, bl
jne 0x422932
cmp eax, 1
je 0x4228bf
cmp byte [ebp - 0xa5], bl
jne 0x4228bf
cmp eax, 0x80004004
je 0x422932
jmp 0x4228d2
lea eax, [ebp - 0xb4]
push eax
push 8
call fcn.0040d570
mov eax, 0x80004005
cmp dword [ebp - 0xb0], 0
jne 0x422908
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.0040a590
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004081f0
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 4
push 7
lea eax, [ebp - 0xc0]
push eax
call fcn.0040d460
push 0x10
push dword [eax]
push dword [ebp - 0xb4]
push 0
call edi
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 4
push dword [ebp - 0xb4]
mov ebx, 1
jmp 0x422dbf
push dword [ebp - 0xb4]
call fcn.00522dfc
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.00408160
lea eax, [ebp - 0x128]
mov byte [ebp - 0x11c], 1
push eax
call fcn.0040aeb0
push dword [ebp - 0x10c]
call fcn.0040b4a0
test al, al
jne 0x422987
mov ebx, 1
jmp 0x422d2f
cmp dword [ebp - 0x154], 0
je 0x422aaa
push 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00409670
cmp dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x1bc], 0x3c
mov dword [ebp - 0x1b8], 0x140
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], eax
je 0x422a03
lea ecx, [ebp - 0x118]
call fcn.004086d0
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x118]
call fcn.00408490
push 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00409670
mov eax, dword [ebp - 0xe4]
xor ecx, ecx
cmp dword [ebp - 0xe0], ecx
mov dword [ebp - 0x1a4], ecx
cmove eax, ecx
mov dword [ebp - 0x1a0], 1
mov dword [ebp - 0x1a8], eax
lea eax, [ebp - 0x1bc]
push eax
mov dword [ebp - 0x184], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x19c], 0x20
ja 0x422a8e
test bl, bl
jne 0x422a6b
push str.Cannot_open_file
push 0
call fcn.004201a0
push dword [ebp - 0xe4]
call fcn.00522dfc
push dword [ebp - 0xcc]
call fcn.00522dfc
add esp, 8
mov ebx, 1
jmp 0x422d2f
push dword [ebp - 0xe4]
mov edi, dword [ebp - 0x184]
call fcn.00522dfc
push dword [ebp - 0xcc]
jmp 0x422d11
cmp dword [ebp - 0xec], 0
jne 0x422aec
push str.setup.exe
lea ecx, [ebp - 0xf0]
call fcn.004083a0
push dword [ebp - 0xf0]
call fcn.0040b800
test al, al
jne 0x422aec
test bl, bl
jne 0x422ae2
push str.Cannot_find_setup.exe
push 0
call fcn.004201a0
mov ebx, 1
jmp 0x422d2f
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00407f80
lea eax, [ebp - 0xcc]
push eax
call fcn.0040cf40
push str.__T_
lea ecx, [ebp - 0xe4]
call fcn.00408100
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00408ba0
push dword [ebp - 0xe4]
call fcn.00522dfc
push dword [ebp - 0xcc]
call fcn.00522dfc
add esp, 8
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0xc0]
push eax
call fcn.00407f80
push 0x5344bc
lea ecx, [ebp - 0xcc]
call fcn.00408100
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00408ba0
push dword [ebp - 0xcc]
call fcn.00522dfc
add esp, 4
cmp dword [ebp - 0xd4], 0
je 0x422bbb
lea ecx, [ebp - 0xf0]
call fcn.004086a0
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00408490
xor eax, eax
mov dword [ebp - 0x210], 0x44
mov word [ebp - 0x1de], ax
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x174]
mov dword [ebp - 0x20c], 0
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x208], 0
push eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x1e4], 0
call fcn.00408420
push 0
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00409670
push dword [ebp - 0xcc]
call fcn.00522dfc
add esp, 4
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x100]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422cee
test bl, bl
jne 0x422cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040a590
push 0
push 0x534324
lea ecx, [ebp - 0xb4]
call fcn.00408760
mov edi, eax
test edi, edi
js 0x422cb3
push 2
push edi
lea ecx, [ebp - 0xb4]
call fcn.00408700
lea eax, [ebp - 0xc0]
push eax
push edi
lea ecx, [ebp - 0xb4]
call fcn.004089a0
push dword [ebp - 0xb4]
push 0
call fcn.004201a0
push dword [ebp - 0xb4]
call fcn.00522dfc
add esp, 4
push dword [ebp - 0x100]
call fcn.00522dfc
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 8
mov ebx, 1
jmp 0x422d2f
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x100]
mov edi, dword [ebp - 0x1cc]
call fcn.00522dfc
push dword [ebp - 0xc0]
call fcn.00522dfc
add esp, 8
test edi, edi
je 0x422d2d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp byte [ebp - 0x11c], 0
mov dword [ebp - 4], 0x10
je 0x422db9
lea ecx, [ebp - 0x134]
call fcn.00408160
lea eax, [ebp - 0x134]
push eax
call fcn.0040aeb0
test al, al
je 0x422dab
mov eax, dword [ebp - 0x130]
mov edi, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x124]
jne 0x422da5
mov eax, dword [ebp - 0x134]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422d9c
test dx, dx
je 0x422d98
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422d9c
add eax, 4
add ecx, 4
test dx, dx
jne 0x422d76
xor eax, eax
jmp 0x422da1
sbb eax, eax
or eax, 1
test eax, eax
je 0x422dab
push edi
call fcn.0040b4a0
push dword [ebp - 0x134]
call fcn.00522dfc
add esp, 4
push dword [ebp - 0x128]
call fcn.00522dfc
add esp, 4
push dword [ebp - 0x10c]
call fcn.00522dfc
add esp, 4
mov dword [ebp - 4], 0x11
test esi, esi
je 0x422de6
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 0x12
call fcn.0040b1b0
push dword [ebp - 0x164]
call fcn.00522dfc
add esp, 4
push dword [ebp - 0xf0]
call fcn.00522dfc
push dword [ebp - 0x174]
call fcn.00522dfc
add esp, 8
push dword [ebp - 0x140]
call fcn.00522dfc
push dword [ebp - 0x14c]
call fcn.00522dfc
push dword [ebp - 0x118]
call fcn.00522dfc
push dword [ebp - 0x158]
call fcn.00522dfc
push dword [ebp - 0xd8]
call fcn.00522dfc
push dword [ebp - 0x180]
call fcn.00522dfc
add esp, 0x18
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00522be6
mov esp, ebp
pop ebp
ret 0x10