Function at 0x5ff316f0
Capabilities:
Check if file exists
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff33da3
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5ff42340]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x18
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x234], ebx
call fcn.5ff1edb0
add esp, 4
cmp eax, ebx
je 0x5ff31e8a
mov dword [ebp - 0x238], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x238]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x238]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x238]
mov byte [ecx + 0x14], 1
mov edx, dword [ebp - 0x238]
mov byte [edx + 0x15], 1
mov dword [ebp - 4], ebx
push str.Smc.exe
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.5fee16d0
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.5fee20c0
mov byte [eax], bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff317c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.DoScan.exe
lea ecx, [ebp - 0x220]
call fcn.5fee16d0
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 3
call fcn.5fee20c0
mov byte [eax], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff31814
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.AutoExcl.exe
lea ecx, [ebp - 0x220]
call fcn.5fee16d0
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.5fee20c0
mov byte [eax], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff31862
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Checksum.exe
lea ecx, [ebp - 0x220]
call fcn.5fee16d0
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 5
call fcn.5fee20c0
mov byte [eax], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff318b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.SepLiveUpdate.exe
lea ecx, [ebp - 0x220]
call fcn.5fee16d0
lea ecx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
mov byte [ebp - 4], 6
call fcn.5fee20c0
mov byte [eax], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff318fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov edx, dword [0x5ff431f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5ff431f0
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 9
mov edi, 0x104
add edi, edi
cmp edi, ebx
jl 0x5ff31986
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, edi
or eax, ecx
jge 0x5ff3194c
push edi
lea ecx, [ebp - 0x224]
call fcn.5fee1cf0
mov esi, dword [ebp - 0x224]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.5ff1ed90
add esp, 8
test eax, eax
js 0x5ff31986
cmp eax, dword [esi - 8]
jg 0x5ff31986
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x5ff31990
cmp ebx, edi
jne 0x5ff31a07
xor ebx, ebx
jmp 0x5ff31923
push 0x80070057
call fcn.5fee11a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ff319b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x22c]
lea esi, [ebp - 0x23c]
call fcn.5fee2320
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.5ff1e71d
add esp, 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 - 0x14]
xor ecx, ebp
call fcn.5ff1e70e
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.5ff1f045
add esp, 8
test eax, eax
je 0x5ff31a40
add eax, 2
jne 0x5ff31a1f
xor ecx, ecx
jmp 0x5ff31a33
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x5ff31a24
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.5fee1c40
lea esi, [ebp - 0x224]
lea ebx, [ebp - 0x220]
lea edi, [ebp - 0x23c]
call fcn.5fee2190
mov eax, dword [eax]
cmp eax, dword [ebp - 0x238]
je 0x5ff31dc4
mov dl, byte [eax + 0x10]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov byte [ebp - 0x23d], dl
mov word [ebp - 0x21c], ax
call fcn.5ff1f9d0
add esp, 0xc
lea edx, [ebp - 0x244]
push edx
push 1
push 0
push str.SOFTWARESymantecSymantec_Endpoint_ProtectionInstalledApps
push 0x80000002
mov dword [ebp - 0x24c], 0x208
mov dword [ebp - 0x244], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5ff31d92
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x220]
push ecx
mov esi, eax
push eax
lea eax, [ebp - 0x24c]
lea ebx, [ebp - 0x21c]
call fcn.5ff310f0
add esp, 8
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x5ff31b28
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ff31b1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xd
jmp 0x5ff319bf
mov edx, dword [0x5ff431f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5ff431f0
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xe
call fcn.5fee17e0
xor eax, eax
lea edx, [ebp - 0x270]
push edx
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x270]
xor ecx, ecx
cmp cx, ax
je 0x5ff31c1e
mov edx, 6
cmp dx, ax
je 0x5ff31c0e
mov ecx, 9
cmp cx, ax
je 0x5ff31c0e
lea ecx, [ebp - 0x228]
call fcn.5fee1780
lea ecx, [ebp - 0x224]
call fcn.5fee1780
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x22c]
lea esi, [ebp - 0x23c]
call fcn.5fee2320
mov edx, dword [ebp - 0x238]
push edx
call fcn.5ff1e71d
add esp, 4
mov eax, 0x661
jmp 0x5ff319eb
cmp byte [ebp - 0x23d], 0
je 0x5ff31c1e
push str.Bin64_
jmp 0x5ff31c23
push str.Bin_
lea ecx, [ebp - 0x228]
call fcn.5fee2020
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x228]
call fcn.5fee2550
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5ff31c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x228]
mov ebx, eax
call fcn.5fee1780
lea ecx, [ebp - 0x224]
call fcn.5fee1780
mov dword [ebp - 4], 0x10
jmp 0x5ff319bf
mov edx, dword [0x5ff431f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5ff431f0
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp + 8]
mov esi, 1
mov byte [ebp - 4], 0x11
cmp ebx, esi
jle 0x5ff31d09
push 1
push 0x5ff3ba48
lea ecx, [ebp - 0x220]
call fcn.5fee2550
mov ecx, dword [ebp - 0x248]
mov edx, dword [ecx + esi*4]
test edx, edx
jne 0x5ff31ccb
xor eax, eax
jmp 0x5ff31cdf
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ff31cd0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x220]
call fcn.5fee2550
push 2
push 0x5ff3bbb8
lea ecx, [ebp - 0x220]
call fcn.5fee2550
inc esi
cmp esi, ebx
jl 0x5ff31ca8
mov edi, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x228]
push edi
call fcn.5ff313a0
mov ebx, eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ff31d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff31d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5ff31d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0x12
jmp 0x5ff319bf
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ff31db8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xc
jmp 0x5ff319bf
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x5ff31dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x22c]
lea esi, [ebp - 0x23c]
call fcn.5fee2320
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.5ff1e71d
add esp, 4
mov eax, 0xc0
jmp 0x5ff319eb
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x22c], ebx
call fcn.5ff1ecdd
push 0x5ff40650
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.5ff1f936
int3