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

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x328
mov eax, dword [ebp + 0x70]
mov dword [0x42be20], eax
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2c0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402231
cmp dword [ebp - 0x2b0], 2
je 0x402245
mov edx, str.Unsupported_Windows_version
xor ecx, ecx
call fcn.0040c27c
xor eax, eax
inc eax
jmp 0x40235e
push ebx
call fcn.004141f0
lea ecx, [ebp - 0xd0]
call fcn.0040436a
lea ecx, [ebp + 0x4c]
call fcn.0040436a
lea ecx, [ebp - 0x48]
call fcn.0040436a
lea ecx, [ebp - 0x30]
call fcn.0040436a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp + 0x58]
call fcn.0040438e
lea eax, [ebp + 0x4c]
push eax
lea edx, [ebp - 0xd0]
lea ecx, [ebp + 0x58]
call fcn.00403ccf
push dword [ebp + 0x58]
call fcn.00403f1a
pop ecx
lea ecx, [ebp - 0x24]
call fcn.0040436a
lea ecx, [ebp - 0x24]
call fcn.00404ee4
lea ecx, [ebp + 0x4c]
call fcn.0040477a
lea ecx, [ebp + 0x4c]
call fcn.00404741
xor ebx, ebx
push 0x425644
lea ecx, [ebp + 0x4c]
mov byte [ebp + 0x73], bl
call fcn.00403fda
test al, al
je 0x4022f1
mov eax, dword [ebp + 0x4c]
add eax, 4
push eax
lea ecx, [ebp + 0x4c]
mov byte [ebp + 0x73], 1
call fcn.0040442a
lea ecx, [ebp + 0x4c]
call fcn.0040477a
lea ecx, [ebp + 0x4c]
call fcn.00404741
lea ecx, [ebp - 0x3c]
call fcn.00404102
lea eax, [ebp - 0x3c]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x24]
call fcn.004014eb
test al, al
jne 0x402365
cmp byte [ebp + 0x73], bl
jne 0x402324
mov edx, str.Cant_load_config_info
xor ecx, ecx
call fcn.0040c27c
push dword [ebp - 0x3c]
call fcn.00403f1a
push dword [ebp - 0x24]
call fcn.00403f1a
push dword [ebp - 0x30]
call fcn.00403f1a
push dword [ebp - 0x48]
call fcn.00403f1a
push dword [ebp + 0x4c]
call fcn.00403f1a
push dword [ebp - 0xd0]
call fcn.00403f1a
xor eax, eax
add esp, 0x18
inc eax
pop ebx
add ebp, 0x68
leave
ret 0x10
push esi
push edi
push 0x425610
lea ecx, [ebp - 0xdc]
call fcn.004043c1
lea ecx, [ebp + 0x20]
call fcn.0040436a
mov byte [ebp - 0xc], 1
cmp dword [ebp - 0x38], ebx
je 0x402634
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
call fcn.00404abf
test al, al
jne 0x402412
cmp byte [ebp + 0x73], bl
jne 0x4023b5
mov edx, str.Config_failed
xor ecx, ecx
call fcn.0040c27c
xor ebx, ebx
inc ebx
lea ecx, [ebp + 0x38]
call fcn.0040175f
push dword [ebp + 0x20]
call fcn.00403f1a
push dword [ebp - 0xdc]
call fcn.00403f1a
push dword [ebp - 0x3c]
call fcn.00403f1a
push dword [ebp - 0x24]
call fcn.00403f1a
push dword [ebp - 0x30]
call fcn.00403f1a
push dword [ebp - 0x48]
call fcn.00403f1a
push dword [ebp + 0x4c]
call fcn.00403f1a
push dword [ebp - 0xd0]
call fcn.00403f1a
add esp, 0x20
pop edi
mov eax, ebx
pop esi
jmp 0x40235d
push dword [ebp - 0x24]
lea ecx, [ebp - 0x168]
call fcn.004021d8
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x168]
call fcn.00401b5a
mov esi, eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x168]
call fcn.00401b3a
push dword [esi + 4]
lea ecx, [ebp - 0x70]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.004020fe
push 0xffffffffffffffff
push 0x4255f0
lea ecx, [ebp - 0x70]
call fcn.00401802
cmp eax, 0xffffffff
je 0x402472
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401793
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x110]
push str.SFXSRCDIR
push eax
call fcn.00402186
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x70]
call fcn.00401dc6
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x110]
call fcn.00401839
cmp dword [ebp - 0x58], 0x10
mov eax, dword [ebp - 0x6c]
jae 0x4024b2
lea eax, [ebp - 0x6c]
push eax
call fcn.00423684
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0xe8]
mov dword [esp], str.Title
call fcn.00404a3b
push str.BeginPrompt
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0x54]
call fcn.00404a3b
push 0x4255c4
lea edx, [ebp + 0x38]
lea ecx, [ebp - 0xc4]
call fcn.00404a3b
mov ecx, dword [ebp - 0xc4]
mov edx, 0x4255c0
call fcn.0040403c
test al, al
je 0x402507
mov byte [ebp - 0xc], bl
mov edx, str.Directory
lea ecx, [ebp + 0x38]
call fcn.00404a0a
cmp eax, ebx
jl 0x40252d
mov ecx, dword [ebp + 0x38]
mov eax, dword [ecx + eax*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040448a
cmp dword [ebp - 0x50], ebx
je 0x40258b
cmp byte [ebp + 0x73], bl
jne 0x40258b
push 0x24
push dword [ebp - 0xe8]
push dword [ebp - 0x54]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40258b
push dword [ebp - 0xc4]
call fcn.00403f1a
push dword [ebp - 0x54]
call fcn.00403f1a
push dword [ebp - 0xe8]
call fcn.00403f1a
add esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00401839
push ebx
push edi
lea ecx, [ebp - 0x168]
call fcn.00401884
jmp 0x4023b8
push str.RunProgram
lea edx, [ebp + 0x38]
lea ecx, [ebp + 0x58]
call fcn.00404a3b
push eax
lea ecx, [ebp + 0x20]
call fcn.0040448a
push dword [ebp + 0x58]
call fcn.00403f1a
lea edx, [ebp + 0x38]
lea ecx, [ebp + 0x58]
mov dword [esp], str.ExecuteFile
call fcn.00404a3b
push eax
lea ecx, [ebp - 0x48]
call fcn.0040448a
push dword [ebp + 0x58]
call fcn.00403f1a
lea edx, [ebp + 0x38]
lea ecx, [ebp + 0x58]
mov dword [esp], str.ExecuteParameters
call fcn.00404a3b
push eax
lea ecx, [ebp - 0x30]
call fcn.0040448a
push dword [ebp + 0x58]
call fcn.00403f1a
push dword [ebp - 0xc4]
call fcn.00403f1a
push dword [ebp - 0x54]
call fcn.00403f1a
push dword [ebp - 0xe8]
call fcn.00403f1a
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00401839
push ebx
push edi
lea ecx, [ebp - 0x168]
call fcn.00401884
lea ecx, [ebp + 0x38]
call fcn.0040175f
jmp 0x402637
xor edi, edi
inc edi
lea ecx, [ebp - 4]
mov byte [ebp - 8], bl
call fcn.0040436a
push 0x425260
lea ecx, [ebp - 8]
call fcn.004056b3
test al, al
jne 0x402673
cmp byte [ebp + 0x73], bl
jne 0x402664
mov edx, str.Can_not_create_temp_folder_archive
xor ecx, ecx
call fcn.0040c27c
lea ecx, [ebp - 8]
call fcn.00401048
mov ebx, edi
jmp 0x4023c0
push dword [ebp - 4]
lea ecx, [ebp - 0x9c]
call fcn.004021d8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00401b5a
mov esi, eax
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00401b3a
push dword [esi + 4]
lea ecx, [ebp - 0xb8]
push dword [esi]
push dword [eax + 4]
push dword [eax]
call fcn.004020fe
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x110]
push str.SFXTRGDIR
push eax
call fcn.00402186
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0xb8]
call fcn.00401dc6
push ebx
push edi
lea ecx, [ebp - 0x110]
call fcn.00401839
push 0x18
call fcn.00403eef
pop ecx
cmp eax, ebx
je 0x402704
mov ecx, eax
call fcn.00401ff3
mov esi, eax
jmp 0x402706
xor esi, esi
push esi
lea ecx, [ebp + 0x48]
call fcn.00402c35
mov ecx, esi
call fcn.0040a268
test eax, eax
je 0x402752
mov edx, str.Can_not_load_codecs
xor ecx, ecx
call fcn.0040c27c
mov eax, dword [ebp + 0x48]
cmp eax, ebx
je 0x402733
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push edi
lea ecx, [ebp - 0xb8]
call fcn.00401839
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.00401884
jmp 0x402664
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 0x14]
call fcn.00404402
lea ecx, [ebp + 8]
mov byte [ebp + 0x67], bl
call fcn.0040436a
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x67]
push eax
push dword [ebp - 0xc]
lea eax, [ebp + 0x14]
push eax
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00403b5d
cmp eax, ebx
je 0x402805
cmp byte [ebp + 0x73], bl
jne 0x4027ee
cmp eax, edi
je 0x402794
cmp byte [ebp + 0x67], bl
je 0x4027a4
push 8
lea edx, [ebp + 8]
pop ecx
call fcn.00406c3b
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x4027ee
cmp dword [ebp + 0xc], ebx
jne 0x4027cc
mov edx, eax
lea ecx, [ebp + 0x58]
call fcn.00404f55
push eax
lea ecx, [ebp + 8]
call fcn.0040448a
push dword [ebp + 0x58]
call fcn.00403f1a
pop ecx
push 7
pop edx
lea ecx, [ebp + 0x58]
call fcn.00406b40
push 0x10
push dword [eax]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 0x58]
call fcn.00403f1a
pop ecx
push dword [ebp + 8]
call fcn.00403f1a
push dword [ebp + 0x14]
call fcn.00403f1a
pop ecx
pop ecx
jmp 0x402726
push dword [ebp + 8]
call fcn.00403f1a
pop ecx
lea ecx, [ebp - 0x80]
call fcn.00401078
mov ecx, dword [ebp + 0x14]
call fcn.004050d2
test al, al
jne 0x402834
lea ecx, [ebp - 0x80]
call fcn.004010ac
push dword [ebp + 0x14]
call fcn.00403f1a
jmp 0x4027ff
cmp dword [ebp - 0x44], ebx
je 0x40290d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00404402
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x14c], 0x3c
mov dword [ebp - 0x148], 0x140
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], eax
cmp dword [ebp + 0x50], ebx
je 0x40288b
lea ecx, [ebp - 0x30]
call fcn.00404815
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404641
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404402
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x114], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x12c], 0x20
ja 0x4028f7
cmp byte [ebp + 0x73], bl
jne 0x4028e0
mov edx, str.Can_not_open_file
xor ecx, ecx
call fcn.0040c27c
push dword [ebp - 0x18]
call fcn.00403f1a
push dword [ebp + 0x2c]
call fcn.00403f1a
pop ecx
pop ecx
jmp 0x402822
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x114]
call fcn.00403f1a
push dword [ebp + 0x2c]
jmp 0x402a91
cmp dword [ebp + 0x24], ebx
jne 0x402945
push str.setup.exe
lea ecx, [ebp + 0x20]
call fcn.0040442a
mov ecx, dword [ebp + 0x20]
call fcn.00405e8b
test al, al
jne 0x402945
cmp byte [ebp + 0x73], bl
jne 0x402822
mov edx, str.Can_not_find_setup.exe
xor ecx, ecx
call fcn.0040c27c
jmp 0x402822
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00404402
lea ecx, [ebp + 0x2c]
call fcn.0040627c
push str.__T_
lea ecx, [ebp - 0x18]
call fcn.0040438e
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x20]
call fcn.0040485b
push dword [ebp - 0x18]
call fcn.00403f1a
push dword [ebp + 0x2c]
call fcn.00403f1a
pop ecx
pop ecx
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 0x58]
call fcn.00404402
push 0x425490
lea ecx, [ebp + 0x2c]
call fcn.0040438e
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x20]
call fcn.0040485b
push dword [ebp + 0x2c]
call fcn.00403f1a
pop ecx
cmp dword [ebp + 0x50], ebx
je 0x4029d3
lea ecx, [ebp + 0x20]
call fcn.0040480d
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x20]
call fcn.00404641
xor eax, eax
mov word [ebp - 0x17a], ax
lea eax, [ebp + 0x20]
push eax
lea edx, [ebp - 0xdc]
lea ecx, [ebp + 0x2c]
mov dword [ebp - 0x1ac], 0x44
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x178], ebx
call fcn.00404314
push eax
lea ecx, [ebp - 0xf4]
call fcn.00404402
push dword [ebp + 0x2c]
call fcn.00403f1a
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1ac]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xf4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402a71
cmp byte [ebp + 0x73], bl
jne 0x402a5e
lea eax, [ebp + 0x58]
push eax
call fcn.00401224
push dword [ebp - 0xf4]
call fcn.00403f1a
push dword [ebp + 0x58]
jmp 0x4028eb
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf4]
mov esi, dword [ebp - 0x104]
call fcn.00403f1a
push dword [ebp + 0x58]
call fcn.00403f1a
pop ecx
pop ecx
cmp esi, ebx
je 0x402aac
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.004010ac
push dword [ebp + 0x14]
call fcn.00403f1a
mov eax, dword [ebp + 0x48]
pop ecx
cmp eax, ebx
je 0x402aca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push edi
lea ecx, [ebp - 0xb8]
call fcn.00401839
push ebx
push edi
lea ecx, [ebp - 0x9c]
call fcn.00401884
lea ecx, [ebp - 8]
call fcn.00401048
jmp 0x4023c0