Function at 0x4c07f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fcfe6
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c0aeb
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00409dd0
xor esi, esi
mov dword [esp + 0x110], esi
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x110], 1
mov dword [esp + 0x1c], esi
lea esp, [esp]
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x4c08c4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4c08b7
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4c08b7
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c08aa
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x1c]
jmp 0x4c08c4
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
test esi, esi
lea edi, [esp + 0x14]
jbe 0x4c08dc
push esi
push str..bak._u
call fcn.0040e190
add esp, 8
jmp 0x4c08e9
push str..bak
call fcn.0040e190
add esp, 4
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4c0a9c
add esi, 1
cmp esi, 0xa
mov dword [esp + 0x1c], esi
jb 0x4c0870
push eax
call fcn.005d2e37
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
add esp, 4
cmp eax, edi
mov dword [esp + 0x24], edx
je 0x4c0979
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4c096c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4c096c
call fcn.0040a210
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4c0963
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x4c0979
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.005d2ed1
add esp, 8
test eax, eax
jne 0x4c0999
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4c09a1
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.005d2ed1
add esp, 8
test eax, eax
jne 0x4c09c1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jmp 0x4c09c9
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.005d2ed1
add esp, 8
test eax, eax
jne 0x4c09eb
mov esi, dword [esp + 0xc4]
jmp 0x4c09ee
or esi, 0xffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.005d2ed1
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x64]
lea edx, [esp + 0x28]
mov ebx, eax
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.005d2ed1
add esp, 0x10
test eax, eax
jne 0x4c0a2e
mov edi, dword [esp + 0xa8]
add edi, 1
jmp 0x4c0a30
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xe4]
push edx
call fcn.005d2ed1
add esp, 8
test eax, eax
jne 0x4c0a57
mov eax, dword [esp + 0xf4]
add eax, 0x76c
jmp 0x4c0a59
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push ecx
push edx
push esi
push ebx
push edi
push eax
push str..bak._.4u_.2u_.2u._.2u_.2u_.2u
lea edi, [esp + 0x30]
call fcn.0040e190
mov edi, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x1c
push edi
call esi
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4c0a9c
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x110], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c0ac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x110], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c0aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret