Function at 0x10023780
Capabilities:
Check if file exists
Delete file
Get file size
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e35b
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x848], edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0x20a
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x844], 0
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x840]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x634]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea eax, [ebp - 0x428]
push 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push eax
call esi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x840]
push eax
call esi
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x634]
push eax
call esi
push 0x104
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x840]
push str..bak
push eax
call esi
push str..tmp
lea eax, [ebp - 0x634]
push eax
call esi
push str..dat
lea eax, [ebp - 0x21c]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x634]
push eax
call esi
test eax, eax
je 0x100238ff
lea eax, [ebp - 0x840]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x21c]
push eax
je 0x100238e5
call esi
test eax, eax
je 0x100238eb
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100238eb
call esi
test eax, eax
jne 0x100238ff
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x850], ebx
cmp ebx, 0xffffffff
jne 0x1002392f
xor eax, eax
jmp 0x10023a4f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10023a44
cmp esi, 0x24c
jb 0x10023a44
push 0x1007da74
push esi
call fcn.1005be25
mov edi, eax
add esp, 8
test edi, edi
je 0x10023a44
push 0
lea eax, [ebp - 0x844]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10023a37
cmp dword [ebp - 0x844], esi
jne 0x10023a37
push ecx
mov edx, esi
mov ecx, edi
call fcn.10023710
add esp, 4
test eax, eax
je 0x10023a37
xor ebx, ebx
cmp dword [edi + 0x20], ebx
jle 0x10023a12
lea esi, [edi + 0x40]
nop dword [eax]
xor eax, eax
lea ecx, [ebp - 0x870]
push esi
mov word [esi + 0x206], ax
call fcn.10002d00
mov ecx, dword [ebp - 0x848]
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 4], 0
push eax
call fcn.10023a70
mov ecx, dword [ebp - 0x858]
mov eax, dword [esi + 0x208]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + 0x28], eax
lea ecx, [ebp - 0x870]
call fcn.10002cc0
inc ebx
add esi, 0x20c
cmp ebx, dword [edi + 0x20]
jl 0x100239b0
mov ecx, dword [ebp - 0x84c]
test ecx, ecx
je 0x10023a21
mov eax, dword [edi + 0x2c]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x850]
mov esi, 1
push edi
call fcn.1005be17
add esp, 4
jmp 0x10023a46
xor esi, esi
push edi
call fcn.1005be17
add esp, 4
jmp 0x10023a46
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret