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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b66d
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x55e904]
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 0x40e0ed
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x838]
call fcn.004039a0
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 0x40e499
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push 0
push eax
call fcn.004f05a0
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e16f
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 0x40e245
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 0x40e1d0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.004039a0
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 0x40e3fa
mov ecx, str.FAT32
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40e3fa
add ecx, 2
sub edx, 1
jne 0x40e230
mov ebx, dword [ebp - 0x858]
mov byte [ebp - 0x839], 0
mov ecx, dword [ebp - 0x840]
test cl, 2
je 0x40e2a6
mov eax, dword [ebp - 0x844]
and ecx, 0xfffffffd
mov dword [ebp - 0x840], ecx
cmp eax, 8
jb 0x40e2a6
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40e296
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e504
push ecx
push ebx
call fcn.004ee8e8
mov ecx, dword [ebp - 0x840]
add esp, 8
mov dword [ebp - 4], 0
test cl, 1
je 0x40e2f2
mov eax, dword [ebp - 0x868]
cmp eax, 8
jb 0x40e2f2
mov edx, dword [ebp - 0x87c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e2e8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e504
push ecx
push edx
call fcn.004ee8e8
add esp, 8
cmp byte [ebp - 0x839], 0
jne 0x40e499
mov edx, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x820]
call fcn.004eee70
mulsd xmm0, qword [0x54f5d8]
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 0x40e35b
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x858]
call fcn.004039a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
cmovae ecx, dword [ebp - 0x858]
call fcn.0040d460
mov esi, dword [ebp - 0x864]
mov edx, dword [ebp - 0x844]
mov byte [esi], al
cmp edx, 8
jb 0x40e3cd
mov ecx, dword [ebp - 0x858]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e504
push edx
push ecx
call fcn.004ee8e8
add esp, 8
cmp byte [esi], 0
je 0x40e4a4
movsd xmm0, qword [ebp - 0x860]
cvttsd2si eax, xmm0
cmp eax, 0x4400
jle 0x40e4a4
mulsd xmm0, qword [0x54f620]
jmp 0x40e49c
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 0x40e421
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x858]
call fcn.004039a0
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 0x40e48d
mov ecx, str.NTFS
lea edx, [eax - 3]
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40e48d
add ecx, 2
sub edx, 1
jne 0x40e477
jmp 0x40e24b
mov byte [ebp - 0x839], 1
jmp 0x40e252
xorps xmm0, xmm0
movsd qword [ebp - 0x860], xmm0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x40e4e0
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e4d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e504
push edx
push ecx
call fcn.004ee8e8
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.004ee450
mov esp, ebp
pop ebp
ret
call fcn.004f8e2c
int3