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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x30], ebx
call fcn.00410d49
test eax, eax
jne 0x410e13
mov edx, 0xff
lea edi, [ebp - 0x62a]
mov ecx, edx
mov word [ebp - 0x62c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xa2a]
mov word [ebp - 0xa2c], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
stosw word es:[edi], ax
mov edi, 0x200
lea eax, [ebp - 0x62c]
push edi
push eax
push 0x46
push ebx
call esi
lea eax, [ebp - 0xa2c]
push edi
push eax
push 0x47
push ebx
call esi
lea eax, [ebp - 0x62c]
push 0x10
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
jmp 0x411843
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], 0x94
mov dword [0x418b80], eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x410e3a
xor al, al
jmp 0x410e44
cmp dword [ebp - 0x21c], 2
sete al
mov byte [0x418b84], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0xf
lea ecx, [ebp - 0xcc]
pop edi
mov dword [ebp - 0xcc], ebx
push edi
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
call fcn.00406f8f
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00406f8f
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.00406f8f
push edi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
call fcn.00406f8f
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040a86b
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
mov dword [ebp - 0x7c], ebx
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.00406f8f
lea eax, [ebp - 0x7c]
push eax
push dword [0x418b80]
call fcn.0040bcd0
lea ecx, [ebp - 0x2c]
call fcn.0040ac18
lea ecx, [ebp - 0x2c]
call fcn.0040abdd
push 0x41870c
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], bl
call fcn.0040a9f1
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab44
push dword [esi]
push dword [eax]
call fcn.0040af63
push dword [ebp - 0x10]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
pop ecx
je 0x410f89
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp + 0xb], 1
call fcn.0040aa74
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040aa36
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.0040ac18
lea ecx, [ebp - 0x2c]
call fcn.0040abdd
push 0x418704
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x34], 1
mov byte [ebp - 2], bl
call fcn.0040a9f1
mov esi, eax
lea eax, [ebp - 0x4c]
push 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab44
push dword [esi]
push dword [eax]
call fcn.0040af63
test eax, eax
je 0x41105c
push str._ini
lea ecx, [ebp - 0x20]
call fcn.0040a9f1
mov esi, eax
lea eax, [ebp - 0x10]
push 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab44
push dword [esi]
push dword [eax]
call fcn.0040af63
push dword [ebp - 0x10]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jne 0x41105c
push 0x4186f0
lea ecx, [ebp - 0xc0]
call fcn.0040a9f1
mov esi, eax
lea eax, [ebp - 0xb4]
push 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab44
push dword [esi]
push dword [eax]
call fcn.0040af63
push dword [ebp - 0xb4]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
push dword [ebp - 0xc0]
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
pop ecx
mov byte [ebp - 1], bl
je 0x411060
mov byte [ebp - 1], 1
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_free
push dword [ebp - 0xa8]
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jne 0x4110c8
push str._extractdir
lea ecx, [ebp - 0x20]
call fcn.0040a9f1
mov esi, eax
lea eax, [ebp - 0x10]
push 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ab44
push dword [esi]
push dword [eax]
call fcn.0040af63
push dword [ebp - 0x10]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
pop ecx
je 0x4110cb
mov byte [ebp + 0xb], 1
mov byte [ebp - 2], 1
mov byte [ebp - 0x34], bl
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.0040aff5
lea eax, [ebp - 0x64]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x7c]
call fcn.0041187a
test al, al
jne 0x41110f
cmp byte [ebp + 0xb], bl
jne 0x411107
push str.Cant_load_config_info
push ebx
call fcn.0040e162
xor ebx, ebx
inc ebx
jmp 0x411808
push 0x41869c
lea ecx, [ebp - 0xec]
call fcn.0040a9f1
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call fcn.00406f8f
cmp dword [ebp - 0x60], ebx
je 0x4113d4
lea ecx, [ebp - 0x9c]
call fcn.00411a3a
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040b1d2
test al, al
jne 0x41117c
cmp byte [ebp + 0xb], bl
jne 0x411169
push str.Config_failed
push ebx
call fcn.0040e162
lea ecx, [ebp - 0x9c]
call fcn.00411a55
xor ebx, ebx
inc ebx
jmp 0x4117f3
push str.Title
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040b507
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0040b507
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
lea ecx, [ebp - 0x10]
mov dword [esp], 0x418648
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.0040b507
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
lea ecx, [ebp - 0x10]
mov dword [esp], 0x418640
call fcn.0040a9f1
push dword [ebp - 0x10]
push dword [ebp - 0xc0]
call fcn.0040af63
push dword [ebp - 0x10]
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
je 0x41123b
mov byte [ebp - 0x34], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040b4d1
push dword [ebp - 0x10]
mov esi, eax
call sub.MSVCRT.dll_free
cmp esi, ebx
pop ecx
jl 0x41127f
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0xec]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040aa36
cmp dword [ebp - 0xa4], ebx
je 0x4112da
cmp byte [ebp + 0xb], bl
jne 0x4112da
push 0x24
push dword [ebp - 0xb4]
push dword [ebp - 0xa8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4112da
push dword [ebp - 0xc0]
call sub.MSVCRT.dll_free
push dword [ebp - 0xa8]
call sub.MSVCRT.dll_free
push dword [ebp - 0xb4]
call sub.MSVCRT.dll_free
add esp, 0xc
lea ecx, [ebp - 0x9c]
call fcn.00411a55
jmp 0x4117f3
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040b507
push eax
lea ecx, [ebp - 0x40]
call fcn.0040aa36
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040b507
push eax
lea ecx, [ebp - 0x70]
call fcn.0040aa36
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.0040a9f1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040b507
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040ba0b
push eax
lea ecx, [ebp - 0x88]
call fcn.0040aa36
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_free
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
push dword [ebp - 0xc0]
call sub.MSVCRT.dll_free
push dword [ebp - 0xa8]
call sub.MSVCRT.dll_free
push dword [ebp - 0xb4]
call sub.MSVCRT.dll_free
add esp, 0x18
lea ecx, [ebp - 0x9c]
call fcn.00411a55
lea ecx, [ebp - 0xfc]
call fcn.0040c95d
cmp byte [ebp - 2], bl
jne 0x411411
push dword [0x41840c]
lea ecx, [ebp - 0xfc]
call fcn.0040c98d
test al, al
jne 0x411427
cmp byte [ebp + 0xb], bl
jne 0x411409
push str.Can_not_create_temp_folder_archive
push ebx
call fcn.0040e162
xor ebx, ebx
inc ebx
jmp 0x4117e8
xor esi, esi
lea eax, [ebp - 0x20]
inc esi
push 0xc
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.0040aa74
jmp 0x411441
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x30], 2
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040bf0b
xor esi, esi
inc esi
push eax
lea ecx, [ebp - 0xd8]
call fcn.00407032
test byte [ebp - 0x30], 2
je 0x411460
push dword [ebp - 0x10]
and dword [ebp - 0x30], 0xfffffffd
call sub.MSVCRT.dll_free
pop ecx
test byte [ebp - 0x30], 1
je 0x41146f
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
pop ecx
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe0], 0x414904
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00406f8f
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0xe0]
push dword [ebp - 0x34]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041046f
cmp eax, ebx
je 0x41151f
cmp byte [ebp + 0xb], bl
jne 0x411518
cmp eax, esi
je 0x4114c8
cmp byte [ebp - 0x11], bl
je 0x4114ea
lea eax, [ebp - 0x10]
push 8
push eax
call fcn.0040d606
push eax
lea ecx, [ebp - 0x58]
call fcn.0040aa36
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x411518
cmp dword [ebp - 0x54], ebx
je 0x411518
lea eax, [ebp - 0x10]
push 7
push eax
call fcn.0040d606
push 0x10
push dword [eax]
push dword [ebp - 0x58]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
mov ebx, esi
jmp 0x4117d3
cmp byte [ebp - 2], bl
jne 0x4117d3
lea ecx, [ebp - 0x154]
call fcn.004119e9
push dword [ebp - 0xf8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
test eax, eax
jne 0x41154a
mov ebx, esi
jmp 0x4117c8
cmp dword [ebp - 0x6c], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x41162d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040bb69
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x138], 0x3c
mov dword [ebp - 0x134], 0x140
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], eax
je 0x4115a3
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x88]
push eax
call fcn.0040b9d5
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040bb69
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x120], ebx
neg eax
sbb eax, eax
mov dword [ebp - 0x11c], esi
and eax, dword [ebp - 0x4c]
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x118], 0x20
jg 0x411611
cmp byte [ebp + 0xb], bl
jne 0x4115fb
push str.Can_not_open_file
push ebx
call fcn.0040e162
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x41179b
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x100]
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x4117b7
cmp dword [ebp - 0x3c], ebx
jne 0x411685
push str.setup.exe
lea ecx, [ebp - 0x40]
call fcn.0040bd9e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040bb69
push dword [eax]
call fcn.0040cf76
push dword [ebp - 0x20]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call sub.MSVCRT.dll_free
cmp byte [ebp - 1], bl
pop ecx
je 0x411682
cmp byte [ebp + 0xb], bl
jne 0x41167a
push str.Can_not_find_setup.exe
push ebx
call fcn.0040e162
xor ebx, ebx
inc ebx
jmp 0x4117c8
xor esi, esi
inc esi
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0x20]
push eax
call fcn.00407032
lea eax, [ebp - 0x20]
push eax
call fcn.0040d3bc
push str.__T_
lea ecx, [ebp - 0x4c]
call fcn.0040a9f1
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040fc57
push dword [ebp - 0x4c]
call sub.MSVCRT.dll_free
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
pop ecx
pop ecx
push 0x418514
lea ecx, [ebp - 0x20]
call fcn.0040a9f1
lea eax, [ebp - 0xd8]
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040fc57
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
cmp dword [ebp - 0x28], ebx
pop ecx
je 0x411710
push 0x20
lea ecx, [ebp - 0x40]
call fcn.00406b58
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040b9d5
lea eax, [ebp - 0x40]
mov dword [ebp - 0x198], 0x44
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x16c], ebx
mov word [ebp - 0x166], bx
mov dword [ebp - 0x164], ebx
call fcn.0040ba0b
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040bb69
push dword [ebp - 0x20]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x198]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4117a1
cmp byte [ebp + 0xb], bl
jne 0x411793
push ebx
call fcn.0040e1ff
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
jmp 0x411543
push dword [ebp - 0x144]
call edi
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x148]
call sub.MSVCRT.dll_free
cmp esi, ebx
pop ecx
je 0x4117c8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call edi
lea ecx, [ebp - 0x154]
call fcn.00411a25
push dword [ebp - 0x58]
call sub.MSVCRT.dll_free
push dword [ebp - 0xd8]
call sub.MSVCRT.dll_free
pop ecx
pop ecx
lea ecx, [ebp - 0xfc]
call fcn.0041184a
push dword [ebp - 0x40]
call sub.MSVCRT.dll_free
push dword [ebp - 0xec]
call sub.MSVCRT.dll_free
pop ecx
pop ecx
push dword [ebp - 0x64]
call sub.MSVCRT.dll_free
push dword [ebp - 0x7c]
call sub.MSVCRT.dll_free
push dword [ebp - 0x88]
call sub.MSVCRT.dll_free
push dword [ebp - 0x70]
call sub.MSVCRT.dll_free
push dword [ebp - 0x2c]
call sub.MSVCRT.dll_free
push dword [ebp - 0xcc]
call sub.MSVCRT.dll_free
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10