Function at 0x422e42
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b98
call fcn.00612c90
mov eax, dword [0x6ffe74]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1b7c]
push eax
mov ebx, 0x3e8
mov dword [ebp - 0x1b94], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cdq
mov ecx, 0x186a0
idiv ecx
lea eax, [ebp - 0x1b7c]
push edx
push eax
push str._sce_sm_ff__d
lea eax, [ebp - 0x7f4]
push ebx
push eax
call fcn.00402e0a
add esp, 0x14
lea eax, [ebp - 0x7f4]
xor ebx, ebx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422ec2
call esi
jmp 0x422ec8
lea edi, [ebp - 0x7f4]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x1b98], edi
cmp edi, 0xffffffff
jne 0x422eec
call esi
jmp 0x422f39
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1b88], eax
test eax, eax
jne 0x422f0e
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422f39
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x1b90], ebx
test ebx, ebx
jne 0x422f4c
call esi
push dword [ebp - 0x1b88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006122f0
leave
ret 4
and dword [ebp - 0x1b8c], 0
lea eax, [ebp - 0x1b8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x1b8c], 0
mov esi, eax
mov dword [ebp - 0x1b84], esi
jne 0x422f28
xor eax, eax
mov dword [ebp - 0x20], 0x534d5343
mov dword [ebp - 0x13], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 0x657469
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xf], 0xb000000
mov word [ebp - 0x1b80], 0xfeff
mov byte [ebp - 0x1b7e], 0xff
call fcn.00643470
pop ecx
push eax
lea eax, [ebp - 0x20]
mov edx, esi
push eax
mov ecx, ebx
call fcn.00417191
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x422f28
lea eax, [ebp - 0x20]
push eax
call fcn.00643470
mov edi, dword [ebp - 0x1b84]
add esi, eax
pop ecx
mov al, byte [esi + 4]
mov byte [ebp - 0x14], al
xor eax, eax
add esi, 0x10
mov byte [ebp - 0x13ac], al
mov byte [ebp - 0x1794], al
mov byte [ebp - 0xfc4], al
mov byte [ebp - 0xbdc], al
mov byte [ebp - 0x40c], al
lea eax, [ebp - 0x1b80]
push 3
push eax
push esi
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x4231cf
movzx eax, byte [esi + 3]
mov edx, edi
push 3
lea ecx, [esi + eax*2]
lea eax, [ebp - 0x1b80]
sub edx, ecx
push eax
add edx, ebx
call fcn.00417191
pop ecx
pop ecx
test eax, eax
je 0x4231cf
add eax, 4
lea ecx, [ebp - 0x1b80]
mov edx, edi
push 3
sub edx, eax
push ecx
add edx, ebx
mov ecx, eax
call fcn.00417191
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4231cf
mov al, byte [ecx + 3]
xor edx, edx
push edx
push edx
push 0x3e8
movzx esi, al
add ecx, 4
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x1b84], ecx
push eax
push esi
push ecx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x1b84]
add eax, 4
mov byte [ebp + esi - 0x40c], 0
push 3
lea esi, [eax + esi*2]
lea eax, [ebp - 0x1b80]
push eax
push esi
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x4231cf
mov bl, byte [esi + 3]
add esi, 4
movzx eax, bl
add eax, eax
push eax
mov dword [ebp - 0x1b84], eax
lea eax, [ebp - 0xbdc]
push esi
push eax
call fcn.00638b30
add esp, 0xc
test bl, bl
mov ebx, dword [ebp - 0x1b84]
je 0x423107
push ecx
lea eax, [ebp - 0x1794]
mov edx, ebx
push eax
lea ecx, [ebp - 0xbdc]
call fcn.00422cf9
pop ecx
pop ecx
push 3
lea eax, [ebp - 0x1b80]
add esi, ebx
push eax
push esi
call fcn.00639b07
add esp, 0xc
test eax, eax
jne 0x4231c9
mov bl, byte [esi + 3]
add esi, 4
movzx eax, bl
add eax, eax
push eax
mov dword [ebp - 0x1b84], eax
lea eax, [ebp - 0xfc4]
push esi
push eax
call fcn.00638b30
add esp, 0xc
test bl, bl
mov ebx, dword [ebp - 0x1b84]
je 0x423166
push ecx
lea eax, [ebp - 0x13ac]
mov edx, ebx
push eax
lea ecx, [ebp - 0xfc4]
call fcn.00422cf9
pop ecx
pop ecx
push 0xffffffffffffffff
mov ecx, 0x6c5bb9
lea eax, [ebp - 0x13ac]
push ecx
push eax
lea eax, [ebp - 0x1794]
push eax
lea eax, [ebp - 0x40c]
push eax
push ecx
mov ecx, dword [ebp - 0x1b94]
push 0x134
push 4
call fcn.0043ee6b
add esi, ebx
lea eax, [ebp - 0x18]
mov ebx, dword [ebp - 0x1b90]
mov edx, edi
inc byte [ebp - 0x14]
sub edx, esi
push 0x10
push eax
add edx, ebx
mov ecx, esi
call fcn.00417191
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4231cf
lea eax, [edi + ebx]
cmp esi, eax
jbe 0x422fe6
jmp 0x4231cf
mov ebx, dword [ebp - 0x1b90]
lea ecx, [ebp - 0x7f4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1b88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edi, dword [ebp - 0x1b98]
push edi
call esi
xor eax, eax
inc eax
jmp 0x422f3b