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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [ebp + 8]
push ebx
mov dword [0x418a80], eax
push esi
lea eax, [ebp - 0x1dc]
push edi
push eax
mov dword [ebp - 0x1dc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
jne 0x41101f
xor al, al
jmp 0x411029
cmp dword [ebp - 0x1cc], 2
sete al
mov byte [0x418a84], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
lea ecx, [ebp - 0xac]
pop edi
mov dword [ebp - 0xac], ebx
push edi
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call fcn.0040706b
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040706b
push edi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
call fcn.0040706b
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0040706b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ab57
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040a9d1
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
mov dword [ebp - 0x4c], ebx
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040706b
lea eax, [ebp - 0x4c]
push eax
push dword [0x418a80]
call fcn.0040be75
lea ecx, [ebp - 0x1c]
call fcn.0040ad9f
lea ecx, [ebp - 0x1c]
call fcn.0040ad64
push 0x418618
lea ecx, [ebp - 0x28]
mov byte [ebp + 0xb], bl
call fcn.0040ab57
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040acc6
push dword [esi]
push dword [eax]
call fcn.0040b105
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
cmp esi, ebx
pop ecx
jne 0x411169
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 1
call fcn.0040abf6
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040abb8
push dword [ebp - 0x10]
call fcn.0040b047
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ad9f
lea ecx, [ebp - 0x1c]
call fcn.0040ad64
push 0x418610
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x74], 1
call fcn.0040ab57
mov esi, eax
lea eax, [ebp - 0xf8]
push 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040acc6
push dword [esi]
push dword [eax]
call fcn.0040b105
test eax, eax
je 0x411223
push str._INI
lea ecx, [ebp - 0x28]
call fcn.0040ab57
mov esi, eax
lea eax, [ebp - 0x10]
push 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040acc6
push dword [esi]
push dword [eax]
call fcn.0040b105
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
cmp esi, ebx
pop ecx
je 0x411223
push 0x4185fc
lea ecx, [ebp - 0x58]
call fcn.0040ab57
mov esi, eax
lea eax, [ebp - 0xb8]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040acc6
push dword [esi]
push dword [eax]
call fcn.0040b105
push dword [ebp - 0xb8]
mov esi, eax
call fcn.0040b047
push dword [ebp - 0x58]
call fcn.0040b047
pop ecx
cmp esi, ebx
pop ecx
mov byte [ebp - 1], bl
jne 0x411227
mov byte [ebp - 1], 1
push dword [ebp - 0xf8]
call fcn.0040b047
push dword [ebp - 0x40]
call fcn.0040b047
cmp byte [ebp - 1], bl
pop ecx
pop ecx
je 0x411244
mov byte [ebp - 0x74], bl
push edi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.0040b19a
lea eax, [ebp - 0x80]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x4c]
call fcn.00411b36
test al, al
jne 0x411288
cmp byte [ebp + 0xb], bl
jne 0x411280
push str.Cant_load_config_info
push ebx
call fcn.0040e3a2
push 1
pop ebx
jmp 0x411af4
push 0x4185c4
lea ecx, [ebp - 0xe0]
call fcn.0040ab57
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040706b
cmp dword [ebp - 0x7c], ebx
je 0x4115b1
lea ecx, [ebp - 0xa0]
call fcn.004022f6
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4148fc
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040b377
test al, al
jne 0x4112f4
cmp byte [ebp + 0xb], bl
jne 0x4112ec
push str.Config_failed
push ebx
call fcn.0040e3a2
push 1
pop ebx
jmp 0x411431
push str.Title
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b6ae
push dword [ebp - 0x10]
call fcn.0040b047
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040b6ae
push dword [ebp - 0x10]
call fcn.0040b047
lea ecx, [ebp - 0x10]
mov dword [esp], str.Progress
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040b6ae
push dword [ebp - 0x10]
call fcn.0040b047
lea ecx, [ebp - 0x10]
mov dword [esp], 0x418568
call fcn.0040ab57
push dword [ebp - 0x10]
push dword [ebp - 0xb8]
call fcn.0040b105
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040b047
cmp esi, ebx
pop ecx
jne 0x4113a5
mov byte [ebp - 0x74], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b678
push dword [ebp - 0x10]
mov esi, eax
call fcn.0040b047
cmp esi, ebx
pop ecx
jl 0x4113e9
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0xe0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040abb8
cmp dword [ebp - 0x54], ebx
je 0x4114a2
cmp byte [ebp + 0xb], bl
jne 0x4114a2
push 0x24
push dword [ebp - 0x28]
push dword [ebp - 0x58]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4114a2
push dword [ebp - 0xb8]
call fcn.0040b047
push dword [ebp - 0x58]
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
add esp, 0xc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4148fc
call fcn.0040b8d6
lea ecx, [ebp - 0xa0]
call fcn.0040b8c6
push dword [ebp - 0x34]
call fcn.0040b047
push dword [ebp - 0xe0]
call fcn.0040b047
push dword [ebp - 0x80]
call fcn.0040b047
push dword [ebp - 0x4c]
call fcn.0040b047
push dword [ebp - 0x64]
call fcn.0040b047
push dword [ebp - 0x8c]
call fcn.0040b047
push dword [ebp - 0x1c]
call fcn.0040b047
push dword [ebp - 0xac]
call fcn.0040b047
add esp, 0x20
jmp 0x411b2d
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b6ae
push eax
lea ecx, [ebp - 0x34]
call fcn.0040abb8
push dword [ebp - 0x40]
call fcn.0040b047
push dword [ebp - 0x10]
call fcn.0040b047
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b6ae
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040abb8
push dword [ebp - 0x40]
call fcn.0040b047
push dword [ebp - 0x10]
call fcn.0040b047
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040b6ae
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040bbb0
push eax
lea ecx, [ebp - 0x64]
call fcn.0040abb8
push dword [ebp - 0x40]
call fcn.0040b047
push dword [ebp - 0xf8]
call fcn.0040b047
push dword [ebp - 0x10]
call fcn.0040b047
push dword [ebp - 0xb8]
call fcn.0040b047
push dword [ebp - 0x58]
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
add esp, 0x18
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4148fc
call fcn.0040b8d6
lea ecx, [ebp - 0xa0]
call fcn.0040b8c6
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0xd4], bl
call fcn.0040cbcc
push dword [0x418410]
lea ecx, [ebp - 0xd4]
call fcn.0040cb8c
test al, al
jne 0x4115ef
cmp byte [ebp + 0xb], bl
jne 0x4115e7
push str.Can_not_create_temp_folder_archive
push ebx
call fcn.0040e3a2
push 1
pop ebx
jmp 0x411ac8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x100], ebx
push eax
lea eax, [ebp - 0xec]
push eax
mov dword [ebp - 0x104], 0x4148f0
call fcn.0040c0d4
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 2], bl
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.0040706b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x104]
push dword [ebp - 0x74]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004107ee
cmp eax, ebx
je 0x4116b5
cmp byte [ebp + 0xb], bl
jne 0x4116ad
cmp eax, 1
je 0x41165c
cmp byte [ebp - 2], bl
je 0x41167e
lea eax, [ebp - 0x40]
push 8
push eax
call fcn.0040d811
push eax
lea ecx, [ebp - 0x70]
call fcn.0040abb8
push dword [ebp - 0x40]
call fcn.0040b047
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x4116ad
cmp dword [ebp - 0x6c], ebx
je 0x4116ad
lea eax, [ebp - 0x40]
push 7
push eax
call fcn.0040d811
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x40]
call fcn.0040b047
pop ecx
push 1
pop ebx
jmp 0x411ab3
lea ecx, [ebp - 0xc4]
call fcn.0040cbcc
lea eax, [ebp - 0xc4]
push eax
call fcn.0040c8fd
push dword [ebp - 0xd0]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4116e6
push 1
pop ebx
jmp 0x411a9f
cmp dword [ebp - 0x88], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x411862
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040bd0e
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x140], 0x3c
mov dword [ebp - 0x13c], 0x140
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], eax
je 0x411742
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x64]
push eax
call fcn.0040bb7a
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040bd0e
mov eax, dword [ebp - 0x54]
push 1
neg eax
sbb eax, eax
pop esi
and eax, dword [ebp - 0x58]
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x120], 0x20
jg 0x411846
cmp byte [ebp + 0xb], bl
jne 0x41179e
push str.Can_not_open_file
push ebx
call fcn.0040e3a2
push dword [ebp - 0x58]
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
pop ecx
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc4]
call fcn.0040b047
push dword [ebp - 0x70]
call fcn.0040b047
push dword [ebp - 0xec]
call fcn.0040b047
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.0040cba7
push dword [ebp - 0xd0]
call fcn.0040b047
push dword [ebp - 0x34]
call fcn.0040b047
push dword [ebp - 0xe0]
call fcn.0040b047
push dword [ebp - 0x80]
call fcn.0040b047
push dword [ebp - 0x4c]
call fcn.0040b047
push dword [ebp - 0x64]
call fcn.0040b047
push dword [ebp - 0x8c]
call fcn.0040b047
push dword [ebp - 0x1c]
call fcn.0040b047
push dword [ebp - 0xac]
call fcn.0040b047
add esp, 0x24
mov eax, esi
jmp 0x411b2f
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x108]
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
jmp 0x411a88
cmp dword [ebp - 0x30], ebx
jne 0x4118b8
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.0040bf43
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040bd0e
push dword [eax]
call fcn.0040d177
push dword [ebp - 0x40]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.0040b047
cmp byte [ebp - 1], bl
pop ecx
je 0x4118b8
cmp byte [ebp + 0xb], bl
jne 0x4119dc
push str.Can_not_find_setup.exe
push ebx
call fcn.0040e3a2
jmp 0x4119dc
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040710e
lea eax, [ebp - 0x28]
push eax
call fcn.0040d5c7
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ff45
push dword [ebp - 0x10]
call fcn.0040b047
push dword [ebp - 0x28]
call fcn.0040b047
pop ecx
pop ecx
push 0x41843c
lea ecx, [ebp - 0x10]
call fcn.0040ab57
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040ff45
push dword [ebp - 0x10]
call fcn.0040b047
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x411943
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00406c34
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040bb7a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x148], 0x44
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x116], bx
mov dword [ebp - 0x114], ebx
call fcn.0040bbb0
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040bd0e
push dword [ebp - 0x40]
call fcn.0040b047
pop ecx
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x148]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411a6f
cmp byte [ebp + 0xb], bl
jne 0x4119d0
push ebx
call fcn.0040e43f
push dword [ebp - 0xb8]
call fcn.0040b047
pop ecx
push dword [ebp - 0xc4]
call esi
push dword [ebp - 0xc4]
call fcn.0040b047
push dword [ebp - 0x70]
call fcn.0040b047
push dword [ebp - 0xec]
call fcn.0040b047
add esp, 0xc
lea ecx, [ebp - 0xd4]
call fcn.0040cba7
push dword [ebp - 0xd0]
call fcn.0040b047
push dword [ebp - 0x34]
call fcn.0040b047
push dword [ebp - 0xe0]
call fcn.0040b047
push dword [ebp - 0x80]
call fcn.0040b047
push dword [ebp - 0x4c]
call fcn.0040b047
push dword [ebp - 0x64]
call fcn.0040b047
push dword [ebp - 0x8c]
call fcn.0040b047
push dword [ebp - 0x1c]
call fcn.0040b047
push dword [ebp - 0xac]
call fcn.0040b047
add esp, 0x24
push 1
pop eax
jmp 0x411b2f
push dword [ebp - 0xf8]
call edi
push dword [ebp - 0xb8]
mov esi, dword [ebp - 0xfc]
call fcn.0040b047
cmp esi, ebx
pop ecx
je 0x411a99
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc4]
call esi
push dword [ebp - 0xc4]
call fcn.0040b047
pop ecx
push dword [ebp - 0x70]
call fcn.0040b047
push dword [ebp - 0xec]
call fcn.0040b047
pop ecx
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.0040cba7
push dword [ebp - 0xd0]
call fcn.0040b047
push dword [ebp - 0x34]
call fcn.0040b047
push dword [ebp - 0xe0]
call fcn.0040b047
add esp, 0xc
push dword [ebp - 0x80]
call fcn.0040b047
push dword [ebp - 0x4c]
call fcn.0040b047
push dword [ebp - 0x64]
call fcn.0040b047
push dword [ebp - 0x8c]
call fcn.0040b047
push dword [ebp - 0x1c]
call fcn.0040b047
push dword [ebp - 0xac]
call fcn.0040b047
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10