Function at 0x43f970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x553948]
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 - 0x230], ax
mov eax, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43f9b2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x230]
call fcn.004063e0
lea ecx, [ebp - 0x230]
push ecx
call fcn.0043fdb0
add esp, 4
test al, al
je 0x43fa0c
cmp dword [ebp - 0x21c], 8
jb 0x43f9f9
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24c]
push ecx
xor eax, eax
mov esi, 7
push edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
call fcn.0042d6d0
add esp, 8
test al, al
jne 0x43fa99
mov edi, 8
cmp dword [ebp - 0x238], edi
jb 0x43fa56
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
cmp dword [ebp - 0x21c], edi
jb 0x43fd95
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
cmp byte [0x55537e], bl
je 0x43faf3
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x43fab6
lea eax, [ebp - 0x24c]
push 9
push str.DeviceSftVol_
push eax
call fcn.00417b2b
add esp, 0xc
test eax, eax
jne 0x43faf3
lea ecx, [ebp - 0x24c]
call fcn.0040a440
lea ecx, [ebp - 0x230]
call fcn.0040a440
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x230]
mov ecx, esi
cmp edx, 8
jae 0x43fb0c
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmp word [ecx + eax*2 - 2], 0x5c
mov edi, 0x3a
jne 0x43fb8f
cmp eax, 1
jbe 0x43fb38
mov ecx, esi
cmp edx, 8
jae 0x43fb31
lea ecx, [ebp - 0x230]
cmp word [ecx + eax*2 - 4], di
je 0x43fb8f
dec eax
push eax
push ebx
lea eax, [ebp - 0x230]
xor edx, edx
push eax
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], ebx
mov word [ebp - 0x268], dx
call fcn.00406a40
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00406360
lea ecx, [ebp - 0x268]
call fcn.0040a440
mov edx, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x230]
mov ecx, esi
cmp edx, 8
jae 0x43fb9c
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x43fbb1
lea eax, [ebp - 0x24c]
push ecx
push eax
call fcn.00408866
add esp, 8
test eax, eax
jne 0x43fc22
mov esi, 8
cmp dword [ebp - 0x238], esi
jb 0x43fbdb
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
cmp dword [ebp - 0x21c], esi
jb 0x43f9f9
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
push 1
push ebx
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x26c], edi
call fcn.0040a590
mov esi, eax
cmp esi, ebx
je 0x43fd7f
cmp esi, 0xffffffff
je 0x43fd7f
cmp esi, 1
jbe 0x43fc6e
lea eax, [esi - 2]
push eax
lea ecx, [ebp - 0x230]
call fcn.004188e0
cmp word [eax], 0x5c
jne 0x43fd7f
xor ecx, ecx
xor eax, eax
push 4
lea edx, [esi - 1]
mov word [ebp - 0xc], cx
push edx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
call fcn.004188e0
push eax
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0041a605
add esp, 0x10
test eax, eax
jne 0x43fd7f
push 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x43fd7f
cmp eax, 0x104
je 0x43fd7f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x43fce0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43fce0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x220]
sub eax, esi
lea ecx, [eax + edi - 1]
cmp ecx, dword [ebp - 0x23c]
jne 0x43fd7f
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x43fd1a
lea eax, [ebp - 0x24c]
push edi
lea edx, [ebp - 0x214]
push edx
push eax
call fcn.00417b2b
add esp, 0xc
test eax, eax
jne 0x43fd7f
inc esi
push esi
lea ecx, [ebp - 0x230]
call fcn.004188e0
push eax
push edi
lea ecx, [ebp - 0x24c]
call fcn.004188e0
push eax
call fcn.00408866
add esp, 8
lea ecx, [ebp - 0x24c]
test eax, eax
jne 0x43fd85
call fcn.0040a440
lea ecx, [ebp - 0x230]
call fcn.0040a440
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24c]
call fcn.0040a440
lea ecx, [ebp - 0x230]
call fcn.0040a440
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret