Function at 0x4f1020
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cbb5e
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.004eeb70
test eax, eax
je 0x4f12e8
lea ecx, [ebp - 0x38]
call fcn.00595172
lea eax, [esi + 0x10]
push str..tmp
lea ecx, [ebp - 0x18]
push eax
push ecx
mov dword [ebp - 4], 0
call fcn.00593970
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00593d4b
mov edx, dword [ebp - 0x18]
push 0
push 0x1001
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.005951e7
push 0
push 0x1000
lea eax, [ebp - 0x38]
push 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00597946
mov ecx, dword [0x639698]
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.00593450
mov byte [ebp - 4], 6
mov bl, 7
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.00597ec2
test eax, eax
je 0x4f11c1
push 0x62619c
lea ecx, [ebp - 0x14]
call fcn.00593ab7
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0058aa67
test eax, eax
jl 0x4f11ad
lea ecx, [ebp - 0x128]
call fcn.00500050
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.004f1e10
test eax, eax
je 0x4f119e
fld qword [edi + 0x14]
fsub qword [ebp - 0x114]
fabs
fcomp qword [0x5db040]
fnstsw ax
test ah, 1
je 0x4f119e
fld qword [edi + 8]
fsub qword [ebp - 0x120]
fabs
fcomp qword [0x5db040]
fnstsw ax
test ah, 1
je 0x4f119e
mov ecx, dword [ebp - 0x124]
mov eax, dword [edi + 4]
push ecx
push eax
call fcn.00573b74
add esp, 8
test eax, eax
jne 0x4f119e
mov edx, dword [ebp - 0xcc]
mov eax, dword [edi + 0x5c]
push edx
push eax
call fcn.00573b74
add esp, 8
test eax, eax
jne 0x4f119e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004f15c0
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 6
call fcn.00500180
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x88]
push edx
call fcn.00597df3
jmp 0x4f10d6
lea ecx, [ebp - 0x88]
call fcn.00597aaa
lea ecx, [ebp - 0x38]
call fcn.00595517
mov ecx, esi
call fcn.004eecc0
add esi, 0x10
push str..bak
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00593970
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.005936db
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.005936db
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.005936db
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00597a22
mov dword [ebp - 4], 1
call fcn.00593d89
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005936db
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.005951a4
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