Function at 0x40fef0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fe7c
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x154], str.ByodSpy32.dll
mov dword [ebp - 0x150], str.ByodSpy64.dll
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00423990
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x451144
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x118]
call fcn.00409d50
lea ecx, [ebp - 0x118]
call fcn.00411e90
mov dword [ebp - 4], 0
mov dword [ebp - 0x138], 0x400
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x118]
call fcn.00411f20
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x118]
call fcn.00411eb0
push 1
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040a5b0
push eax
call fcn.00413d10
add esp, 0xc
test eax, eax
je 0x410026
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.00411d50
push 0x4511f8
lea ecx, [ebp - 0x118]
call fcn.00411d10
jmp 0x410080
push 1
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00411bb0
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
push edx
push 0x4511fc
call fcn.00411b50
add esp, 8
mov byte [ebp - 0x129], al
lea ecx, [ebp - 0x148]
call fcn.00411dd0
movzx eax, byte [ebp - 0x129]
test eax, eax
je 0x410080
push 0x451200
lea ecx, [ebp - 0x118]
call fcn.00411d10
mov dword [ebp - 0x134], 1
push 4
lea ecx, [ebp - 0x124]
call fcn.00409d50
lea ecx, [ebp - 0x124]
call fcn.00411e90
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x451204
lea ecx, [ebp - 0x124]
push ecx
call fcn.00412dc0
add esp, 0x10
mov dword [ebp - 0x158], 0xa
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 2
jae 0x4102b0
cmp dword [ebp - 0x130], 0xa
jb 0x41011c
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
jmp 0x4100e1
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp + eax*4 - 0x154]
mov dword [ebp - 0x13c], ecx
push 4
lea ecx, [ebp - 0x120]
call fcn.00409d50
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x120]
call fcn.00411df0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00411d10
lea ecx, [ebp - 0x120]
call fcn.0040a5b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410190
lea ecx, [ebp - 0x120]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4101b3
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00411dd0
jmp 0x4100e1
push 4
lea ecx, [ebp - 0x11c]
call fcn.00409d50
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x11c]
call fcn.00411e70
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00411d10
push 0x2e
lea ecx, [ebp - 0x11c]
call fcn.00411cf0
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00411d30
push 1
lea ecx, [ebp - 0x11c]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x120]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41025c
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x130], 0
push 4
push 0
lea ecx, [ebp - 0x11c]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x41028d
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x45120c
lea edx, [ebp - 0x124]
push edx
call fcn.00412dc0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call fcn.00411dd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00411dd0
jmp 0x4100e1
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00411dd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00411dd0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret