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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [ebp + 8]
push ebx
mov dword [0x4220d8], eax
push esi
lea eax, [ebp - 0x1cc]
push edi
push eax
mov dword [ebp - 0x1cc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
jne 0x4114f9
xor al, al
jmp 0x411503
cmp dword [ebp - 0x1bc], 2
sete al
mov byte [0x4220dc], al
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 3
lea ecx, [ebp - 0x9c]
pop edi
mov dword [ebp - 0x9c], ebx
push edi
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
call fcn.0040651a
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040651a
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.0040651a
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.0040651a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.004084be
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00408338
push dword [ebp - 0x44]
call fcn.00408c1b
pop ecx
mov dword [ebp - 0x68], ebx
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call fcn.0040651a
lea eax, [ebp - 0x68]
push eax
push dword [0x4220d8]
call fcn.0040982d
lea ecx, [ebp - 0x20]
call fcn.0040877b
lea ecx, [ebp - 0x20]
call fcn.00408740
push 0x41f4d4
lea ecx, [ebp - 0x44]
mov byte [ebp + 0xb], bl
call fcn.004084be
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
call fcn.00408658
push dword [esi]
push dword [eax]
call fcn.004089ee
push dword [ebp - 0x10]
mov esi, eax
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
pop ecx
cmp esi, ebx
pop ecx
jne 0x411637
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], 1
call fcn.00408588
push eax
lea ecx, [ebp - 0x20]
call fcn.0040851f
push dword [ebp - 0x10]
call fcn.00408c1b
pop ecx
lea ecx, [ebp - 0x20]
call fcn.0040877b
lea ecx, [ebp - 0x20]
call fcn.00408740
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.00408de3
lea eax, [ebp - 0x5c]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x68]
call fcn.00412015
test al, al
jne 0x41167b
cmp byte [ebp + 0xb], bl
jne 0x411673
push 0x41f4c0
push ebx
call fcn.0040c817
push 1
pop ebx
jmp 0x411f76
push 0x41f4b8
lea ecx, [ebp - 0xd4]
call fcn.004084be
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040651a
cmp dword [ebp - 0x58], ebx
mov byte [ebp - 0xd8], 1
je 0x4119a4
lea ecx, [ebp - 0xb0]
call fcn.004023ae
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x41a8ec
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00408e31
test al, al
jne 0x4116ee
cmp byte [ebp + 0xb], bl
jne 0x4116e6
push 0x41f4ac
push ebx
call fcn.0040c817
push 1
pop ebx
jmp 0x411818
push str.Title
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040916e
push dword [ebp - 0x10]
call fcn.00408c1b
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040916e
push dword [ebp - 0x10]
call fcn.00408c1b
lea ecx, [ebp - 0x10]
mov dword [esp], 0x41f474
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040916e
push dword [ebp - 0x10]
call fcn.00408c1b
mov dword [esp], 0x41f46c
push dword [ebp - 0xe4]
call fcn.004089ee
test eax, eax
jne 0x41178c
mov byte [ebp - 0xd8], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00409138
push dword [ebp - 0x10]
mov esi, eax
call fcn.00408c1b
cmp esi, ebx
pop ecx
jl 0x4117d0
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xd4]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.0040851f
cmp dword [ebp - 0x28], ebx
je 0x411886
cmp byte [ebp + 0xb], bl
jne 0x411886
push 0x24
push dword [ebp - 0x44]
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x411886
push dword [ebp - 0xe4]
call fcn.00408c1b
push dword [ebp - 0x2c]
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
add esp, 0xc
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x41a8ec
call fcn.00408a6e
lea ecx, [ebp - 0xb0]
call fcn.00408a45
push dword [ebp - 0x38]
call fcn.00408c1b
push dword [ebp - 0xd4]
call fcn.00408c1b
push dword [ebp - 0x5c]
call fcn.00408c1b
push dword [ebp - 0x68]
call fcn.00408c1b
push dword [ebp - 0x74]
call fcn.00408c1b
push dword [ebp - 0x50]
call fcn.00408c1b
push dword [ebp - 0x20]
call fcn.00408c1b
push dword [ebp - 0x9c]
call fcn.00408c1b
add esp, 0x20
jmp 0x411fac
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040916e
push eax
lea ecx, [ebp - 0x38]
call fcn.0040851f
push dword [ebp - 0xf0]
call fcn.00408c1b
push dword [ebp - 0x10]
call fcn.00408c1b
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040916e
push eax
lea ecx, [ebp - 0x50]
call fcn.0040851f
push dword [ebp - 0xf0]
call fcn.00408c1b
push dword [ebp - 0x10]
call fcn.00408c1b
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040916e
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0040a7fb
push eax
lea ecx, [ebp - 0x74]
call fcn.0040851f
push dword [ebp - 0xf0]
call fcn.00408c1b
push dword [ebp - 0xbc]
call fcn.00408c1b
push dword [ebp - 0x10]
call fcn.00408c1b
push dword [ebp - 0xe4]
call fcn.00408c1b
push dword [ebp - 0x2c]
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
add esp, 0x18
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x41a8ec
call fcn.00408a6e
lea ecx, [ebp - 0xb0]
call fcn.00408a45
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x90], bl
call fcn.0040a614
push dword [0x41f360]
lea ecx, [ebp - 0x90]
call fcn.0040a5d4
test al, al
jne 0x4119e2
cmp byte [ebp + 0xb], bl
jne 0x4119da
push 0x41f3f0
push ebx
call fcn.0040c817
push 1
pop ebx
jmp 0x411f4a
push 0x1c
call fcn.00408bf5
mov esi, eax
pop ecx
cmp esi, ebx
je 0x411a06
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.00412187
mov dword [esi], 0x41a8e0
mov dword [ebp - 0x14], esi
jmp 0x411a0b
mov dword [ebp - 0x14], ebx
mov esi, ebx
cmp esi, ebx
je 0x411a15
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, esi
call fcn.0040d22b
test eax, eax
je 0x411a37
push 0x41f3e0
push ebx
call fcn.0040c817
cmp esi, ebx
je 0x4119da
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4119da
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00409a8c
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 1], bl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.0040651a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc8]
push dword [ebp - 0xd8]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.00410c13
cmp eax, ebx
je 0x411b1a
cmp byte [ebp + 0xb], bl
jne 0x411af2
cmp eax, 1
je 0x411a95
cmp byte [ebp - 1], bl
je 0x411abd
lea eax, [ebp - 0xbc]
push 8
push eax
call fcn.0040b381
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040851f
push dword [ebp - 0xbc]
call fcn.00408c1b
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x411af2
cmp dword [ebp - 0x28], ebx
je 0x411af2
lea eax, [ebp - 0xbc]
push 7
push eax
call fcn.0040b381
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xbc]
call fcn.00408c1b
pop ecx
push dword [ebp - 0x2c]
call fcn.00408c1b
push dword [ebp - 0xc8]
call fcn.00408c1b
pop ecx
cmp esi, ebx
pop ecx
je 0x411e8a
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x411e8a
push dword [ebp - 0x2c]
call fcn.00408c1b
pop ecx
lea ecx, [ebp - 0x80]
call fcn.0040a614
lea eax, [ebp - 0x80]
push eax
call fcn.0040a347
push dword [ebp - 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x411b76
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.00408c1b
push dword [ebp - 0xc8]
call fcn.00408c1b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x4119da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4119da
cmp dword [ebp - 0x4c], ebx
je 0x411cdd
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004096c6
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x130], 0x3c
mov dword [ebp - 0x12c], 0x140
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], eax
je 0x411bc6
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x74]
push eax
call fcn.00409583
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004096c6
mov eax, dword [ebp - 0x28]
push 1
neg eax
sbb eax, eax
pop edi
and eax, dword [ebp - 0x2c]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x110], 0x20
ja 0x411cc1
cmp byte [ebp + 0xb], bl
jne 0x411c22
push 0x41f3d0
push ebx
call fcn.0040c817
push dword [ebp - 0x2c]
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
pop ecx
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.00408c1b
push dword [ebp - 0xc8]
call fcn.00408c1b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x411c5b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.0040a5ef
push dword [ebp - 0x8c]
call fcn.00408c1b
push dword [ebp - 0x38]
call fcn.00408c1b
push dword [ebp - 0xd4]
call fcn.00408c1b
push dword [ebp - 0x5c]
call fcn.00408c1b
push dword [ebp - 0x68]
call fcn.00408c1b
push dword [ebp - 0x74]
call fcn.00408c1b
push dword [ebp - 0x50]
call fcn.00408c1b
push dword [ebp - 0x20]
call fcn.00408c1b
push dword [ebp - 0x9c]
call fcn.00408c1b
add esp, 0x24
mov eax, edi
jmp 0x411fae
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0xf8]
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
pop ecx
jmp 0x411f0e
cmp dword [ebp - 0x34], ebx
jne 0x411d39
push str.setup.exe
lea ecx, [ebp - 0x38]
call fcn.004098fb
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.004096c6
push dword [eax]
call fcn.0040ac37
push dword [ebp - 0xbc]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.00408c1b
cmp byte [ebp - 1], bl
pop ecx
je 0x411d39
cmp byte [ebp + 0xb], bl
jne 0x411e63
push str.gb0R
push ebx
call fcn.0040c817
jmp 0x411e63
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x44]
push eax
call fcn.0040656e
lea eax, [ebp - 0x44]
push eax
call fcn.0040b063
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e6ea
push dword [ebp - 0x10]
call fcn.00408c1b
push dword [ebp - 0x44]
call fcn.00408c1b
pop ecx
pop ecx
push 0x41f38c
lea ecx, [ebp - 0x10]
call fcn.004084be
lea eax, [ebp - 0xc8]
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e6ea
push dword [ebp - 0x10]
call fcn.00408c1b
cmp dword [ebp - 0x1c], ebx
pop ecx
je 0x411dc4
push 0x20
lea ecx, [ebp - 0x38]
call fcn.0040855d
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.00409583
lea eax, [ebp - 0x38]
mov dword [ebp - 0x138], 0x44
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x10c], ebx
mov word [ebp - 0x106], bx
mov dword [ebp - 0x104], ebx
call fcn.0040a7fb
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004096c6
push dword [ebp - 0xbc]
call fcn.00408c1b
pop ecx
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x138]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xe4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411ef1
cmp byte [ebp + 0xb], bl
jne 0x411e57
push ebx
call fcn.0040c8b4
push dword [ebp - 0xe4]
call fcn.00408c1b
pop ecx
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.00408c1b
push dword [ebp - 0xc8]
call fcn.00408c1b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x411e8a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.0040a5ef
push dword [ebp - 0x8c]
call fcn.00408c1b
push dword [ebp - 0x38]
call fcn.00408c1b
push dword [ebp - 0xd4]
call fcn.00408c1b
push dword [ebp - 0x5c]
call fcn.00408c1b
push dword [ebp - 0x68]
call fcn.00408c1b
push dword [ebp - 0x74]
call fcn.00408c1b
push dword [ebp - 0x50]
call fcn.00408c1b
push dword [ebp - 0x20]
call fcn.00408c1b
push dword [ebp - 0x9c]
call fcn.00408c1b
add esp, 0x24
push 1
pop eax
jmp 0x411fae
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe4]
mov edi, dword [ebp - 0xf4]
call fcn.00408c1b
cmp edi, ebx
pop ecx
je 0x411f23
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x80]
call esi
push dword [ebp - 0x80]
call fcn.00408c1b
push dword [ebp - 0xc8]
call fcn.00408c1b
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, ebx
pop ecx
je 0x411f4a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x90]
call fcn.0040a5ef
push dword [ebp - 0x8c]
call fcn.00408c1b
push dword [ebp - 0x38]
call fcn.00408c1b
push dword [ebp - 0xd4]
call fcn.00408c1b
add esp, 0xc
push dword [ebp - 0x5c]
call fcn.00408c1b
push dword [ebp - 0x68]
call fcn.00408c1b
push dword [ebp - 0x74]
call fcn.00408c1b
push dword [ebp - 0x50]
call fcn.00408c1b
push dword [ebp - 0x20]
call fcn.00408c1b
push dword [ebp - 0x9c]
call fcn.00408c1b
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10