Function at 0x40f480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x456858
push 0x4230c0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffea0
mov eax, dword [0x459074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x12c], 0
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str....._sys
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
call fcn.0040f410
movzx eax, al
test eax, eax
je 0x40f530
mov dword [ebp - 0x12c], 0x450944
mov ecx, dword [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x40f54e
mov dword [ebp - 0x12c], 0x450954
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov dword [ebp - 0x134], 0x450980
push 0x5c
mov edx, dword [ebp - 0x134]
push edx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40f589
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x40f595
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
lea edx, [ebp - 0x120]
push edx
push str.ByodGuard_Binary_File:_s
push 0x2fa
mov eax, dword [ebp - 0x138]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor ecx, ecx
jne 0x40f54e
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f63b
mov dword [ebp - 0x140], 0x4509e8
push 0x5c
mov eax, dword [ebp - 0x140]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40f608
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x144], ecx
jmp 0x40f614
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x120]
push eax
push str.Install_ByodGuard:__PathFileExists:_s
push 0x2fc
mov ecx, dword [ebp - 0x144]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40f5cd
push 0
push 0x450a78
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x120]
push eax
push 0x450a7c
call fcn.0041ea30
add esp, 0x24
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40f70b
mov dword [ebp - 0x14c], 0x450a88
push 0x5c
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x40f6ae
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x150], edx
jmp 0x40f6ba
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ByodGuard_install_failed__LastError:_u
push 0x303
mov ecx, dword [ebp - 0x150]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40f673
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x16c], eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x459074
call fcn.004260a0
add esp, 0xc
mov eax, dword [ebp - 0x16c]
jmp 0x40f848
mov dword [ebp - 0x158], 0x450b18
push 0x5c
mov edx, dword [ebp - 0x158]
push edx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40f746
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x15c], eax
jmp 0x40f752
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
push 0x450b80
push 0x307
mov edx, dword [ebp - 0x15c]
push edx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor eax, eax
jne 0x40f70b
push 0x450b90
call fcn.0041f110
add esp, 4
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40f827
mov dword [ebp - 0x164], 0x450bc0
push 0x5c
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x40f7cd
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x168], edx
jmp 0x40f7d9
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x450c28
push 0x30a
mov ecx, dword [ebp - 0x168]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40f792
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x170], eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x459074
call fcn.004260a0
add esp, 0xc
mov eax, dword [ebp - 0x170]
jmp 0x40f848
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f835
jmp 0x40f843
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret