Function at 0x40c0f0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b715d
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x4e843c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x864], edx
mov esi, ecx
mov dword [ebp - 0x85c], 0
xor eax, eax
mov ecx, 3
mov dword [ebp - 0x838], 0
cmp dword [esi + 0x10], ecx
mov word [ebp - 0x838], ax
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 7
jb 0x40c16d
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x838]
call fcn.004046c0
mov eax, 4
mov dword [ebp - 0x840], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x820]
cmp dword [ebp - 0x824], 8
lea eax, [ebp - 0x838]
push 0
cmovae eax, dword [ebp - 0x838]
xorps xmm0, xmm0
push 0
push ecx
push eax
movq qword [ebp - 0x820], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40c519
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push 0
push eax
call fcn.00493ec0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40c1ef
mov eax, dword [esi]
push 0x400
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40c2c5
xor eax, eax
mov dword [ebp - 0x87c], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x86c], 0
mov dword [ebp - 0x868], 7
lea edx, [ecx + 2]
mov word [ebp - 0x87c], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c250
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.004046c0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x87c]
cmp dword [ebp - 0x868], 8
mov eax, 5
mov dword [ebp - 0x840], eax
cmovae edi, dword [ebp - 0x87c]
mov dword [ebp - 0x85c], eax
cmp dword [ebp - 0x86c], eax
jne 0x40c47a
mov ecx, str.FAT32
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40c47a
add ecx, 2
sub edx, 1
jne 0x40c2b0
mov ebx, dword [ebp - 0x858]
mov byte [ebp - 0x839], 0
mov ecx, dword [ebp - 0x840]
test cl, 2
je 0x40c326
mov eax, dword [ebp - 0x844]
and ecx, 0xfffffffd
mov dword [ebp - 0x840], ecx
cmp eax, 8
jb 0x40c326
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40c316
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c584
push ecx
push ebx
call fcn.00491f22
mov ecx, dword [ebp - 0x840]
add esp, 8
mov dword [ebp - 4], 0
test cl, 1
je 0x40c372
mov eax, dword [ebp - 0x868]
cmp eax, 8
jb 0x40c372
mov edx, dword [ebp - 0x87c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c368
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c584
push ecx
push edx
call fcn.00491f22
add esp, 8
cmp byte [ebp - 0x839], 0
jne 0x40c519
mov edx, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x820]
call fcn.004927c0
mulsd xmm0, qword [0x4d9ca0]
xor eax, eax
mov ecx, 2
mov dword [ebp - 0x858], 0
cmp dword [esi + 0x10], ecx
mov dword [ebp - 0x848], 0
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
movsd qword [ebp - 0x860], xmm0
mov dword [ebp - 0x844], 7
mov word [ebp - 0x858], ax
jb 0x40c3db
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x858]
call fcn.004046c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
cmovae ecx, dword [ebp - 0x858]
call fcn.0040b510
mov esi, dword [ebp - 0x864]
mov edx, dword [ebp - 0x844]
mov byte [esi], al
cmp edx, 8
jb 0x40c44d
mov ecx, dword [ebp - 0x858]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c443
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c584
push edx
push ecx
call fcn.00491f22
add esp, 8
cmp byte [esi], 0
je 0x40c524
movsd xmm0, qword [ebp - 0x860]
cvttsd2si eax, xmm0
cmp eax, 0x4400
jle 0x40c524
mulsd xmm0, qword [0x4d9ce0]
jmp 0x40c51c
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x848], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x844], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4a1
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x858]
call fcn.004046c0
cmp dword [ebp - 0x844], 8
lea edi, [ebp - 0x858]
mov ebx, dword [ebp - 0x858]
mov eax, 7
cmovae edi, ebx
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x848], 4
jne 0x40c50d
mov ecx, str.NTFS
lea edx, [eax - 3]
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40c50d
add ecx, 2
sub edx, 1
jne 0x40c4f7
jmp 0x40c2cb
mov byte [ebp - 0x839], 1
jmp 0x40c2d2
xorps xmm0, xmm0
movsd qword [ebp - 0x860], xmm0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x40c560
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c556
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c584
push edx
push ecx
call fcn.00491f22
add esp, 8
movsd xmm0, qword [ebp - 0x860]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00491a8a
mov esp, ebp
pop ebp
ret
call fcn.0049b75b
int3