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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510922
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 0x496110
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.004dfec0
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 0x495be8
xor ebx, ebx
jmp 0x4960d4
mov eax, dword [0x550c0c]
cmp eax, 0xffffffff
jne 0x495c34
push 0x53661c
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 0x495cc2
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x495cc2
mov eax, dword [0x550c0c]
mov ebx, dword [ebp - 0x134]
test eax, eax
je 0x495ccc
call fcn.004873d0
test eax, eax
je 0x495cf9
push str.X64_ev.sys
lea eax, [ebp - 0x138]
push ebx
push eax
call fcn.0048c0d0
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 0x495f8e
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495f79
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495f79
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x134], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495cb4
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 0x495f8e
mov dword [0x550c0c], 0
call fcn.004873d0
test eax, eax
je 0x495d94
push str._ev.sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x134]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x495d12
push str.X64.sys
lea eax, [ebp - 0x134]
push ebx
push eax
call fcn.0048c0d0
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 0x495d85
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495d70
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495d70
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495d58
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 0x495f98
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 0x495f98
cmp dword [ebp - 0x128], 5
jne 0x495f0a
push str.XP.sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x13c]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 4
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495e22
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495e0d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495e0d
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x138], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495e02
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 0x495e22
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 0x495e43
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.00497170
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
call fcn.004965d0
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x495e84
mov ebx, 1
jmp 0x4960d4
mov ecx, ebx
call fcn.0044f770
push str..sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x138]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 5
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x495f8e
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495f79
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495f79
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495f6e
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 0x495f8e
push str..sys
push dword [ebp - 0x134]
lea eax, [ebp - 0x138]
push eax
call fcn.0048c0d0
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 0x495f8e
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x495f79
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x495f79
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x495f6e
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 0x495f8e
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 0x495faf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], 0
je 0x496051
mov eax, dword [0x550c0c]
cmp eax, 0xffffffff
jne 0x495ff7
push 0x53661c
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 0x496026
push 0x550c0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x496026
mov eax, dword [0x550c0c]
test eax, eax
je 0x496051
mov eax, dword [0x5545f0]
test eax, eax
jne 0x496047
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x496032
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5545f0], eax
jmp 0x496037
mov dword [0x550c0c], 0
jmp 0x496051
mov eax, dword [0x5545f0]
test eax, eax
jne 0x496047
mov dword [ebp - 0x140], 1
jmp 0x496051
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.00497170
mov ecx, dword [ebp - 0x14c]
add esp, 0xc
call fcn.004965d0
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 0x4960d4
mov eax, dword [0x5545f0]
test eax, eax
jne 0x4960d0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4960c7
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5545f0], eax
jmp 0x4960cc
mov eax, dword [0x5545f0]
test eax, eax
je 0x4960d4
push 1
call eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4960f0
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.004de0fd
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00450260
int3