Function at 0x432740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x26c], ebx
xor eax, eax
push esi
mov word [ebp - 0x24c], ax
mov eax, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432782
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x24c]
call fcn.00406030
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004177c0
add esp, 4
test al, al
je 0x4327dc
cmp dword [ebp - 0x238], 8
jb 0x4327c9
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406cf9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
xor eax, eax
mov esi, 7
push edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
call fcn.004227b0
add esp, 8
lea edi, [esi + 1]
test al, al
jne 0x432867
cmp dword [ebp - 0x21c], edi
jb 0x432824
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x238], edi
jb 0x432b25
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406cf9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
cmp byte [0x527126], bl
je 0x4328c0
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x432883
lea eax, [ebp - 0x230]
push 9
push str.DeviceSftVol_
push eax
call fcn.00418ef4
add esp, 0xc
test eax, eax
jne 0x4328c0
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x4328d4
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x432935
dec eax
push eax
push ebx
lea eax, [ebp - 0x24c]
xor edx, edx
push eax
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], dx
call fcn.00406690
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00405fb0
cmp dword [ebp - 0x254], edi
jb 0x432935
mov edx, dword [ebp - 0x268]
push edx
call fcn.00406cf9
add esp, 4
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x432949
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x43295d
lea eax, [ebp - 0x230]
push ecx
push eax
call fcn.00408516
add esp, 8
test eax, eax
jne 0x4329c5
cmp dword [ebp - 0x21c], edi
jb 0x432982
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], edi
jb 0x4327c9
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406cf9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
push 1
push ebx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x26c], 0x3a
call fcn.0040a0b0
mov esi, eax
cmp esi, ebx
je 0x432b0f
cmp esi, 0xffffffff
je 0x432b0f
cmp esi, 1
jbe 0x432a15
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00432b40
cmp word [eax], 0x5c
jne 0x432b0f
xor eax, eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [esi - 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x24c]
mov word [ebp - 0xc], dx
call fcn.00432b40
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x432b0f
cmp eax, 0x104
je 0x432b0f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x432a70
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x432a70
mov ecx, dword [ebp - 0x23c]
sub eax, edx
sar eax, 1
sub ecx, esi
mov edi, eax
lea edx, [ecx + edi - 1]
cmp edx, dword [ebp - 0x220]
jne 0x432b0f
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x432aaa
lea eax, [ebp - 0x230]
push edi
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.00418ef4
add esp, 0xc
test eax, eax
jne 0x432b0f
inc esi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00432b40
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00432b40
push eax
call fcn.00408516
add esp, 8
lea ecx, [ebp - 0x230]
test eax, eax
jne 0x432b15
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret