Function at 0x4016f0
Capabilities:
Create process on windows
Get common file path
Shutdown system

Disassembly:
sub esp, 0x268
mov eax, dword [0x408030]
push ebx
push esi
push edi
mov dword [esp + 0x270], eax
call fcn.00401000
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x280]
mov edx, 0x408700
mov dword [esp + 0x1c], 0x44
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401730
lea eax, [esp + 0x60]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x5f], 0x5c
je 0x401766
mov byte [esp + eax + 0x60], 0x5c
mov byte [esp + eax + 0x61], 0
call fcn.00401160
mov ebx, eax
cmp ebx, 0x22
je 0x4018d9
cmp ebx, 0x24
je 0x4018d9
cmp ebx, 0x18
je 0x4018d9
call fcn.00401620
test eax, eax
je 0x4018d9
mov edx, dword [esp + 0x278]
push 0
push 0x4012a0
push 0
push 0x65
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, eax
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x4017c9
push 0x408638
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, ebx
and esi, 0x20
push str._r:n__q:a
push str.InstMsi.EXE
je 0x4017fc
push str.MSINT
lea eax, [esp + 0x6c]
push eax
push str._s_s_s__s
lea ecx, [esp + 0x17c]
push ecx
jmp 0x401813
push str.MSI9X
lea edx, [esp + 0x6c]
push edx
push str._s_s_s__s
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x188]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40194f
mov ecx, dword [esp + 0xc]
push ebp
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
cmp esi, 0x20
pop ebp
jne 0x40187b
push 0
lea ecx, [esp + 0x64]
push ecx
jmp 0x401895
test bl, 0x10
je 0x40189d
cmp ebx, 0x11
jne 0x40188e
push 1
lea edx, [esp + 0x64]
push edx
jmp 0x401895
push 0
lea eax, [esp + 0x64]
push eax
call fcn.004012c0
add esp, 8
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp esi, 0x20
je 0x4018d9
cmp ebx, 0x11
je 0x4018d9
push 0x40
push 0x408370
push 0x408308
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x60]
push ecx
call fcn.004013e0
add esp, 4
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edi, str._admininstall
mov esi, 0x408700
mov ecx, 0xe
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
lea ecx, [esp + 0x168]
lea eax, [esp + 0x60]
jne 0x40190b
push 0x4082a0
push eax
push str.MSIEXEC.EXE
push str._s__a___sinstall_s_
jmp 0x40191b
lea edx, [esp + 0x60]
push edx
push str.Setup.exe
push eax
push str._sInstall_s__sInstall_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x188]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401963
push 0x10
push 0x4083d8
push 0x408440
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x270]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.004019c1
add esp, 0x268
ret 0x10