Function at 0x43d1b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x54e938]
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 0x43d1f2
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x24c]
call fcn.00406300
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0043d5c0
add esp, 4
test al, al
je 0x43d24c
cmp dword [ebp - 0x238], 8
jb 0x43d239
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ec9
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 - 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.0042b1f0
add esp, 8
lea edi, [esi + 1]
test al, al
jne 0x43d2d7
cmp dword [ebp - 0x21c], edi
jb 0x43d294
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406ec9
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 0x43d5a5
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406ec9
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 [0x55035a], bl
je 0x43d330
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x43d2f3
lea eax, [ebp - 0x230]
push 9
push str.DeviceSftVol_
push eax
call fcn.0041799b
add esp, 0xc
test eax, eax
jne 0x43d330
lea ecx, [ebp - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
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 ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x43d344
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x43d3a5
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.00406960
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406280
cmp dword [ebp - 0x254], edi
jb 0x43d3a5
mov edx, dword [ebp - 0x268]
push edx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x43d3b9
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x43d3cd
lea eax, [ebp - 0x230]
push ecx
push eax
call fcn.004086e6
add esp, 8
test eax, eax
jne 0x43d435
cmp dword [ebp - 0x21c], edi
jb 0x43d3f2
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ec9
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 0x43d239
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ec9
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 eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x26c], 0x3a
call fcn.0040a410
mov esi, eax
cmp esi, ebx
je 0x43d58f
cmp esi, 0xffffffff
je 0x43d58f
cmp esi, 1
jbe 0x43d485
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00418750
cmp word [eax], 0x5c
jne 0x43d58f
xor eax, eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
push 4
lea eax, [esi - 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x24c]
mov word [ebp - 0xc], dx
call fcn.00418750
push eax
lea ecx, [ebp - 0xc]
push edi
push ecx
call fcn.0041a095
add esp, 0x10
test eax, eax
jne 0x43d58f
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x43d58f
cmp eax, 0x104
je 0x43d58f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43d4f0
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 0x43d58f
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x43d52a
lea eax, [ebp - 0x230]
push edi
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.0041799b
add esp, 0xc
test eax, eax
jne 0x43d58f
inc esi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00418750
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00418750
push eax
call fcn.004086e6
add esp, 8
lea ecx, [ebp - 0x230]
test eax, eax
jne 0x43d595
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
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 - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
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