Function at 0x40f800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x457928
push 0x4235a0
mov eax, dword fs:[0]
push eax
add esp, 0xfffffea0
mov eax, dword [0x45a074]
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.0040f790
movzx eax, al
test eax, eax
je 0x40f8b0
mov dword [ebp - 0x12c], 0x4512e4
mov ecx, dword [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x40f8ce
mov dword [ebp - 0x12c], 0x45135c
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov dword [ebp - 0x134], 0x451e48
push 0x5c
mov edx, dword [ebp - 0x134]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x40f909
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x40f915
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
lea edx, [ebp - 0x120]
push edx
push str.ByodGuard_Binary_File:_s
push 0x342
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 0x40f8ce
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f9bb
mov dword [ebp - 0x140], 0x451ed8
push 0x5c
mov eax, dword [ebp - 0x140]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40f988
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x144], ecx
jmp 0x40f994
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x144], edx
lea eax, [ebp - 0x120]
push eax
push str.Install_ByodGuard:__PathFileExists:_s
push 0x344
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 0x40f94d
push 0
push 0x4512f4
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x120]
push eax
push 0x45136c
call fcn.0041ef10
add esp, 0x24
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40fa8b
mov dword [ebp - 0x14c], 0x451f50
push 0x5c
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x40fa2e
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x150], edx
jmp 0x40fa3a
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 0x34b
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 0x40f9f3
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x16c], eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x45a074
call fcn.00426580
add esp, 0xc
mov eax, dword [ebp - 0x16c]
jmp 0x40fbc8
mov dword [ebp - 0x158], 0x451fc0
push 0x5c
mov edx, dword [ebp - 0x158]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x40fac6
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x15c], eax
jmp 0x40fad2
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
push 0x451414
push 0x34f
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 0x40fa8b
push 0x451424
call fcn.0041f5f0
add esp, 4
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40fba7
mov dword [ebp - 0x164], 0x452040
push 0x5c
mov ecx, dword [ebp - 0x164]
push ecx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x40fb4d
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x168], edx
jmp 0x40fb59
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4520a4
push 0x352
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 0x40fb12
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x170], eax
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x45a074
call fcn.00426580
add esp, 0xc
mov eax, dword [ebp - 0x170]
jmp 0x40fbc8
mov dword [ebp - 4], 0xfffffffe
call fcn.0040fbb5
jmp 0x40fbc3
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.00421c00
mov esp, ebp
pop ebp
ret