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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b182
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x55f904]
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 0x40e337
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x834]
call fcn.00403460
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 0x40e5ea
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push 0
push eax
call fcn.004f0080
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40e3b7
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 0x40e522
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 0x40e411
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x874]
call fcn.00403460
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 0x40e486
mov ecx, str.FAT32
mov edx, eax
sub esi, ecx
nop
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40e486
add ecx, 2
sub edx, 1
jne 0x40e470
jmp 0x40e528
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 0x40e4b0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x85c]
call fcn.00403460
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 0x40e519
mov ecx, str.NTFS
lea edx, [eax - 3]
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40e519
add ecx, 2
sub edx, 1
jne 0x40e506
jmp 0x40e52e
mov byte [ebp - 0x835], 1
jmp 0x40e535
mov ebx, dword [ebp - 0x874]
mov edi, dword [ebp - 0x85c]
mov byte [ebp - 0x835], 0
mov eax, dword [ebp - 0x83c]
test al, 2
je 0x40e588
mov ecx, dword [ebp - 0x848]
and eax, 0xfffffffd
mov dword [ebp - 0x83c], eax
cmp ecx, 8
jb 0x40e588
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40e578
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e655
push ecx
push edi
call fcn.004ee3ca
mov eax, dword [ebp - 0x83c]
add esp, 8
test al, 1
je 0x40e5c6
mov eax, dword [ebp - 0x860]
cmp eax, 8
jb 0x40e5c6
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40e5bc
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e655
push ecx
push ebx
call fcn.004ee3ca
add esp, 8
cmp byte [ebp - 0x835], 0
jne 0x40e5ea
mov edx, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x81c]
call fcn.004ee950
mulsd xmm0, qword [0x54f928]
jmp 0x40e5ed
xorps xmm0, xmm0
mov edx, dword [ebp - 0x820]
movsd qword [ebp - 0x844], xmm0
cmp edx, 8
jb 0x40e631
mov ecx, dword [ebp - 0x834]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e655
push edx
push ecx
call fcn.004ee3ca
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.004edf30
mov esp, ebp
pop ebp
ret
call fcn.004f890c
int3