Function at 0x1000d850
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 0x100a7ace
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100db774]
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.10002e80
mov ecx, eax
test ecx, ecx
je 0x1000dee1
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.10002e80
mov ecx, eax
test ecx, ecx
je 0x1000deeb
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 0x1000de75
push edi
call eax
test eax, eax
je 0x1000de70
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 0x1000d936
cmp eax, 0xffffffff
jne 0x1000daed
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x88], edi
call fcn.10002e80
mov ecx, eax
test ecx, ecx
je 0x1000def5
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 0x1000d979
movzx eax, ax
push eax
call fcn.10003780
jmp 0x1000d983
push str.cache
call fcn.10003960
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call fcn.1000c9d0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
call fcn.10015440
push dword [eax]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push str._s_dir
push eax
call fcn.1000d710
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 0x1000d9df
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 0x1000da0f
push 0x105
lea ecx, [ebp - 0xa8]
call fcn.10002990
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 8], 0x105
jl 0x1000deff
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 0x1000dab1
call fcn.1005c2e0
test eax, eax
je 0x1000de3b
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000de3b
call fcn.1005c2e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100068b0
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 5
call fcn.10007500
push dword [ebp - 0x80]
push edi
call fcn.1000d460
push 0x100aee9c
push edi
call fcn.10007500
mov ecx, dword [ebp - 0x7c]
jmp 0x1000de27
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 0x1000ddcb
cmp eax, 0xffffffff
je 0x1000ddcb
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.10002bb0
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.100116d0
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 0x1000db95
call fcn.1005c2e0
test eax, eax
je 0x1000de5d
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000de5d
call fcn.1005c2e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100068b0
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 7
call fcn.10007500
push dword [ebp - 0x80]
push edi
call fcn.1000d460
push 0x100aee9c
push edi
call fcn.10007500
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100075c0
jmp 0x1000de5d
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x1000dd1a
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 0x1000dc39
call fcn.1005c2e0
test eax, eax
je 0x1000de5d
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000de5d
call fcn.1005c2e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100068b0
mov edi, eax
push str.error_CreateFileMapping_
push edi
mov byte [ebp - 4], 8
call fcn.10007500
push dword [ebp - 0x80]
push edi
call fcn.1000d460
push 0x100aeed4
push edi
call fcn.10007500
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100075c0
jmp 0x1000de5d
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 0x1000dd1a
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
jl 0x1000dc7a
cmp ecx, edi
jae 0x1000dd1a
mov edx, dword [ebp - 0x9c]
sub edi, ecx
sbb eax, edx
mov dword [ebp - 0x88], eax
js 0x1000dc9b
jg 0x1000dc96
cmp edi, 0x400000
jb 0x1000dc9b
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 0x1000dd56
push edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10011720
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 0x1000dd0a
mov edi, dword [ebp - 0x98]
jmp 0x1000dc80
jg 0x1000dd1a
mov edi, dword [ebp - 0x98]
cmp ecx, edi
jb 0x1000dc80
lea eax, [ebp - 0x78]
mov dword [ebp - 0xac], 1
push eax
call fcn.100115c0
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 0x1000de5d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x1000de63
call fcn.1005c2e0
test eax, eax
je 0x1000dd3a
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000dd3a
call fcn.1005c2e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.100068b0
mov edi, eax
push str.error_MapViewOfFile_
push edi
mov byte [ebp - 4], 9
call fcn.10007500
push dword [ebp - 0x80]
push edi
call fcn.1000d460
push 0x100aee9c
push edi
call fcn.10007500
mov ecx, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100075c0
jmp 0x1000dd3a
call fcn.1005c2e0
test eax, eax
je 0x1000de3b
call fcn.1005c2e0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000de3b
call fcn.1005c2e0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.100068b0
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 6
call fcn.10007500
push dword [ebp - 0x80]
push edi
call fcn.1000d460
push 0x100aee9c
push edi
call fcn.10007500
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100075c0
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 0x1000de5d
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 0x1000de70
push eax
call edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
je 0x1000de83
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 0x1000dea4
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 0x1000dec0
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.100693bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001a70
push 0x80004005
call fcn.10001a70
push 0x80004005
call fcn.10001a70
push 0x80070057
call fcn.10001a70
int3