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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x450bb4
call fcn.0041ef10
add esp, 4
test eax, eax
jne 0x40f9ab
mov dword [ebp - 0x118], 0x450c50
push 0x5c
mov eax, dword [ebp - 0x118]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40f97f
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x11c], ecx
jmp 0x40f98b
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
push str.ByodGuard_has_not_install
push 0x322
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 0x40f944
mov dword [ebp - 0x124], 0x450cf0
push 0x5c
mov edx, dword [ebp - 0x124]
push edx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x40f9e6
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x128], eax
jmp 0x40f9f2
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
push 0x450cd4
push 0x325
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 0x40f9ab
push 0
push 1
push 0x450ce4
call fcn.0041f070
add esp, 0xc
test eax, eax
jne 0x40fa33
mov dword [ebp - 0x12c], 1
jmp 0x40fa3d
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
jne 0x40fab9
mov dword [ebp - 0x134], 0x450d58
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 0x40fa8d
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x138], eax
jmp 0x40fa99
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x138], ecx
push str.ByodGuard_stop_failed
push 0x328
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 0x40fa52
mov dword [ebp - 0x140], 0x450dd8
push 0x5c
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.00423220
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40faf4
mov edx, dword [ebp - 0x13c]
add edx, 1
mov dword [ebp - 0x144], edx
jmp 0x40fb00
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
push str.ByodGuard_uninstall
push 0x32b
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 0x40fab9
mov dword [ebp - 0x110], 0
call fcn.0040f410
movzx eax, al
test eax, eax
je 0x40fb42
mov dword [ebp - 0x110], str.ByodGuard64.sys
jmp 0x40fb4c
mov dword [ebp - 0x110], str.ByodGuard32.sys
push 0x450e74
call fcn.0041f1f0
add esp, 4
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x40fbcf
mov dword [ebp - 0x14c], 0x450e80
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 0x40fba3
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x150], edx
jmp 0x40fbaf
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
push str.ByodGuard_uninstall_failed
push 0x335
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 0x40fb68
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x450f04
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 0x40fcb3
mov dword [ebp - 0x158], 0x450f38
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 0x40fc57
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x15c], eax
jmp 0x40fc63
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
lea edx, [ebp - 0x108]
push edx
lea ecx, [ebp - 0x164]
call fcn.00411df0
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 0x33e
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.00411dd0
xor eax, eax
jne 0x40fc1c
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret