Function at 0x508a60
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b224e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push 1
mov dword [ebp - 0x24], esi
call fcn.00506600
test eax, eax
je 0x508d28
lea ecx, [ebp - 0x38]
call fcn.005760db
lea eax, [esi + 0x10]
push str..tmp
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.00575d7d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0057700b
mov edx, dword [ebp - 0x18]
push 0
push 0x1001
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00576150
push 0
push 0x1000
lea eax, [ebp - 0x38]
push 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00579d2d
mov ecx, dword [0x614cb0]
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
lea edx, [edi + 4]
push edx
call fcn.0057585d
mov byte [ebp - 4], 6
mov bl, 7
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.0057a2a9
test eax, eax
je 0x508c01
push 0x600f14
lea ecx, [ebp - 0x14]
call fcn.00575ec4
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0056d3ac
test eax, eax
jl 0x508bed
lea ecx, [ebp - 0x128]
call fcn.0051d950
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x128]
push 0xffffffffffffffff
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00509810
test eax, eax
je 0x508bde
fld qword [edi + 0x14]
fsub qword [ebp - 0x114]
fabs
fcomp qword [0x5baf98]
fnstsw ax
test ah, 1
je 0x508bde
fld qword [edi + 8]
fsub qword [ebp - 0x120]
fabs
fcomp qword [0x5baf98]
fnstsw ax
test ah, 1
je 0x508bde
mov ecx, dword [ebp - 0x124]
mov eax, dword [edi + 4]
push ecx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x508bde
mov edx, dword [ebp - 0xcc]
mov eax, dword [edi + 0x5c]
push edx
push eax
call fcn.0055724d
add esp, 8
test eax, eax
jne 0x508bde
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
call fcn.00508ff0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call fcn.0051da80
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x88]
push edx
call fcn.0057a1da
jmp 0x508b16
lea ecx, [ebp - 0x88]
call fcn.00579e91
lea ecx, [ebp - 0x38]
call fcn.00576480
mov ecx, esi
call fcn.00506720
add esi, 0x10
push str..bak
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00575d7d
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push edx
push eax
call edi
mov esi, dword [esi]
mov eax, dword [ebp - 0x18]
push esi
push eax
call edi
lea ecx, [ebp - 0x1c]
call fcn.00575ae8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00575ae8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00575ae8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00579e09
mov dword [ebp - 4], 1
call fcn.00577049
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00575ae8
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0057610d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8