Function at 0x494e10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x210
mov dword [ebp - 0x18], 0
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [ebp - 0x20], edx
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [0x515810]
cmp eax, dword [esi + 4]
jle 0x494fca
push 0x515810
call fcn.0049fdce
add esp, 4
cmp dword [0x515810], 0xffffffff
jne 0x494fca
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18c]
push 0x1d
xor eax, eax
mov dword [ebp - 0x190], 0
push str.Windows8_RT_KB4019990_x64.msu
mov dword [ebp - 0x178], 7
mov dword [ebp - 0x17c], 0
mov word [ebp - 0x18c], ax
call fcn.0049f900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x170]
push 0x1c
xor eax, eax
mov dword [ebp - 0x174], 1
push str.Windows6.1_KB4019990_x64.msu
mov dword [ebp - 0x15c], 7
mov dword [ebp - 0x160], 0
mov word [ebp - 0x170], ax
call fcn.0049f900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
push 0x1c
xor eax, eax
mov dword [ebp - 0x158], 2
push str.Windows6.1_KB4019990_x86.msu
mov dword [ebp - 0x140], 7
mov dword [ebp - 0x144], 0
mov word [ebp - 0x154], ax
call fcn.0049f900
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x500dc0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x13c], 3
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], 0
mov word [ebp - 0x138], ax
call fcn.0049f900
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
push eax
push ecx
call fcn.004940c0
push 0x494dd0
push 4
push 0x1c
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0
push eax
call fcn.004a0148
push 0x4dcb00
call fcn.004a0133
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x515810
call fcn.0049fd8f
add esp, 4
call fcn.00494920
cmp eax, 3
je 0x495038
call fcn.00494920
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
call fcn.00494a10
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x11c]
push 0x5006fc
mov edx, eax
mov dword [ebp - 0x18], 1
call fcn.0049edd0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x18], 3
call fcn.00494770
push eax
mov edx, esi
lea ecx, [ebp - 0x104]
call fcn.004949c0
add esp, 4
mov ecx, 7
jmp 0x495071
xor eax, eax
mov dword [ebp - 0xa0], 7
push eax
push 0x500dc0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], ax
call fcn.0049f900
lea eax, [ebp - 0xb4]
mov ecx, 8
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov word [ebp - 0x98], cx
lea ecx, [ebp - 0x98]
push eax
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
call fcn.0049ee40
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
test al, 8
je 0x4950f1
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffff7
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x4950d4
lea eax, [ecx + 1]
push eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xb4]
call fcn.0049f780
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0xa0], 7
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], cx
test al, 4
je 0x49513b
mov ecx, dword [ebp - 0xf0]
and eax, 0xfffffffb
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x49511e
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
call fcn.0049f780
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0xf0], 7
mov dword [ebp - 0xf4], 0
mov word [ebp - 0x104], cx
test al, 2
je 0x495185
mov ecx, dword [ebp - 0x108]
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x495168
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call fcn.0049f780
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x108], 7
mov dword [ebp - 0x10c], 0
mov word [ebp - 0x11c], cx
mov byte [ebp - 4], 0xb
test al, 1
je 0x4951c1
mov ecx, dword [ebp - 0x24]
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x4951ad
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.0049f780
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], cx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x9c], eax
call fcn.00494a10
push 0x5006fc
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.0049edd0
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x80]
call fcn.004949c0
add esp, 4
mov eax, dword [ebp - 0xb8]
cmp eax, 8
jb 0x495218
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.0049f780
xor eax, eax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], 0
mov word [ebp - 0xcc], ax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x49524e
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.0049f780
xor eax, eax
mov dword [ebp - 0x3c], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
call fcn.00494ad0
push 0x500700
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x68]
call fcn.0049edd0
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x495299
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0049f780
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
cmp dword [ebp - 0x6c], 8
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x80]
cmovae eax, dword [ebp - 0x80]
push eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
call edi
test eax, eax
je 0x49551a
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x49530e
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push eax
call edi
test eax, eax
je 0x49551a
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call edi
test eax, eax
je 0x49551a
mov esi, dword [ebp - 0x88]
push 0x40
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d8], 0x44
push 0
push eax
call fcn.004a4720
add esp, 0xc
mov dword [ebp - 0x1c], 0x102
xorps xmm0, xmm0
movups xmmword [ebp - 0xdc], xmm0
test esi, esi
je 0x4953ba
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00494d00
add esp, 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x50]
or dword [ebp - 0x18], 0x10
mov edx, eax
push 0x500744
call fcn.0049edd0
mov ecx, dword [ebp - 0x9c]
mov edx, eax
or ecx, 0x30
add esp, 4
mov dword [ebp - 0x18], ecx
cmp dword [edx + 0x14], 8
jb 0x495385
mov edx, dword [edx]
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x1d8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov byte [ebp - 0x11], 1
test eax, eax
jne 0x4953be
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
test al, 0x20
je 0x4953f9
mov ecx, dword [ebp - 0x3c]
and eax, 0xffffffdf
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x4953e5
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
call fcn.0049f780
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], cx
mov dword [ebp - 4], 0x13
test al, 0x10
je 0x495422
mov eax, dword [ebp - 0xb8]
cmp eax, 8
jb 0x495422
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.0049f780
cmp byte [ebp - 0x11], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x49546e
push 0x493e0
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 0xdc]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x49545c
mov dword [edi], 0xffffffff
push dword [ebp - 0xdc]
call esi
push dword [ebp - 0xd8]
call esi
jmp 0x495471
mov edi, dword [ebp - 0x20]
push 0x40
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x44
push 0
push eax
call fcn.004a4720
add esp, 0xc
lea ecx, [ebp - 0xec]
cmp dword [ebp - 0x6c], 8
lea eax, [ebp - 0x80]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.__passive__norestart
push eax
movups xmmword [ebp - 0xec], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x495508
push 0x927c0
push dword [ebp - 0xec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0xec]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4954f8
mov dword [edi], 0xffffffff
push dword [ebp - 0xec]
call esi
push dword [ebp - 0xe8]
call esi
cmp dword [ebp - 0x1c], 0x102
je 0x49551a
cmp dword [edi], 0
mov byte [ebp - 0x11], 1
je 0x49551e
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x495533
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.0049f780
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
cmp eax, 8
jb 0x49555c
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.0049f780
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
cmp ecx, 8
jb 0x49558e
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.0049f780
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret