Function at 0x40fca0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x451494
call fcn.0041f3f0
add esp, 4
test eax, eax
jne 0x40fd2b
mov dword [ebp - 0x118], 0x4520e8
push 0x5c
mov eax, dword [ebp - 0x118]
push eax
call fcn.00423700
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40fcff
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x11c], ecx
jmp 0x40fd0b
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
push str.ByodGuard_has_not_install
push 0x36a
mov eax, dword [ebp - 0x11c]
push eax
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor ecx, ecx
jne 0x40fcc4
mov dword [ebp - 0x124], 0x452188
push 0x5c
mov edx, dword [ebp - 0x124]
push edx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x40fd66
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x128], eax
jmp 0x40fd72
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
push 0x4520cc
push 0x36d
mov edx, dword [ebp - 0x128]
push edx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor eax, eax
jne 0x40fd2b
push 0
push 1
push 0x451584
call fcn.0041f550
add esp, 0xc
test eax, eax
jne 0x40fdb3
mov dword [ebp - 0x12c], 1
jmp 0x40fdbd
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
jne 0x40fe39
mov dword [ebp - 0x134], 0x452218
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 0x40fe0d
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x40fe19
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
push str.ByodGuard_stop_failed
push 0x370
mov edx, dword [ebp - 0x138]
push edx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor eax, eax
jne 0x40fdd2
mov dword [ebp - 0x140], 0x4522a8
push 0x5c
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.00423700
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40fe74
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x144], edx
jmp 0x40fe80
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
push str.ByodGuard_uninstall
push 0x373
mov ecx, dword [ebp - 0x144]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor edx, edx
jne 0x40fe39
mov dword [ebp - 0x110], 0
call fcn.0040f790
movzx eax, al
test eax, eax
je 0x40fec2
mov dword [ebp - 0x110], str.ByodGuard64.sys
jmp 0x40fecc
mov dword [ebp - 0x110], str.ByodGuard32.sys
push 0x4516b4
call fcn.0041f6d0
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x40ff4f
mov dword [ebp - 0x14c], 0x452320
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 0x40ff23
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x150], edx
jmp 0x40ff2f
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
push str.ByodGuard_uninstall_failed
push 0x37d
mov ecx, dword [ebp - 0x150]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x10
xor edx, edx
jne 0x40fee8
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4517b4
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410033
mov dword [ebp - 0x158], 0x452398
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 0x40ffd7
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x15c], eax
jmp 0x40ffe3
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0x164]
call fcn.00412170
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
push ecx
push str.ByodGuard_delete_system_file_failed_:__s
push 0x386
mov edx, dword [ebp - 0x15c]
push edx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
lea ecx, [ebp - 0x164]
call fcn.00412150
xor eax, eax
jne 0x40ff9c
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret