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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0f96
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x4a990b
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00404460
xor esi, esi
mov dword [esp + 0x110], esi
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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 0x4a96e4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4a96d7
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4a96d7
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4a96ca
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 0x4a96e4
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
test esi, esi
lea edi, [esp + 0x14]
jbe 0x4a96fc
push esi
push str..bak._u
call fcn.00403650
add esp, 8
jmp 0x4a9709
push str..bak
call fcn.00403650
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 0x4a98bc
add esi, 1
cmp esi, 0xa
mov dword [esp + 0x1c], esi
jb 0x4a9690
push eax
call fcn.0057abc7
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 0x4a9799
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4a978c
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4a978c
call fcn.00403ce0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4a9783
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 0x4a9799
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0057a8de
add esp, 8
test eax, eax
jne 0x4a97b9
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x4a97c1
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0057a8de
add esp, 8
test eax, eax
jne 0x4a97e1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
jmp 0x4a97e9
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.0057a8de
add esp, 8
test eax, eax
jne 0x4a980b
mov esi, dword [esp + 0xc4]
jmp 0x4a980e
or esi, 0xffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0057a8de
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.0057a8de
add esp, 0x10
test eax, eax
jne 0x4a984e
mov edi, dword [esp + 0xa8]
add edi, 1
jmp 0x4a9850
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xe4]
push edx
call fcn.0057a8de
add esp, 8
test eax, eax
jne 0x4a9877
mov eax, dword [esp + 0xf4]
add eax, 0x76c
jmp 0x4a9879
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.00403650
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 0x4a98bc
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 0x4a98e0
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 0x4a990b
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