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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7222
mov eax, dword fs:[0]
push eax
sub esp, 0x868
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 esi, ecx
mov dword [ebp - 0x840], 0
xor eax, eax
mov ecx, 3
mov dword [ebp - 0x834], 0
cmp dword [esi + 0x10], ecx
mov word [ebp - 0x834], ax
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 7
jb 0x40c7c7
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x834]
call fcn.004046c0
mov eax, 4
mov dword [ebp - 0x83c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x81c]
cmp dword [ebp - 0x820], 8
lea eax, [ebp - 0x834]
push 0
cmovae eax, dword [ebp - 0x834]
xorps xmm0, xmm0
push 0
push ecx
push eax
movq qword [ebp - 0x81c], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40ca7a
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push 0
push eax
call fcn.00493ec0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40c847
mov esi, dword [esi]
push 0x400
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40c9b2
xor eax, eax
mov dword [ebp - 0x874], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 7
lea edx, [ecx + 2]
mov word [ebp - 0x874], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c8a1
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x874]
call fcn.004046c0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x874]
cmp dword [ebp - 0x860], 8
mov eax, 5
mov ebx, dword [ebp - 0x874]
cmovae esi, ebx
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x864], eax
jne 0x40c916
mov ecx, str.FAT32
mov edx, eax
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40c916
add ecx, 2
sub edx, 1
jne 0x40c900
jmp 0x40c9b8
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x84c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x848], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c940
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x85c]
call fcn.004046c0
cmp dword [ebp - 0x848], 8
lea esi, [ebp - 0x85c]
mov edi, dword [ebp - 0x85c]
mov eax, 7
cmovae esi, edi
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x84c], 4
jne 0x40c9a9
mov ecx, str.NTFS
lea edx, [eax - 3]
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40c9a9
add ecx, 2
sub edx, 1
jne 0x40c996
jmp 0x40c9be
mov byte [ebp - 0x835], 1
jmp 0x40c9c5
mov ebx, dword [ebp - 0x874]
mov edi, dword [ebp - 0x85c]
mov byte [ebp - 0x835], 0
mov eax, dword [ebp - 0x83c]
test al, 2
je 0x40ca18
mov ecx, dword [ebp - 0x848]
and eax, 0xfffffffd
mov dword [ebp - 0x83c], eax
cmp ecx, 8
jb 0x40ca18
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40ca08
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cae5
push ecx
push edi
call fcn.00491f22
mov eax, dword [ebp - 0x83c]
add esp, 8
test al, 1
je 0x40ca56
mov eax, dword [ebp - 0x860]
cmp eax, 8
jb 0x40ca56
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40ca4c
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cae5
push ecx
push ebx
call fcn.00491f22
add esp, 8
cmp byte [ebp - 0x835], 0
jne 0x40ca7a
mov edx, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x81c]
call fcn.004927c0
mulsd xmm0, qword [0x4d9ca0]
jmp 0x40ca7d
xorps xmm0, xmm0
mov edx, dword [ebp - 0x820]
movsd qword [ebp - 0x844], xmm0
cmp edx, 8
jb 0x40cac1
mov ecx, dword [ebp - 0x834]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cab7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cae5
push edx
push ecx
call fcn.00491f22
add esp, 8
movsd xmm0, qword [ebp - 0x844]
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