Function at 0x4048da
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cef7
mov eax, dword fs:[0]
push eax
mov eax, 0x4890
call fcn.00523bf0
mov eax, dword [0x5a5fb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4840], ebx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00405809
mov dword [ebp - 0x4834], eax
xor eax, eax
push 0x3ffe
mov word [ebp - 0x4814], ax
lea eax, [ebp - 0x4812]
push edi
push eax
call fcn.005237f0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
sub ecx, eax
sar ecx, 3
add esp, 0xc
mov dword [ebp - 0x4818], edi
test ecx, ecx
je 0x4049c6
xor ecx, ecx
mov esi, ecx
shl esi, 3
add eax, esi
mov ecx, dword [eax]
mov ecx, dword [ecx - 0xc]
add ecx, ecx
push ecx
mov ecx, eax
call fcn.004018a8
push eax
lea eax, [ebp + edi*2 - 0x4814]
push 0x2000
push eax
call fcn.0051f4fe
mov eax, dword [ebx + 0x3c]
mov eax, dword [esi + eax]
add edi, dword [eax - 0xc]
push 4
push 0x57ec30
lea eax, [ebp + edi*2 - 0x4814]
push 0x2000
push eax
call fcn.0051f4fe
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
add esp, 0x20
add edi, 2
inc dword [ebp - 0x4818]
movzx ecx, word [ebp - 0x4818]
sub edx, eax
sar edx, 3
cmp ecx, edx
jb 0x404959
lea eax, [ebp - 0x484c]
push eax
call fcn.00520c51
lea eax, [ebp - 0x4814]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049dc
push dword [ebp - 0x484c]
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebp - 0x4830], eax
lea eax, [ebp - 0x4814]
lea ecx, [ebp - 0x4828]
mov dword [ebp - 0x482c], eax
call fcn.00405dfd
lea esi, [ebp - 0x4828]
mov byte [ebp - 4], 1
call fcn.00405f66
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x404a6a
cmp dword [ebp - 0x4830], esi
jle 0x404a6a
push 4
lea eax, [ebp - 0x4830]
push eax
mov esi, 0x2800
push esi
push dword [ebp - 0x4820]
call fcn.0051f4fe
push dword [ebp - 0x4830]
mov eax, dword [ebp - 0x4820]
push dword [ebp - 0x482c]
add eax, 4
push esi
push eax
call fcn.0051f4fe
add esp, 0x20
xor esi, esi
push dword [ebp - 0x4820]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp edi, esi
je 0x404aa8
cmp edi, 0xffff
jbe 0x404a85
movzx edi, di
push dword [ebp - 0x4824]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, edi
or eax, 0xa3eb0000
jmp 0x404e2a
mov dword [ebp - 0x4898], 0x3c
mov dword [ebp - 0x4894], 0x40
mov dword [ebp - 0x4890], esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x404adf
call fcn.0040cec5
mov dword [ebp - 0x488c], str.open
test eax, eax
je 0x404ae9
mov dword [ebp - 0x488c], str.runas
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x404b00
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00401ee8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4888], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push esi
push eax
call fcn.005237f0
add esp, 0xc
push 0xa
push 0x400
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x484c]
call fcn.00520f48
lea eax, [ebp - 0x814]
mov dword [ebp - 0x4884], eax
add esp, 0x10
lea eax, [ebp - 0x4898]
push eax
mov dword [ebp - 0x4880], esi
mov dword [ebp - 0x487c], 3
mov dword [ebp - 0x4878], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404bb3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, 0xffff
cmp eax, edi
jbe 0x404b8c
call esi
mov esi, eax
and esi, edi
jmp 0x404b90
call esi
mov esi, eax
push dword [ebp - 0x4824]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, esi
or eax, 0xa3ea0000
jmp 0x404e2a
push 0x16c
push 0x57ec58
push 0x57ec88
push str.__S___S__d:_Waiting_for_Elevator_to_finish_executing__r_n_r_n
call fcn.0040305a
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
add esp, 0x10
sar eax, 3
imul eax, eax, 0x927c0
push eax
push dword [ebp - 0x4860]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x404c4f
cmp eax, 0x102
je 0x404c0f
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea esi, [ecx - 1]
and esi, 0xffff0001
add esi, 0xa3efffff
jmp 0x404c14
mov esi, 0xa3ee0102
push esi
push 0x17e
push 0x57ed14
push 0x57ec94
push str.__S___S__d:_WFSO_failed_with_error:__d__r_n_r_n
call fcn.0040305a
add esp, 0x14
push dword [ebp - 0x4824]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, esi
jmp 0x404e2a
push dword [ebp - 0x484c]
xor eax, eax
lea edi, [ebp - 0x483c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x4858]
stosd dword es:[edi], eax
call fcn.00405dfd
lea edi, [ebp - 0x483c]
lea eax, [ebp - 0x4858]
mov byte [ebp - 4], 2
call fcn.00405f91
test eax, eax
je 0x404cbc
movzx edi, ax
cmp eax, 0xffff
ja 0x404c8f
mov edi, eax
push dword [ebp - 0x4854]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4824]
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, edi
or eax, 0xa3ec0000
jmp 0x404e2a
mov eax, dword [ebp - 0x483c]
and dword [ebp - 0x4818], 0
shr eax, 2
mov dword [ebp - 0x4844], eax
test eax, eax
je 0x404df2
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
mov esi, dword [ebp - 0x4818]
mov eax, dword [ebp - 0x4838]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x481c], eax
test eax, eax
je 0x404d49
cmp eax, 0xbc2
je 0x404d49
push 0x194
push 0x57eda8
push 0x57ed44
push str.__S___S__d:_Sending_fail_report._r_n
call fcn.0040305a
mov eax, dword [ebp - 0x4834]
mov esi, dword [eax + 0x30]
mov edx, dword [ebp - 0x4818]
add esp, 0x10
push dword [ebp - 0x481c]
lea eax, [ebx + 0x3c]
call fcn.004054fe
push dword [eax + 4]
push 0x505
push esi
call edi
jmp 0x404dda
push 0x199
push str.GetNowInstallManager::ExecCmdListWithElevator
push str.Installer
push str.__S___S__d:_Sending_S_OK_report._r_n
call fcn.0040305a
mov ecx, dword [ebp - 0x4818]
add esp, 0x10
test ecx, ecx
js 0x404e46
mov eax, dword [ebp - 0x4840]
cmp ecx, dword [eax + 8]
jge 0x404e46
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00402108
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x485c], esi
mov eax, dword [ebp - 0x4834]
mov edx, dword [ebp - 0x4818]
mov byte [ebp - 4], 3
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x481c], eax
push 0
lea eax, [ebx + 0x3c]
call fcn.004054fe
push dword [eax + 4]
push 0x504
push dword [ebp - 0x481c]
call edi
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040218e
inc dword [ebp - 0x4818]
mov eax, dword [ebp - 0x4818]
cmp eax, dword [ebp - 0x4844]
jb 0x404ce0
cmp dword [ebp - 0x4838], 0
je 0x404e07
push dword [ebp - 0x4838]
call fcn.004196ba
pop ecx
push dword [ebp - 0x4854]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4824]
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040218e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051f4ef
leave
ret 4
call fcn.0041a063
int3