Function at 0x411a86
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x422118], eax
call fcn.0041248e
push 3
xor ebx, ebx
pop edi
lea ecx, [ebp - 0x98]
push edi
mov byte [0x42211c], al
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.004064fd
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004064fd
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004064fd
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
call fcn.004064fd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.004084c1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040833b
push dword [ebp - 0x40]
call fcn.00408c15
pop ecx
mov dword [ebp - 0x64], ebx
push edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call fcn.004064fd
lea eax, [ebp - 0x64]
push eax
push dword [0x422118]
call fcn.00409880
lea ecx, [ebp - 0x1c]
call fcn.0040877e
lea ecx, [ebp - 0x1c]
call fcn.00408743
push 0x41f4d0
lea ecx, [ebp - 0x40]
mov byte [ebp + 0xb], bl
call fcn.004084c1
mov esi, eax
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040865b
push dword [esi]
push dword [eax]
call fcn.004089f1
push dword [ebp - 0x10]
mov esi, eax
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
pop ecx
cmp esi, ebx
pop ecx
jne 0x411bcf
lea eax, [ebp - 0x10]
push 2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 1
call fcn.0040858b
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408522
push dword [ebp - 0x10]
call fcn.00408c15
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040877e
lea ecx, [ebp - 0x1c]
call fcn.00408743
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call fcn.00408ddd
lea eax, [ebp - 0x58]
push eax
push str.___InstallEnd__
push str.___Install__UTF_8_
push dword [ebp - 0x64]
call fcn.00412557
test al, al
jne 0x411c13
cmp byte [ebp + 0xb], bl
jne 0x411c0b
push 0x41f4bc
push ebx
call fcn.0040c9cf
push 1
pop ebx
jmp 0x41244f
push 0x41f4b4
lea ecx, [ebp - 0xd0]
call fcn.004084c1
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004064fd
cmp dword [ebp - 0x54], ebx
mov byte [ebp - 0xd4], 1
je 0x411f35
lea ecx, [ebp - 0xac]
call fcn.00402373
lea eax, [ebp - 0xac]
mov edi, 0x41a8fc
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0xac], edi
call fcn.00408e2b
test al, al
jne 0x411c87
cmp byte [ebp + 0xb], bl
jne 0x411c7f
push 0x41f4a8
push ebx
call fcn.0040c9cf
push 1
pop ebx
jmp 0x411db1
push str.Title
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040917e
push dword [ebp - 0x10]
call fcn.00408c15
lea ecx, [ebp - 0x10]
mov dword [esp], str.BeginPrompt
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040917e
push dword [ebp - 0x10]
call fcn.00408c15
lea ecx, [ebp - 0x10]
mov dword [esp], 0x41f470
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040917e
push dword [ebp - 0x10]
call fcn.00408c15
mov dword [esp], 0x41f468
push dword [ebp - 0xe0]
call fcn.004089f1
test eax, eax
jne 0x411d25
mov byte [ebp - 0xd4], bl
push str.Directory
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00409148
push dword [ebp - 0x10]
mov esi, eax
call fcn.00408c15
cmp esi, ebx
pop ecx
jl 0x411d69
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0xd0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00408522
cmp dword [ebp - 0x24], ebx
je 0x411e1b
cmp byte [ebp + 0xb], bl
jne 0x411e1b
push 0x24
push dword [ebp - 0x40]
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x411e1b
push dword [ebp - 0xe0]
call fcn.00408c15
push dword [ebp - 0x28]
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
add esp, 0xc
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], edi
call fcn.00408a68
lea ecx, [ebp - 0xac]
call fcn.00408a3f
push dword [ebp - 0x34]
call fcn.00408c15
push dword [ebp - 0xd0]
call fcn.00408c15
push dword [ebp - 0x58]
call fcn.00408c15
push dword [ebp - 0x64]
call fcn.00408c15
push dword [ebp - 0x70]
call fcn.00408c15
push dword [ebp - 0x4c]
call fcn.00408c15
push dword [ebp - 0x1c]
call fcn.00408c15
push dword [ebp - 0x98]
call fcn.00408c15
add esp, 0x20
jmp 0x412485
push str.RunProgram
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0040917e
push eax
lea ecx, [ebp - 0x34]
call fcn.00408522
push dword [ebp - 0xec]
call fcn.00408c15
push dword [ebp - 0x10]
call fcn.00408c15
pop ecx
pop ecx
push str.ExecuteFile
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0040917e
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408522
push dword [ebp - 0xec]
call fcn.00408c15
push dword [ebp - 0x10]
call fcn.00408c15
pop ecx
pop ecx
push str.ExecuteParameters
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040917e
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0040a838
push eax
lea ecx, [ebp - 0x70]
call fcn.00408522
push dword [ebp - 0xec]
call fcn.00408c15
push dword [ebp - 0xb8]
call fcn.00408c15
push dword [ebp - 0x10]
call fcn.00408c15
push dword [ebp - 0xe0]
call fcn.00408c15
push dword [ebp - 0x28]
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
add esp, 0x18
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], edi
call fcn.00408a68
lea ecx, [ebp - 0xac]
call fcn.00408a3f
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x8c], bl
call fcn.0040a651
push dword [0x41f358]
lea ecx, [ebp - 0x8c]
call fcn.0040a611
test al, al
jne 0x411f73
cmp byte [ebp + 0xb], bl
jne 0x411f6b
push 0x41f3e8
push ebx
call fcn.0040c9cf
push 1
pop ebx
jmp 0x412423
push 0x1c
call fcn.00408bef
mov esi, eax
pop ecx
cmp esi, ebx
je 0x411f96
lea ecx, [esi + 8]
mov dword [esi + 4], ebx
call fcn.004126e3
mov dword [esi], 0x41a8f0
mov edi, esi
jmp 0x411f98
xor edi, edi
cmp edi, ebx
je 0x411fa2
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, edi
call fcn.0040d2de
test eax, eax
je 0x411fbd
push 0x41f3d8
push ebx
call fcn.0040c9cf
jmp 0x4120c3
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00409adf
push 3
lea ecx, [ebp - 0x28]
mov byte [ebp - 1], bl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004064fd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc4]
push dword [ebp - 0xd4]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.00411107
cmp eax, ebx
je 0x41207d
cmp byte [ebp + 0xb], bl
jne 0x412075
cmp eax, 1
je 0x412018
cmp byte [ebp - 1], bl
je 0x412040
lea eax, [ebp - 0xb8]
push 8
push eax
call fcn.0040b416
push eax
lea ecx, [ebp - 0x28]
call fcn.00408522
push dword [ebp - 0xb8]
call fcn.00408c15
pop ecx
mov eax, 0x80004005
cmp eax, 0x80004004
je 0x412075
cmp dword [ebp - 0x24], ebx
je 0x412075
lea eax, [ebp - 0xb8]
push 7
push eax
call fcn.0040b416
mov eax, dword [eax]
push 0x10
push eax
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xb8]
call fcn.00408c15
pop ecx
push dword [ebp - 0x28]
jmp 0x412342
push dword [ebp - 0x28]
call fcn.00408c15
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.0040a651
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a399
push dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x4120d6
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00408c15
push dword [ebp - 0xc4]
call fcn.00408c15
pop ecx
pop ecx
cmp edi, ebx
je 0x411f6b
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x411f6b
cmp dword [ebp - 0x48], ebx
je 0x4121b4
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00409719
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x12c], 0x3c
mov dword [ebp - 0x128], 0x140
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], eax
je 0x412126
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push eax
call fcn.00409593
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409719
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x114], ebx
neg eax
sbb eax, eax
mov dword [ebp - 0x110], 1
and eax, dword [ebp - 0x28]
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [ebp - 0x10c], 0x20
ja 0x412195
cmp byte [ebp + 0xb], bl
jne 0x41217f
push 0x41f3c8
push ebx
call fcn.0040c9cf
push dword [ebp - 0x28]
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
pop ecx
jmp 0x412339
mov eax, dword [ebp - 0xf4]
push dword [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
pop ecx
jmp 0x4123e5
cmp dword [ebp - 0x30], ebx
jne 0x412210
push str.setup.exe
lea ecx, [ebp - 0x34]
call fcn.0040994e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00409719
push dword [eax]
call fcn.0040ac67
push dword [ebp - 0xb8]
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
call fcn.00408c15
cmp byte [ebp - 1], bl
pop ecx
je 0x412210
cmp byte [ebp + 0xb], bl
jne 0x41233a
push str.gb0R
push ebx
call fcn.0040c9cf
jmp 0x41233a
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x40]
push eax
call fcn.00406551
lea eax, [ebp - 0x40]
push eax
call fcn.0040b0f8
push str.__T_
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e7f0
push dword [ebp - 0x10]
call fcn.00408c15
push dword [ebp - 0x40]
call fcn.00408c15
pop ecx
pop ecx
push 0x41f384
lea ecx, [ebp - 0x10]
call fcn.004084c1
lea eax, [ebp - 0xc4]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e7f0
push dword [ebp - 0x10]
call fcn.00408c15
cmp dword [ebp - 0x18], ebx
pop ecx
je 0x41229b
push 0x20
lea ecx, [ebp - 0x34]
call fcn.00408560
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push eax
call fcn.00409593
lea eax, [ebp - 0x34]
mov dword [ebp - 0x134], 0x44
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x108], ebx
mov word [ebp - 0x102], bx
mov dword [ebp - 0x100], ebx
call fcn.0040a838
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00409719
push dword [ebp - 0xb8]
call fcn.00408c15
pop ecx
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xe0]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4123c5
cmp byte [ebp + 0xb], bl
jne 0x41232e
push ebx
call fcn.0040ca6c
push dword [ebp - 0xe0]
call fcn.00408c15
pop ecx
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00408c15
push dword [ebp - 0xc4]
call fcn.00408c15
pop ecx
cmp edi, ebx
pop ecx
je 0x41235e
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040a62c
push dword [ebp - 0x88]
call fcn.00408c15
push dword [ebp - 0x34]
call fcn.00408c15
push dword [ebp - 0xd0]
call fcn.00408c15
push dword [ebp - 0x58]
call fcn.00408c15
push dword [ebp - 0x64]
call fcn.00408c15
push dword [ebp - 0x70]
call fcn.00408c15
push dword [ebp - 0x4c]
call fcn.00408c15
push dword [ebp - 0x1c]
call fcn.00408c15
push dword [ebp - 0x98]
call fcn.00408c15
add esp, 0x24
push 1
pop eax
jmp 0x412487
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xf0]
push dword [ebp - 0xe0]
mov dword [ebp + 8], eax
call fcn.00408c15
cmp dword [ebp + 8], ebx
pop ecx
je 0x4123ff
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x7c]
call fcn.00408c15
push dword [ebp - 0xc4]
call fcn.00408c15
pop ecx
cmp edi, ebx
pop ecx
je 0x412423
mov eax, dword [edi]
push edi
call dword [eax + 8]
lea ecx, [ebp - 0x8c]
call fcn.0040a62c
push dword [ebp - 0x88]
call fcn.00408c15
push dword [ebp - 0x34]
call fcn.00408c15
push dword [ebp - 0xd0]
call fcn.00408c15
add esp, 0xc
push dword [ebp - 0x58]
call fcn.00408c15
push dword [ebp - 0x64]
call fcn.00408c15
push dword [ebp - 0x70]
call fcn.00408c15
push dword [ebp - 0x4c]
call fcn.00408c15
push dword [ebp - 0x1c]
call fcn.00408c15
push dword [ebp - 0x98]
call fcn.00408c15
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10