Function at 0x10009b50
Capabilities:
Check if file exists
Copy file
Delete file
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010fe3e
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x1015e404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa0], 0
call fcn.100020b0
mov ecx, eax
test ecx, ecx
je 0x1000a1e1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], 0
call fcn.100020b0
mov ecx, eax
test ecx, ecx
je 0x1000a1eb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0xb0], eax
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x7c]
xorps xmm0, xmm0
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
movups xmmword [ecx], xmm0
test edi, edi
je 0x1000a175
push edi
call eax
test eax, eax
je 0x1000a170
push 0
push 0x80
push 3
push 0
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x10009c36
cmp eax, 0xffffffff
jne 0x10009ded
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x88], edi
call fcn.100020b0
mov ecx, eax
test ecx, ecx
je 0x1000a1f5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, str.cache
mov byte [ebp - 4], 2
mov ecx, edi
test eax, 0xffff0000
jne 0x10009c79
movzx eax, ax
push eax
call fcn.10002270
jmp 0x10009c83
push str.cache
call fcn.10002450
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call fcn.10008c10
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
call fcn.10013080
push dword [eax]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push str._s_dir
push eax
call fcn.10009990
mov edx, dword [ebp - 0x90]
add esp, 0x1c
mov byte [ebp - 4], 3
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009cdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov edi, dword [ebp - 0x84]
jge 0x10009d0f
push 0x105
lea ecx, [ebp - 0xa8]
call fcn.10001b90
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 8], 0x105
jl 0x1000a1ff
push dword [ebp - 0x80]
xor eax, eax
mov dword [esi - 0xc], 0x105
mov word [esi + 0x20a], ax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push esi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10009db1
call fcn.1005b270
test eax, eax
je 0x1000a13b
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a13b
call fcn.1005b270
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003680
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 5
call fcn.10004280
push dword [ebp - 0x80]
push edi
call fcn.100096e0
push 0x1011b044
push edi
call fcn.10004280
mov ecx, dword [ebp - 0x7c]
jmp 0x1000a127
push 0
push 0x80
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x1000a0cb
cmp eax, 0xffffffff
je 0x1000a0cb
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.10001db0
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.1000d9f0
mov edi, dword [ebp - 0xa4]
lea eax, [ebp - 0x98]
add esp, 8
xorps xmm0, xmm0
movq qword [ebp - 0x98], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10009e95
call fcn.1005b270
test eax, eax
je 0x1000a15d
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a15d
call fcn.1005b270
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003680
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 7
call fcn.10004280
push dword [ebp - 0x80]
push edi
call fcn.100096e0
push 0x1011b044
push edi
call fcn.10004280
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10004340
jmp 0x1000a15d
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x1000a01a
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x10009f39
call fcn.1005b270
test eax, eax
je 0x1000a15d
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a15d
call fcn.1005b270
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003680
mov edi, eax
push str.error_CreateFileMapping_
push edi
mov byte [ebp - 4], 8
call fcn.10004280
push dword [ebp - 0x80]
push edi
call fcn.100096e0
push 0x1011b07c
push edi
call fcn.10004280
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10004340
jmp 0x1000a15d
mov eax, dword [ebp - 0x94]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x9c], edx
cmp edx, eax
jg 0x1000a01a
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
jl 0x10009f7a
cmp ecx, edi
jae 0x1000a01a
mov edx, dword [ebp - 0x9c]
sub edi, ecx
sbb eax, edx
mov dword [ebp - 0x88], eax
js 0x10009f9b
jg 0x10009f96
cmp edi, 0x400000
jb 0x10009f9b
mov edi, 0x400000
push edi
push ecx
push edx
push 4
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x1000a056
push edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000da40
add esp, 0xc
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x9c]
add ecx, 0x400000
mov eax, dword [ebp - 0x94]
adc edx, 0
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x9c], edx
cmp edx, eax
jge 0x1000a00a
mov edi, dword [ebp - 0x98]
jmp 0x10009f80
jg 0x1000a01a
mov edi, dword [ebp - 0x98]
cmp ecx, edi
jb 0x10009f80
lea eax, [ebp - 0x78]
mov dword [ebp - 0xac], 1
push eax
call fcn.1000d8e0
mov eax, dword [ebp - 0x7c]
add esp, 4
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x1000a15d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x1000a163
call fcn.1005b270
test eax, eax
je 0x1000a03a
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a03a
call fcn.1005b270
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10003680
mov edi, eax
push str.error_MapViewOfFile_
push edi
mov byte [ebp - 4], 9
call fcn.10004280
push dword [ebp - 0x80]
push edi
call fcn.100096e0
push 0x1011b044
push edi
call fcn.10004280
mov ecx, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10004340
jmp 0x1000a03a
call fcn.1005b270
test eax, eax
je 0x1000a13b
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000a13b
call fcn.1005b270
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10003680
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 6
call fcn.10004280
push dword [ebp - 0x80]
push edi
call fcn.100096e0
push 0x1011b044
push edi
call fcn.10004280
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10004340
mov edx, dword [ebp - 0x84]
or eax, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a15d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x1000a170
push eax
call edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
je 0x1000a183
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xb0]
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a1a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1000a1c0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067a9c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
push 0x80070057
call fcn.100017c0
int3