Function at 0x494760
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 0x4daaa6
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 [0x571810]
cmp eax, dword [esi + 4]
jle 0x49491a
push 0x571810
call fcn.0049f6f1
add esp, 4
cmp dword [0x571810], 0xffffffff
jne 0x49491a
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.0049f240
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.0049f240
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.0049f240
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x55cab0
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.0049f240
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
push eax
push ecx
call fcn.00493a10
push 0x494720
push 4
push 0x1c
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0
push eax
call fcn.0049fa88
push 0x4dc350
call fcn.0049fa73
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x571810
call fcn.0049f6b2
add esp, 4
call fcn.00494270
cmp eax, 3
je 0x494988
call fcn.00494270
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
call fcn.00494360
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x11c]
push 0x55c3ec
mov edx, eax
mov dword [ebp - 0x18], 1
call fcn.0049e730
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x18], 3
call fcn.004940c0
push eax
mov edx, esi
lea ecx, [ebp - 0x104]
call fcn.00494310
add esp, 4
mov ecx, 7
jmp 0x4949c1
xor eax, eax
mov dword [ebp - 0xa0], 7
push eax
push 0x55cab0
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xb4], ax
call fcn.0049f240
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.0049e7a0
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
test al, 8
je 0x494a41
mov ecx, dword [ebp - 0xa0]
and eax, 0xfffffff7
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x494a24
lea eax, [ecx + 1]
push eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xb4]
call fcn.0049f0e0
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 0x494a8b
mov ecx, dword [ebp - 0xf0]
and eax, 0xfffffffb
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x494a6e
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
call fcn.0049f0e0
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 0x494ad5
mov ecx, dword [ebp - 0x108]
and eax, 0xfffffffd
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x494ab8
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call fcn.0049f0e0
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 0x494b11
mov ecx, dword [ebp - 0x24]
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x494afd
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
call fcn.0049f0e0
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.00494360
push 0x55c3ec
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xcc]
call fcn.0049e730
add esp, 4
push edi
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x80]
call fcn.00494310
add esp, 4
mov eax, dword [ebp - 0xb8]
cmp eax, 8
jb 0x494b68
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.0049f0e0
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 0x494b9e
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.0049f0e0
xor eax, eax
mov dword [ebp - 0x3c], 7
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
call fcn.00494420
push 0x55c3f0
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x68]
call fcn.0049e730
add esp, 4
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x494be9
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.0049f0e0
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 0x494e6a
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x494c5e
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
push eax
call edi
test eax, eax
je 0x494e6a
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
call edi
test eax, eax
je 0x494e6a
mov esi, dword [ebp - 0x88]
push 0x40
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d8], 0x44
push 0
push eax
call fcn.004a4070
add esp, 0xc
mov dword [ebp - 0x1c], 0x102
xorps xmm0, xmm0
movups xmmword [ebp - 0xdc], xmm0
test esi, esi
je 0x494d0a
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00494650
add esp, 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x50]
or dword [ebp - 0x18], 0x10
mov edx, eax
push 0x55c434
call fcn.0049e730
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 0x494cd5
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 0x494d0e
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x18]
test al, 0x20
je 0x494d49
mov ecx, dword [ebp - 0x3c]
and eax, 0xffffffdf
mov dword [ebp - 0x18], eax
cmp ecx, 8
jb 0x494d35
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
call fcn.0049f0e0
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 0x494d72
mov eax, dword [ebp - 0xb8]
cmp eax, 8
jb 0x494d72
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.0049f0e0
cmp byte [ebp - 0x11], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x494dbe
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 0x494dac
mov dword [edi], 0xffffffff
push dword [ebp - 0xdc]
call esi
push dword [ebp - 0xd8]
call esi
jmp 0x494dc1
mov edi, dword [ebp - 0x20]
push 0x40
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0x44
push 0
push eax
call fcn.004a4070
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 0x494e58
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 0x494e48
mov dword [edi], 0xffffffff
push dword [ebp - 0xec]
call esi
push dword [ebp - 0xe8]
call esi
cmp dword [ebp - 0x1c], 0x102
je 0x494e6a
cmp dword [edi], 0
mov byte [ebp - 0x11], 1
je 0x494e6e
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x494e83
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.0049f0e0
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 0x494eac
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.0049f0e0
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 0x494ede
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.0049f0e0
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