Function at 0x1000d5f0
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 0x100a8e8e
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100db55c]
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.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000dc81
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.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000dc8b
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 0x1000dc15
push edi
call eax
test eax, eax
je 0x1000dc10
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 0x1000d6d6
cmp eax, 0xffffffff
jne 0x1000d88d
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x88], edi
call fcn.10002c20
mov ecx, eax
test ecx, ecx
je 0x1000dc95
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 0x1000d719
movzx eax, ax
push eax
call fcn.10003520
jmp 0x1000d723
push str.cache
call fcn.10003700
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call fcn.1000c770
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
call fcn.100151e0
push dword [eax]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push str._s_dir
push eax
call fcn.1000d4b0
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 0x1000d77f
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 0x1000d7af
push 0x105
lea ecx, [ebp - 0xa8]
call fcn.10002730
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 8], 0x105
jl 0x1000dc9f
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 0x1000d851
call fcn.1005d6c0
test eax, eax
je 0x1000dbdb
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dbdb
call fcn.1005d6c0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10006650
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 5
call fcn.100072a0
push dword [ebp - 0x80]
push edi
call fcn.1000d200
push 0x100afe8c
push edi
call fcn.100072a0
mov ecx, dword [ebp - 0x7c]
jmp 0x1000dbc7
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 0x1000db6b
cmp eax, 0xffffffff
je 0x1000db6b
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.10002950
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10011490
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 0x1000d935
call fcn.1005d6c0
test eax, eax
je 0x1000dbfd
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dbfd
call fcn.1005d6c0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10006650
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 7
call fcn.100072a0
push dword [ebp - 0x80]
push edi
call fcn.1000d200
push 0x100afe8c
push edi
call fcn.100072a0
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10007360
jmp 0x1000dbfd
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x1000daba
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 0x1000d9d9
call fcn.1005d6c0
test eax, eax
je 0x1000dbfd
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dbfd
call fcn.1005d6c0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.10006650
mov edi, eax
push str.error_CreateFileMapping_
push edi
mov byte [ebp - 4], 8
call fcn.100072a0
push dword [ebp - 0x80]
push edi
call fcn.1000d200
push 0x100afec4
push edi
call fcn.100072a0
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10007360
jmp 0x1000dbfd
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 0x1000daba
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
jl 0x1000da1a
cmp ecx, edi
jae 0x1000daba
mov edx, dword [ebp - 0x9c]
sub edi, ecx
sbb eax, edx
mov dword [ebp - 0x88], eax
js 0x1000da3b
jg 0x1000da36
cmp edi, 0x400000
jb 0x1000da3b
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 0x1000daf6
push edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100114e0
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 0x1000daaa
mov edi, dword [ebp - 0x98]
jmp 0x1000da20
jg 0x1000daba
mov edi, dword [ebp - 0x98]
cmp ecx, edi
jb 0x1000da20
lea eax, [ebp - 0x78]
mov dword [ebp - 0xac], 1
push eax
call fcn.10011380
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 0x1000dbfd
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x1000dc03
call fcn.1005d6c0
test eax, eax
je 0x1000dada
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dada
call fcn.1005d6c0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10006650
mov edi, eax
push str.error_MapViewOfFile_
push edi
mov byte [ebp - 4], 9
call fcn.100072a0
push dword [ebp - 0x80]
push edi
call fcn.1000d200
push 0x100afe8c
push edi
call fcn.100072a0
mov ecx, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10007360
jmp 0x1000dada
call fcn.1005d6c0
test eax, eax
je 0x1000dbdb
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dbdb
call fcn.1005d6c0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.10006650
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 6
call fcn.100072a0
push dword [ebp - 0x80]
push edi
call fcn.1000d200
push 0x100afe8c
push edi
call fcn.100072a0
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.10007360
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 0x1000dbfd
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 0x1000dc10
push eax
call edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
je 0x1000dc23
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 0x1000dc44
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 0x1000dc60
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.1006a7ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001810
push 0x80004005
call fcn.10001810
push 0x80004005
call fcn.10001810
push 0x80070057
call fcn.10001810
int3