Function at 0x1c7be10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [esp + 0x28], eax
mov bl, 1
cmp dword [ecx + 8], 0
jne 0x1c7bf30
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea edi, [ecx + 0x5d120]
push edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
mov word [esp + 0x20], ax
mov dword [esp + 0x22], 0x5c003a
mov word [esp + 0x26], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1c7bf2e
mov ecx, dword [esi + 0x5d100]
mov eax, dword [esi + 0x5d104]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x1c7beb0
cmp ecx, dword [esp + 0x18]
sbb eax, dword [esp + 0x1c]
jb 0x1c7beb0
mov dword [esi + 0x2470], 2
jmp 0x1c7bf2e
sub esp, 0x1c
movaps xmm0, xmmword [0x1ce9e70]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x1c7bf18
mov bl, 1
cmp byte [esi + 0x26f0], 0
je 0x1c7bf30
mov eax, dword [esi + 0x26e4]
mov dword [esi + 0x26e8], eax
mov ecx, esi
call fcn.01c7c5a0
test al, al
jne 0x1c7bf30
mov ecx, dword [esi + 0x2468]
test ecx, ecx
je 0x1c7bf45
mov eax, 0xa
cmp ecx, 0xb
jae 0x1c7bf4a
jmp 0x1c7bf50
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor ebx, ebx
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.01cb3141
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 5
mov dword [esi + 0x2468], eax
lea edx, [esi + 0x5cfb8]
mov dword [esi + 0x5cfc4], 0
mov dword [esi + 0x5cfc0], 0
mov eax, dword [esi + 0x5d104]
mov ecx, dword [esi + 0x5d100]
add ecx, 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 0x5cfc8], ecx
mov dword [esi + 0x5cfcc], eax
mov edi, dword [esi + 0x26e8]
mov eax, dword [esi + 0x26ec]
cmp edi, eax
jae 0x1c7bfa8
mov dword [edi], edx
add edi, 4
mov dword [esi + 0x26e8], edi
jmp 0x1c7c081
mov dword [esp + 8], edx
lea ecx, [esi + 0x26e4]
mov dword [esp + 0xc], ecx
mov edx, dword [ecx]
sub edi, edx
sar edi, 2
lea ecx, [edi + 1]
cmp ecx, 0x40000000
jae 0x1c7c0b0
sub eax, edx
mov edx, eax
sar edx, 2
sar eax, 1
cmp eax, ecx
cmovb eax, ecx
cmp edx, 0x1fffffff
mov ecx, 0x3fffffff
cmovb ecx, eax
test ecx, ecx
je 0x1c7c012
cmp ecx, 0x40000000
jae 0x1c7c0b9
lea eax, [ecx*4]
push eax
mov dword [esp + 8], ecx
call fcn.01cb30d6
mov ecx, dword [esp + 8]
add esp, 4
jmp 0x1c7c014
xor eax, eax
lea edx, [eax + edi*4]
lea ecx, [eax + ecx*4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 8]
mov dword [eax + edi*4], ecx
lea eax, [eax + edi*4 + 4]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x26e4]
mov ecx, dword [esi + 0x26e8]
sub ecx, eax
sub edx, ecx
test ecx, ecx
jle 0x1c7c05a
push ecx
push eax
push edx
mov dword [esp + 0x1c], edx
call fcn.01cb6be0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x26e4], edx
mov ecx, dword [esp + 8]
mov dword [esi + 0x26e8], ecx
mov ecx, dword [esp + 4]
mov dword [esi + 0x26ec], ecx
test eax, eax
je 0x1c7c081
push eax
call fcn.01cb3106
add esp, 4
mov eax, dword [esi + 0x5d100]
mov ecx, dword [esi + 0x5d104]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1c7bf30
mov ecx, dword [esp + 0xc]
call fcn.01c41eac
call fcn.01cc6b80
int3