Function at 0x495a80
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510c82
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x496060
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x130], esi
push 0x118
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e0230
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or edi, 0xffffffff
test eax, eax
jne 0x495b38
xor ebx, ebx
jmp 0x496024
mov eax, dword [0x550c0c]
cmp eax, 0xffffffff
jne 0x495b84
push 0x53677c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x495c12
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x495c12
mov eax, dword [0x550c0c]
mov ebx, dword [ebp - 0x134]
test eax, eax
je 0x495c1c
call fcn.00487380
test eax, eax
je 0x495c49
push str.X64_ev.sys
lea eax, [ebp - 0x138]
push ebx
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 1
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
or edi, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495ede
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495ec9
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495ec9
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x134], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495c04
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x134]
lea esi, [eax + 0x10]
mov dword [ebp - 0x130], esi
jmp 0x495ede
mov dword [0x550c0c], 0
call fcn.00487380
test eax, eax
je 0x495ce4
push str._ev.sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x134]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x495c62
push str.X64.sys
lea eax, [ebp - 0x134]
push ebx
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
or edi, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495cd5
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495cc0
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495cc0
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495ca8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x138]
lea esi, [eax + 0x10]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x130], esi
jmp 0x495ee8
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0044f580
mov esi, dword [ebp - 0x130]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x134]
jmp 0x495ee8
cmp dword [ebp - 0x128], 5
jne 0x495e5a
push str.XP.sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x13c]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 4
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495d72
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495d5d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495d5d
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495d52
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x138]
lea esi, [eax + 0x10]
mov dword [ebp - 0x130], esi
jmp 0x495d72
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0044f580
mov esi, dword [ebp - 0x130]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495d93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x144]
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0x130]
push ecx
push dword [ebp - 0x148]
push eax
call fcn.004970c0
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
call fcn.00496520
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x495dd4
mov ebx, 1
jmp 0x496024
mov ecx, ebx
call fcn.0044f770
push str..sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x138]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 5
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495ede
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495ec9
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495ec9
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495ebe
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x13c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x130], esi
jmp 0x495ede
push str..sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x138]
push eax
call fcn.0048c050
add esp, 0xc
mov byte [ebp - 4], 6
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
or edi, 0xffffffff
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495ede
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495ec9
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495ec9
push edx
call fcn.0048d290
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495ebe
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x13c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x130], esi
jmp 0x495ede
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0044f580
mov esi, dword [ebp - 0x130]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x138]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x495eff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], 0
je 0x495fa1
mov eax, dword [0x550c0c]
cmp eax, 0xffffffff
jne 0x495f47
push 0x53677c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x495f76
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x495f76
mov eax, dword [0x550c0c]
test eax, eax
je 0x495fa1
mov eax, dword [0x5545f0]
test eax, eax
jne 0x495f97
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x495f82
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5545f0], eax
jmp 0x495f87
mov dword [0x550c0c], 0
jmp 0x495fa1
mov eax, dword [0x5545f0]
test eax, eax
jne 0x495f97
mov dword [ebp - 0x140], 1
jmp 0x495fa1
push 0
call eax
mov dword [ebp - 0x140], eax
mov ebx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push ebx
push ecx
mov ecx, esp
push eax
push dword [ebp - 0x148]
push ecx
call fcn.004970c0
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
call fcn.00496520
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
mov ebx, 0
cmovne ebx, ecx
cmp dword [ebp - 0x140], 0
je 0x496024
mov eax, dword [0x5545f0]
test eax, eax
jne 0x496020
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x496017
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5545f0], eax
jmp 0x49601c
mov eax, dword [0x5545f0]
test eax, eax
je 0x496024
push 1
call eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x496040
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00450260
int3