Function at 0x10013fa0
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10089b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x100a5428]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x100a5428]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10075b74
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x10014033
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_allocate_memory_in_utilGetDiskSpace_:_d
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002fd0
add esp, 8
xor al, al
jmp 0x10014223
cmp dword [esi + 0x14], 8
jb 0x1001403d
mov eax, dword [esi]
jmp 0x1001403f
mov eax, esi
mov edx, edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10014043
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x2f8], ebx
cmp dword [esi + 0x14], 8
jb 0x10014073
mov eax, dword [esi]
jmp 0x10014075
mov eax, esi
lea ecx, [esp + 0x38]
push ecx
call fcn.100046c0
mov eax, dword [esp + 0x3c]
add esp, 4
cmp dword [esp + 0x4c], 0x10
jae 0x10014091
lea eax, [esp + 0x38]
push ebx
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x100140b6
cmp dword [esi + 0x14], 8
jb 0x100140ab
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10014103
push 0x100929f4
push edi
call fcn.100769ba
add esp, 8
test eax, eax
jne 0x10014103
push str.Failed_to_get_drive_path__n
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002fd0
add esp, 4
push edi
call fcn.1007677a
add esp, 4
cmp dword [esp + 0x4c], 0x10
jb 0x100140fc
mov eax, dword [esp + 0x38]
push eax
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10014223
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10014174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_Disk_Space_:_d
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002fd0
push edi
call fcn.1007677a
add esp, 0xc
cmp dword [esp + 0x4c], 0x10
jb 0x100140fc
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10076031
add esp, 4
xor al, al
jmp 0x10014223
push 0x204
lea edx, [esp + 0xe4]
push ebx
push edx
mov dword [esp + 0xe8], ebx
call fcn.100775d0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push ecx
lea edx, [esp + 0xe4]
push str._llu
push edx
call fcn.1007691b
lea eax, [esp + 0xec]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100141c0
mov esi, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call fcn.10001a60
cmp dword [esi + 0x14], 8
jb 0x100141ed
mov eax, dword [esi]
jmp 0x100141ef
mov eax, esi
push eax
push str.Disk_available_:_s_n
call fcn.100028f0
mov ebx, str.DWANative
call fcn.10002f70
push edi
call fcn.1007677a
add esp, 0xc
cmp dword [esp + 0x4c], 0x10
jb 0x10014221
mov ecx, dword [esp + 0x38]
push ecx
call fcn.10076031
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.10075b7f
mov esp, ebp
pop ebp
ret