Function at 0x10009600
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 0x1009d11e
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100cd4bc]
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.10001d50
mov ecx, eax
test ecx, ecx
je 0x10009c91
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.10001d50
mov ecx, eax
test ecx, ecx
je 0x10009c9b
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 0x10009c25
push edi
call eax
test eax, eax
je 0x10009c20
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 0x100096e6
cmp eax, 0xffffffff
jne 0x1000989d
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x88], edi
call fcn.10001d50
mov ecx, eax
test ecx, ecx
je 0x10009ca5
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 0x10009729
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x10009733
push str.cache
call fcn.100020f0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call fcn.10008780
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
call fcn.100111f0
push dword [eax]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push str._s_dir
push eax
call fcn.100094c0
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 0x1000978f
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 0x100097bf
push 0x105
lea ecx, [ebp - 0xa8]
call fcn.10001860
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 8], 0x105
jl 0x10009caf
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 0x10009861
call fcn.10054ac0
test eax, eax
je 0x10009beb
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009beb
call fcn.10054ac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003290
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 5
call fcn.10003e90
push dword [ebp - 0x80]
push edi
call fcn.10009210
push 0x100a3c98
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x7c]
jmp 0x10009bd7
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 0x10009b7b
cmp eax, 0xffffffff
je 0x10009b7b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.10001a80
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.1000d4a0
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 0x10009945
call fcn.10054ac0
test eax, eax
je 0x10009c0d
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009c0d
call fcn.10054ac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003290
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 7
call fcn.10003e90
push dword [ebp - 0x80]
push edi
call fcn.10009210
push 0x100a3c98
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10003f50
jmp 0x10009c0d
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x10009aca
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 0x100099e9
call fcn.10054ac0
test eax, eax
je 0x10009c0d
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009c0d
call fcn.10054ac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10003290
mov edi, eax
push str.error_CreateFileMapping_
push edi
mov byte [ebp - 4], 8
call fcn.10003e90
push dword [ebp - 0x80]
push edi
call fcn.10009210
push 0x100a3cd0
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10003f50
jmp 0x10009c0d
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 0x10009aca
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
jl 0x10009a2a
cmp ecx, edi
jae 0x10009aca
mov edx, dword [ebp - 0x9c]
sub edi, ecx
sbb eax, edx
mov dword [ebp - 0x88], eax
js 0x10009a4b
jg 0x10009a46
cmp edi, 0x400000
jb 0x10009a4b
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 0x10009b06
push edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1000d4f0
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 0x10009aba
mov edi, dword [ebp - 0x98]
jmp 0x10009a30
jg 0x10009aca
mov edi, dword [ebp - 0x98]
cmp ecx, edi
jb 0x10009a30
lea eax, [ebp - 0x78]
mov dword [ebp - 0xac], 1
push eax
call fcn.1000d390
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 0x10009c0d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x10009c13
call fcn.10054ac0
test eax, eax
je 0x10009aea
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009aea
call fcn.10054ac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10003290
mov edi, eax
push str.error_MapViewOfFile_
push edi
mov byte [ebp - 4], 9
call fcn.10003e90
push dword [ebp - 0x80]
push edi
call fcn.10009210
push 0x100a3c98
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10003f50
jmp 0x10009aea
call fcn.10054ac0
test eax, eax
je 0x10009beb
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10009beb
call fcn.10054ac0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10003290
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 6
call fcn.10003e90
push dword [ebp - 0x80]
push edi
call fcn.10009210
push 0x100a3c98
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10003f50
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 0x10009c0d
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 0x10009c20
push eax
call edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
je 0x10009c33
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 0x10009c54
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 0x10009c70
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.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
int3