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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b0bd
mov eax, dword fs:[0]
push eax
sub esp, 0x874
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 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 0x40dcdd
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x838]
call fcn.00403460
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 0x40e089
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 1
push 0
push eax
call fcn.004f0080
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40dd5f
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 0x40de35
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 0x40ddc0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.00403460
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 0x40dfea
mov ecx, str.FAT32
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40dfea
add ecx, 2
sub edx, 1
jne 0x40de20
mov ebx, dword [ebp - 0x858]
mov byte [ebp - 0x839], 0
mov ecx, dword [ebp - 0x840]
test cl, 2
je 0x40de96
mov eax, dword [ebp - 0x844]
and ecx, 0xfffffffd
mov dword [ebp - 0x840], ecx
cmp eax, 8
jb 0x40de96
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40de86
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e0f4
push ecx
push ebx
call fcn.004ee3ca
mov ecx, dword [ebp - 0x840]
add esp, 8
mov dword [ebp - 4], 0
test cl, 1
je 0x40dee2
mov eax, dword [ebp - 0x868]
cmp eax, 8
jb 0x40dee2
mov edx, dword [ebp - 0x87c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ded8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e0f4
push ecx
push edx
call fcn.004ee3ca
add esp, 8
cmp byte [ebp - 0x839], 0
jne 0x40e089
mov edx, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x820]
call fcn.004ee950
mulsd xmm0, qword [0x54f928]
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 0x40df4b
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x858]
call fcn.00403460
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
cmovae ecx, dword [ebp - 0x858]
call fcn.0040d050
mov esi, dword [ebp - 0x864]
mov edx, dword [ebp - 0x844]
mov byte [esi], al
cmp edx, 8
jb 0x40dfbd
mov ecx, dword [ebp - 0x858]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dfb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e0f4
push edx
push ecx
call fcn.004ee3ca
add esp, 8
cmp byte [esi], 0
je 0x40e094
movsd xmm0, qword [ebp - 0x860]
cvttsd2si eax, xmm0
cmp eax, 0x4400
jle 0x40e094
mulsd xmm0, qword [0x54f970]
jmp 0x40e08c
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 0x40e011
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x858]
call fcn.00403460
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 0x40e07d
mov ecx, str.NTFS
lea edx, [eax - 3]
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x40e07d
add ecx, 2
sub edx, 1
jne 0x40e067
jmp 0x40de3b
mov byte [ebp - 0x839], 1
jmp 0x40de42
xorps xmm0, xmm0
movsd qword [ebp - 0x860], xmm0
mov edx, dword [ebp - 0x824]
cmp edx, 8
jb 0x40e0d0
mov ecx, dword [ebp - 0x838]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e0f4
push edx
push ecx
call fcn.004ee3ca
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.004edf30
mov esp, ebp
pop ebp
ret
call fcn.004f890c
int3