Function at 0x401014
Capabilities:
Accept command line arguments
Check os version
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [ebp + 8]
push ebx
mov dword [0x420ff4], eax
push esi
lea eax, [ebp - 0x18c]
push edi
push eax
mov dword [ebp - 0x18c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
jne 0x401049
xor al, al
jmp 0x401053
cmp dword [ebp - 0x17c], 2
sete al
mov byte [0x420ff8], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
lea ecx, [ebp - 0x54]
pop edi
mov dword [ebp - 0x54], ebx
push edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.00401bcc
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401bcc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401828
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403370
push dword [ebp - 0x24]
call fcn.004035d9
pop ecx
mov dword [ebp - 0x3c], ebx
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00401bcc
lea eax, [ebp - 0x3c]
push eax
push dword [0x420ff4]
call fcn.0040401a
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.00401e9f
lea eax, [ebp - 0x48]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x3c]
call fcn.004016a6
test al, al
jne 0x40110e
push str.Cant_load_config_info
push ebx
call fcn.004113c7
push 1
pop ebx
jmp 0x40161d
lea ecx, [ebp - 0x18]
call fcn.00401dbf
lea ecx, [ebp - 0x18]
call fcn.00401d84
push 0x41e1ac
lea ecx, [ebp - 0x24]
mov byte [ebp + 0xb], bl
call fcn.00401828
mov esi, eax
lea eax, [ebp - 0xc]
push 2
push eax
lea ecx, [ebp - 0x18]
call fcn.004019e2
push dword [esi]
push dword [eax]
call fcn.00403696
push dword [ebp - 0xc]
mov esi, eax
call fcn.004035d9
push dword [ebp - 0x24]
call fcn.004035d9
pop ecx
cmp esi, ebx
pop ecx
jne 0x401193
lea eax, [ebp - 0xc]
push 2
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp + 0xb], 1
call fcn.004019c1
push eax
lea ecx, [ebp - 0x18]
call fcn.00401922
push dword [ebp - 0xc]
call fcn.004035d9
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401dbf
lea ecx, [ebp - 0x18]
call fcn.00401d84
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00401bcc
cmp dword [ebp - 0x44], ebx
je 0x401316
lea ecx, [ebp - 0x68]
call fcn.00401bb1
lea eax, [ebp - 0x68]
mov esi, 0x4192d4
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x68], esi
call fcn.00403838
test al, al
jne 0x4011e2
push str.Config_failed
push ebx
call fcn.004113c7
push 1
pop ebx
jmp 0x40126d
push str.Title
lea ecx, [ebp - 0xc]
call fcn.00401828
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403b6f
push dword [ebp - 0xc]
call fcn.004035d9
lea ecx, [ebp - 0xc]
mov dword [esp], str.BeginPrompt
call fcn.00401828
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00403b6f
push dword [ebp - 0xc]
call fcn.004035d9
cmp dword [ebp - 0x8c], ebx
pop ecx
je 0x4012b0
cmp byte [ebp + 0xb], bl
jne 0x4012b0
push 0x24
push dword [ebp - 0x24]
push dword [ebp - 0x90]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4012b0
push dword [ebp - 0x90]
call fcn.004035d9
push dword [ebp - 0x24]
call fcn.004035d9
pop ecx
pop ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], esi
call fcn.00403d29
lea ecx, [ebp - 0x68]
call fcn.00403cfd
push dword [ebp - 0x30]
call fcn.004035d9
push dword [ebp - 0x48]
call fcn.004035d9
push dword [ebp - 0x3c]
call fcn.004035d9
push dword [ebp - 0x18]
call fcn.004035d9
push dword [ebp - 0x54]
call fcn.004035d9
add esp, 0x14
jmp 0x401640
push str.RunProgram
lea ecx, [ebp - 0xc]
call fcn.00401828
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00403b6f
push eax
lea ecx, [ebp - 0x30]
call fcn.00401922
push dword [ebp - 0xac]
call fcn.004035d9
push dword [ebp - 0xc]
call fcn.004035d9
push dword [ebp - 0x90]
call fcn.004035d9
push dword [ebp - 0x24]
call fcn.004035d9
add esp, 0x10
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], esi
call fcn.00403d29
lea ecx, [ebp - 0x68]
call fcn.00403cfd
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x78], bl
call fcn.00401a75
push dword [0x41e054]
lea ecx, [ebp - 0x78]
call fcn.00404cac
test al, al
jne 0x401346
push str.Can_not_create_temp_folder_archive
push ebx
call fcn.004113c7
push 1
pop ebx
jmp 0x401603
lea eax, [ebp - 0x74]
mov dword [ebp - 0xb0], ebx
push eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0xb4], 0x4192c8
call fcn.00401649
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00402a7c
cmp eax, ebx
je 0x4013a9
cmp eax, 1
jne 0x401393
push str.Can_not_open_archive
push ebx
call fcn.004113c7
jmp 0x4013a1
cmp eax, 0x80004004
je 0x4013a1
push eax
push ebx
call fcn.004113df
push 1
pop ebx
jmp 0x4015f7
lea ecx, [ebp - 0xa0]
call fcn.00401a75
lea eax, [ebp - 0xa0]
push eax
call fcn.00404a1d
push dword [ebp - 0x74]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4013d7
push 1
pop ebx
jmp 0x4015df
cmp dword [ebp - 0x2c], ebx
jne 0x401427
push str.setup.exe
lea ecx, [ebp - 0x30]
call fcn.004018c3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00401665
push dword [eax]
call fcn.00405213
push dword [ebp - 0xac]
neg al
sbb al, al
inc al
mov byte [ebp + 0xb], al
call fcn.004035d9
cmp byte [ebp + 0xb], bl
pop ecx
je 0x401427
push str.Can_not_find_setup.exe
push ebx
call fcn.004113c7
jmp 0x4013cf
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401889
lea eax, [ebp - 0x24]
push eax
call fcn.00405680
push str.__T_
lea ecx, [ebp - 0xc]
call fcn.00401828
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004019fe
push dword [ebp - 0xc]
call fcn.004035d9
push dword [ebp - 0x24]
call fcn.004035d9
pop ecx
pop ecx
push 0x41e088
lea ecx, [ebp - 0xc]
call fcn.00401828
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004019fe
push dword [ebp - 0xc]
call fcn.004035d9
cmp dword [ebp - 0x14], ebx
pop ecx
je 0x4014b2
push 0x20
lea ecx, [ebp - 0x30]
call fcn.00401960
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040198b
lea eax, [ebp - 0x30]
mov dword [ebp - 0xf8], 0x44
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xcc], ebx
mov word [ebp - 0xc6], bx
mov dword [ebp - 0xc4], ebx
call fcn.00401665
push eax
push 0x41e084
lea ecx, [ebp - 0xac]
call fcn.00401a8d
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402095
push dword [ebp - 0xac]
call fcn.004035d9
push dword [ebp - 0xc]
call fcn.004035d9
pop ecx
lea eax, [ebp - 0x94]
pop ecx
push eax
lea eax, [ebp - 0xf8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4015b2
push ebx
call fcn.00411464
push dword [ebp - 0x24]
call fcn.004035d9
pop ecx
push dword [ebp - 0xa0]
call esi
push dword [ebp - 0xa0]
call fcn.004035d9
push dword [ebp - 0x84]
call fcn.004035d9
pop ecx
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401681
push dword [ebp - 0x74]
call fcn.004035d9
push dword [ebp - 0x30]
call fcn.004035d9
push dword [ebp - 0x48]
call fcn.004035d9
push dword [ebp - 0x3c]
call fcn.004035d9
push dword [ebp - 0x18]
call fcn.004035d9
push dword [ebp - 0x54]
call fcn.004035d9
add esp, 0x18
push 1
pop eax
jmp 0x401642
push dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x94]
call fcn.004035d9
cmp edi, ebx
pop ecx
je 0x4015df
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xa0]
call fcn.004035d9
pop ecx
push dword [ebp - 0x84]
call fcn.004035d9
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401681
push dword [ebp - 0x74]
call fcn.004035d9
push dword [ebp - 0x30]
call fcn.004035d9
pop ecx
pop ecx
push dword [ebp - 0x48]
call fcn.004035d9
push dword [ebp - 0x3c]
call fcn.004035d9
push dword [ebp - 0x18]
call fcn.004035d9
push dword [ebp - 0x54]
call fcn.004035d9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10