Function at 0x1000c9f0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1005f00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
jne 0x1000cd05
xorps xmm0, xmm0
lea edi, [esi + 0x5d120]
push edi
movlpd qword [ebp - 0x240], xmm0
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 0xc], ax
xor eax, eax
push eax
push eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000cdd0
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
cmp ecx, 0xffffffff
jne 0x1000ca6e
cmp eax, ecx
je 0x1000ca9d
cmp dword [ebp - 0x23c], eax
ja 0x1000ca9d
jb 0x1000ca80
cmp dword [ebp - 0x240], ecx
ja 0x1000ca9d
mov dword [esi + 0x2470], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100170ad
mov esp, ebp
pop ebp
ret
push 0
push 0x20
push 4
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x1000cdba
cmp dword [esi + 0x26f0], 0
je 0x1000cd05
mov eax, dword [esi + 0x26e4]
lea ebx, [esi + 0x26e4]
push 0x208
mov dword [ebx + 4], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0
call fcn.1002f0c0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x228], xmm0
push 2
push 0
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x6a
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x21c], 0x6a
jne 0x1000cd1b
mov ecx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x218]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000cb86
test dx, dx
je 0x1000cb82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000cb86
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000cb60
xor eax, eax
jmp 0x1000cb8b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000cd1b
push 1
push eax
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x238]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x238]
add eax, dword [ebp - 0x21c]
push 1
push 0
neg eax
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
lea eax, [ebp - 0x230]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
jbe 0x1000ccd1
mov eax, dword [ebp - 0x224]
lea edi, [esi + 0x5cfb8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0x20
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x18]
add dword [edi + 8], eax
mov eax, dword [edi + 0x1c]
adc dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 8]
mov eax, dword [edi + 0x14]
sbb eax, dword [edi + 0xc]
add ecx, 1
mov edx, dword [ebp - 0x22c]
adc eax, 0
mov dword [edi], 0
add dword [ebp - 0x234], ecx
mov dword [edi + 4], 0
adc edx, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebx + 4]
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x224], edi
cmp dword [ebx + 8], eax
je 0x1000cc98
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x1000ccad
lea ecx, [ebp - 0x224]
push ecx
push eax
mov ecx, ebx
call fcn.1000d9a0
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x220]
add edi, 0x20
inc eax
mov dword [ebp - 0x220], eax
cmp eax, dword [ebp - 0x230]
jb 0x1000cc20
mov eax, dword [ebp - 0x234]
jmp 0x1000ccdd
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
mov ecx, dword [esi + 0x5d100]
sub ecx, eax
mov eax, dword [esi + 0x5d104]
mov dword [esi + 0x5d118], ecx
sbb eax, edx
mov dword [esi + 0x5d110], ecx
mov dword [esi + 0x5d11c], eax
mov dword [esi + 0x5d114], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100170ad
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2468]
test eax, eax
jne 0x1000cd31
mov dword [esi + 0x2468], 5
jmp 0x1000cd40
cmp eax, 0xa
jbe 0x1000cd40
mov dword [esi + 0x2468], 0xa
mov dword [esi + 0x5cfc0], 0
mov ecx, ebx
mov dword [esi + 0x5cfc4], 0
mov edx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
add edx, 0xffffffff
mov dword [esi + 0x5cfc8], edx
adc eax, 0xffffffff
mov dword [esi + 0x5cfcc], eax
lea eax, [esi + 0x5cfb8]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
call fcn.1000d760
mov eax, dword [esi + 0x5d104]
push 0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0x5d100]
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1000cd05
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100170ad
mov esp, ebp
pop ebp
ret