Function at 0x100f6cc0
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x1010e2b0]
xor eax, esp
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test ecx, ecx
jne 0x100f6d90
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, 0xffffffff
je 0x100f6e54
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x100f6e4e
cmp edi, 0xffffffff
jne 0x100f6d69
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
push 0x57
pop eax
jmp 0x100f6f24
xor edx, edx
call fcn.10032a89
push 0
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100f6d0f
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x100f6d5a
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push edi
jmp 0x100f6d37
mov ecx, edi
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x100f6d0f
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x100f6d16
lea eax, [edi + 0x10]
jmp 0x100f6d1b
mov edx, dword [ebp + 8]
cmp edx, 0x1a
ja 0x100f6ce4
xor eax, eax
lea edi, [esp + 0xc]
stosd dword es:[edi], eax
lea esi, [esp + 0xc]
push 0x5f
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ecx
pop eax
push 0x3a
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [esp + 0x10], ax
mov esi, edx
pop eax
mov word [esp + 0xe], ax
push 0x5c
pop eax
mov word [esp + 0x10], ax
xor eax, eax
neg esi
mov word [esp + 0x12], ax
lea eax, [esp + 0xc]
sbb esi, esi
and esi, eax
test edx, edx
je 0x100f6de7
lea eax, [edx + 0x40]
mov word [esp + 0xc], ax
push ecx
lea eax, [ecx + 4]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x100f6f22
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, 0xffffffff
je 0x100f6e8d
call fcn.10029fa0
mov edi, eax
test edi, edi
je 0x100f6e87
cmp edi, 0xffffffff
jne 0x100f6ef0
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov edx, 0x1010eac0
mov ecx, ebx
call fcn.1003786d
mov dword [edx], eax
mov eax, ebx
jmp 0x100f6f24
mov ecx, dword [0x1010e2c0]
or edx, 0xffffffff
call fcn.10032a89
test eax, eax
je 0x100f6d0f
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
je 0x100f6d2e
jmp 0x100f6d3f
mov ecx, dword [0x1010e2c0]
or edx, 0xffffffff
call fcn.10032a89
test eax, eax
je 0x100f6e32
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov edi, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test edi, edi
jne 0x100f6ec6
xor edx, edx
call fcn.10032a89
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100f6e32
mov edx, edi
call fcn.10032a89
test eax, eax
jne 0x100f6ee1
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push edi
jmp 0x100f6ebb
mov ecx, edi
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test edi, edi
je 0x100f6e32
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add edi, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
je 0x100f6e39
lea edx, [edi + 0x10]
jmp 0x100f6e3e
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret