Function at 0x419290
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4682c8
mov eax, dword fs:[0]
push eax
sub esp, 0xa7c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push edi
mov dword [ebp - 4], edi
push ecx
mov byte [ebp - 0xa1d], 0
mov word [ebp - 0x21c], ax
call fcn.004534e0
add esp, 0xc
push 0x7fe
lea eax, [ebp - 0xa1a]
xor edx, edx
push edi
push eax
mov word [ebp - 0xa1c], dx
call fcn.004534e0
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push edi
push edi
xor eax, eax
push 0x25
push edi
mov dword [ebp - 0xa34], eax
mov dword [ebp - 0xa30], eax
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa28], eax
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
js 0x419587
push 0x474e70
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.0044fc40
add esp, 0xc
push 0x4721b4
lea eax, [ebp - 0xa1c]
push 0x400
push eax
call fcn.0044fc40
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0xa1c]
push 0x400
push edx
call fcn.0044fc40
add esp, 0xc
push 0x474e8c
lea eax, [ebp - 0xa1c]
push 0x400
push eax
call fcn.0044fc40
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
lea edx, [ebp - 0xa1c]
push 0x400
push edx
call fcn.0044fc40
add esp, 0xc
push 0x44
lea eax, [ebp - 0xa84]
push edi
push eax
call fcn.004534e0
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
xor ecx, ecx
lea eax, [ebp - 0xa84]
push eax
push edi
push edi
test bl, bl
setne cl
push 0xc000020
push edi
push edi
push edi
mov dword [ebp - 0xa84], 0x44
mov dword [ebp - 0xa58], 1
mov word [ebp - 0xa54], cx
lea ecx, [ebp - 0xa1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41944f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 0x120], eax
lea edi, [esi + 0x118]
je 0x419440
push eax
push str.CreateProcess_failed._Error:__d.
call fcn.00428bb0
add esp, 8
jmp 0x419587
mov edx, str.CreateProcess_failed.
call fcn.004011b0
jmp 0x419587
push edi
push edi
push edi
push ecx
mov edx, esp
mov dword [ebp - 0xa38], esp
push edx
mov ecx, str.msiexec.exe
call fcn.00401110
call fcn.004197d0
test al, al
je 0x4194ba
mov eax, dword [ebp - 0xa34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4194ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 0x120], eax
lea edi, [esi + 0x118]
je 0x4194ab
push eax
push str.WaitForSingleObject_failed._Error:__d.
call fcn.00428bb0
add esp, 8
jmp 0x419587
mov edx, str.WaitForSingleObject_failed.
call fcn.004011b0
jmp 0x419587
mov edx, dword [ebp - 0xa34]
lea ecx, [ebp - 0xa24]
push ecx
push edx
mov dword [ebp - 0xa24], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x41950d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esi + 0x120], eax
lea edi, [esi + 0x118]
je 0x419501
push eax
push str.GetExitCodeProcess_failed._Error:__d.
call fcn.00428bb0
add esp, 8
jmp 0x419587
mov edx, str.GetExitCodeProcess_failed.
call fcn.004011b0
jmp 0x419587
mov eax, dword [ebp - 0xa24]
cmp eax, edi
je 0x419580
cmp eax, 0x103
je 0x419580
cmp eax, 0x642
jne 0x41953f
mov dword [esi + 0x120], edi
mov byte [esi + 0x125], 1
add esi, 0x118
call fcn.004013d0
jmp 0x419587
test bl, bl
jne 0x41956d
cmp eax, edi
jle 0x419551
and eax, 0xffff
or eax, 0x80070000
push eax
push str._The_installation_failed._Error:__d.
lea edi, [esi + 0x118]
mov dword [esi + 0x120], eax
call fcn.00428bb0
add esp, 8
jmp 0x419587
mov dword [esi + 0x120], edi
add esi, 0x118
call fcn.004013d0
jmp 0x419587
mov byte [ebp - 0xa1d], 1
mov eax, dword [ebp - 0xa34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41959a
push eax
call esi
mov eax, dword [ebp - 0xa30]
test eax, eax
je 0x4195a7
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4195cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xa1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4