Function at 0x40118d
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x318]
mov edi, ebx
sub esp, 0x3ac
push 0x60
pop ecx
rep stosd dword es:[edi], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x180
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
test eax, eax
jne 0x4011c8
mov dword [esp], str.Failed_to_GetTempPathA___n
jmp 0x40121b
mov dword [esp + 4], str.KB884016.exe
mov dword [esp], ebx
call sym._strcat
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], ebx
and dword [esp + 0x18], 0
and dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xchg esi, eax
sub esp, 0x1c
cmp esi, 0xffffffff
jne 0x401227
mov dword [esp], str.Failed_to_create_file_for_extracting_Windows_Installer_3.0_n
call sym._ConsolePrint
xor eax, eax
jmp 0x4013ac
mov dword [esp + 4], str.Extracting_Windows_Installer_3.0...
mov eax, dword [0x5b26004]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [ebp - 0x37c], eax
call eax
push eax
push eax
lea eax, [ebp - 0x370]
mov dword [esp + 0xc], eax
mov eax, 0x5b23468
sub eax, 0x593a380
mov dword [esp + 4], 0x593a380
mov dword [esp + 8], eax
mov dword [esp], esi
and dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x401284
mov dword [esp], str.Failed_to_write_to_file_for_extracting_Windows_Installer_3.0_n
jmp 0x40121b
mov dword [esp], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea edx, [ebp - 0x358]
xor eax, eax
push edi
mov edi, edx
push 0x10
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x198]
mov dword [ebp - 0x35c], 0x44
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._strcpy
mov dword [esp + 4], str.__Q__NORESTART
mov dword [esp], ebx
call sym._strcat
lea eax, [ebp - 0x36c]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x35c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0x20
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
and dword [esp + 0x10], 0
and dword [esp + 0xc], 0
and dword [esp + 8], 0
and dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x401321
mov dword [esp], str.Could_not_start_Windows_Installer_3.0_n
jmp 0x40121b
mov dword [esp], str.Waiting_on_Windows_Installer_3.0_to_finish_installing_n
call sym._ConsolePrint
mov dword [esp + 4], str.Waiting_on_Windows_Installer_3.0_installation_to_complete
mov eax, dword [0x5b26004]
mov dword [esp], eax
mov eax, dword [ebp - 0x37c]
call eax
push eax
push eax
or dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x36c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edx
push edx
mov eax, dword [ebp - 0x36c]
mov dword [esp], eax
call esi
push ecx
mov eax, dword [ebp - 0x368]
mov dword [esp], eax
call esi
push ebx
mov dword [esp], str.Windows_Installer_3.0_has_exited__deleting_...
call sym._ConsolePrint
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
test eax, eax
je 0x4013a0
mov dword [esp], str.Success_n
call sym._ConsolePrint
push 1
pop eax
jmp 0x4013ac
mov dword [esp], str.Fail__n
jmp 0x40121b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret