Function at 0x1000e160
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
sub esp, 0x620
push esi
lea eax, [esp + 0x210]
push eax
xor esi, esi
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000e485
cmp word [esp + eax*2 + 0x20e], 0x5c
je 0x1000e1ab
xor edx, edx
mov ecx, 0x5c
mov word [esp + eax*2 + 0x210], cx
mov word [esp + eax*2 + 0x212], dx
inc eax
mov ecx, 0x10002c34
cmp dword [0x100017fc], esi
jne 0x1000e1bd
mov ecx, 0x10002c24
push ebx
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea esi, [esp + eax*2 + 0x21c]
push ecx
push esi
call edi
add esp, 8
push 0
push 0x10002c14
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x10002c14
push esi
call edi
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000e279
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 4
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x1000e272
push 0
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x1000e26b
cmp dword [ebx], 0x4643534d
je 0x1000e264
push ebp
push ebx
call fcn.1000f3d0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
cmp word [esp + ebx*2 + 0x12], 0x5c
je 0x1000e2a5
xor ecx, ecx
mov eax, 0x5c
mov word [esp + ebx*2 + 0x14], ax
mov word [esp + ebx*2 + 0x16], cx
inc ebx
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push eax
call fcn.1000a9c0
add esp, 0xc
test eax, eax
je 0x1000e46e
push 0x104
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x422], 0x5c
je 0x1000e2fc
xor eax, eax
mov edx, 0x5c
mov word [esp + ebp*2 + 0x424], dx
mov word [esp + ebp*2 + 0x426], ax
inc ebp
cmp dword [0x100017fc], 0
mov eax, dword [0x1000f820]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [eax + 4]
jne 0x1000e3e1
cmp ecx, 6
jne 0x1000e36b
cmp dword [eax + 8], 0
jne 0x1000e359
mov esi, 0x10002bf0
push esi
lea ecx, [esp + ebx*2 + 0x18]
push ecx
call edi
push esi
lea edx, [esp + ebp*2 + 0x428]
push edx
call edi
lea eax, [esp + 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x1c]
push edx
jmp 0x1000e3a8
cmp ecx, 6
jne 0x1000e36b
cmp dword [eax + 8], 1
jne 0x1000e36b
mov esi, 0x10002bcc
jmp 0x1000e327
cmp ecx, 0xa
jne 0x1000e41b
cmp dword [eax + 8], 0
jne 0x1000e41b
push 0x10002bb4
lea eax, [esp + ebx*2 + 0x18]
push eax
call edi
push 0x10002bb4
lea ecx, [esp + ebp*2 + 0x428]
push ecx
call edi
push 0
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [0x100017fc], 0
je 0x1000e41b
push 0x10002b90
lea esi, [esp + ebx*2 + 0x18]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0x10002b6c
push esi
call edi
lea edx, [esp + 0x14]
push edx
call ebx
jmp 0x1000e443
cmp ecx, 6
jne 0x1000e40b
cmp dword [eax + 8], 0
jne 0x1000e3f6
mov esi, 0x10002b90
jmp 0x1000e327
cmp ecx, 6
jne 0x1000e40b
cmp dword [eax + 8], 1
jne 0x1000e40b
mov esi, 0x10002b6c
jmp 0x1000e327
cmp ecx, 0xa
jne 0x1000e3ae
cmp dword [eax + 8], 0
jne 0x1000e3ae
jmp 0x1000e37e
push 0x10002bf0
lea esi, [esp + ebx*2 + 0x18]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x14]
push eax
call ebx
push 0x10002bcc
push esi
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0x10002bb4
push esi
call edi
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x21c]
push eax
mov esi, 1
call ebx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x620
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
call ebx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x620
ret