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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44063c
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x45a074]
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.00423e70
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4519cc
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 4
lea ecx, [ebp - 0x118]
call fcn.00409db0
lea ecx, [ebp - 0x118]
call fcn.00412210
mov dword [ebp - 4], 0
mov dword [ebp - 0x138], 0x400
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x118]
call fcn.004122a0
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.00412230
push 1
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.0040a610
push eax
call fcn.00414090
add esp, 0xc
test eax, eax
je 0x4103a6
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x114]
push eax
lea ecx, [ebp - 0x118]
call fcn.004120d0
push 0x451a34
lea ecx, [ebp - 0x118]
call fcn.00412090
jmp 0x410400
push 1
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00411f30
mov dword [ebp - 0x144], eax
mov edx, dword [ebp - 0x144]
push edx
push 0x451a9c
call fcn.00411ed0
add esp, 8
mov byte [ebp - 0x129], al
lea ecx, [ebp - 0x148]
call fcn.00412150
movzx eax, byte [ebp - 0x129]
test eax, eax
je 0x410400
push 0x451b44
lea ecx, [ebp - 0x118]
call fcn.00412090
mov dword [ebp - 0x134], 1
push 4
lea ecx, [ebp - 0x124]
call fcn.00409db0
lea ecx, [ebp - 0x124]
call fcn.00412210
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x452504
lea ecx, [ebp - 0x124]
push ecx
call fcn.00413140
add esp, 0x10
mov dword [ebp - 0x158], 0xa
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x128], 0
cmp dword [ebp - 0x128], 2
jae 0x410630
cmp dword [ebp - 0x130], 0xa
jb 0x41049c
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
jmp 0x410461
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.00409db0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x120]
call fcn.00412170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00412090
lea ecx, [ebp - 0x120]
call fcn.0040a610
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410510
lea ecx, [ebp - 0x120]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x410533
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00412150
jmp 0x410461
push 4
lea ecx, [ebp - 0x11c]
call fcn.00409db0
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x11c]
call fcn.004121f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00412090
push 0x2e
lea ecx, [ebp - 0x11c]
call fcn.00412070
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004120b0
push 1
lea ecx, [ebp - 0x11c]
call fcn.0040a610
push eax
lea ecx, [ebp - 0x120]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4105dc
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.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x41060d
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 0x45263c
lea edx, [ebp - 0x124]
push edx
call fcn.00413140
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call fcn.00412150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00412150
jmp 0x410461
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00412150
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.00421c00
mov esp, ebp
pop ebp
ret