Function at 0x1000d460
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 0x100a8d0e
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100db3fc]
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.10002a80
mov ecx, eax
test ecx, ecx
je 0x1000daf1
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.10002a80
mov ecx, eax
test ecx, ecx
je 0x1000dafb
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 0x1000da85
push edi
call eax
test eax, eax
je 0x1000da80
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 0x1000d546
cmp eax, 0xffffffff
jne 0x1000d6fd
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x88], edi
call fcn.10002a80
mov ecx, eax
test ecx, ecx
je 0x1000db05
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 0x1000d589
movzx eax, ax
push eax
call fcn.10003390
jmp 0x1000d593
push str.cache
call fcn.10003570
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
call fcn.1000c5e0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push eax
call fcn.10015060
push dword [eax]
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push str._s_dir
push eax
call fcn.1000d320
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 0x1000d5ef
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 0x1000d61f
push 0x105
lea ecx, [ebp - 0xa8]
call fcn.10002590
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 8], 0x105
jl 0x1000db0f
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 0x1000d6c1
call fcn.1005d530
test eax, eax
je 0x1000da4b
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000da4b
call fcn.1005d530
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100064c0
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 5
call fcn.10007110
push dword [ebp - 0x80]
push edi
call fcn.1000d070
push 0x100afe7c
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x7c]
jmp 0x1000da37
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 0x1000d9db
cmp eax, 0xffffffff
je 0x1000d9db
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.100027b0
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10011300
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 0x1000d7a5
call fcn.1005d530
test eax, eax
je 0x1000da6d
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000da6d
call fcn.1005d530
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100064c0
mov edi, eax
push str.error_GetFileSizeEx_
push edi
mov byte [ebp - 4], 7
call fcn.10007110
push dword [ebp - 0x80]
push edi
call fcn.1000d070
push 0x100afe7c
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100071d0
jmp 0x1000da6d
mov eax, dword [ebp - 0x98]
or eax, dword [ebp - 0x94]
je 0x1000d92a
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 0x1000d849
call fcn.1005d530
test eax, eax
je 0x1000da6d
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000da6d
call fcn.1005d530
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x7c], eax
call fcn.100064c0
mov edi, eax
push str.error_CreateFileMapping_
push edi
mov byte [ebp - 4], 8
call fcn.10007110
push dword [ebp - 0x80]
push edi
call fcn.1000d070
push 0x100afeb4
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x7c]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100071d0
jmp 0x1000da6d
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 0x1000d92a
mov ecx, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x90], ecx
jl 0x1000d88a
cmp ecx, edi
jae 0x1000d92a
mov edx, dword [ebp - 0x9c]
sub edi, ecx
sbb eax, edx
mov dword [ebp - 0x88], eax
js 0x1000d8ab
jg 0x1000d8a6
cmp edi, 0x400000
jb 0x1000d8ab
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 0x1000d966
push edi
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.10011350
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 0x1000d91a
mov edi, dword [ebp - 0x98]
jmp 0x1000d890
jg 0x1000d92a
mov edi, dword [ebp - 0x98]
cmp ecx, edi
jb 0x1000d890
lea eax, [ebp - 0x78]
mov dword [ebp - 0xac], 1
push eax
call fcn.100111f0
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 0x1000da6d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
jmp 0x1000da73
call fcn.1005d530
test eax, eax
je 0x1000d94a
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000d94a
call fcn.1005d530
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.100064c0
mov edi, eax
push str.error_MapViewOfFile_
push edi
mov byte [ebp - 4], 9
call fcn.10007110
push dword [ebp - 0x80]
push edi
call fcn.1000d070
push 0x100afe7c
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100071d0
jmp 0x1000d94a
call fcn.1005d530
test eax, eax
je 0x1000da4b
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000da4b
call fcn.1005d530
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], eax
call fcn.100064c0
mov edi, eax
push str.error_CreateFile_
push edi
mov byte [ebp - 4], 6
call fcn.10007110
push dword [ebp - 0x80]
push edi
call fcn.1000d070
push 0x100afe7c
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x14c]
call fcn.100071d0
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 0x1000da6d
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 0x1000da80
push eax
call edi
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call eax
test eax, eax
je 0x1000da93
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 0x1000dab4
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 0x1000dad0
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.1006a60c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80070057
call fcn.10001670
int3