Function at 0x439040
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x522638]
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 0x439082
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x24c]
call fcn.00405fe0
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0041fae0
add esp, 4
test al, al
je 0x4390dc
cmp dword [ebp - 0x238], 8
jb 0x4390c9
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ca9
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.00429130
add esp, 8
lea edi, [esi + 1]
test al, al
jne 0x439167
cmp dword [ebp - 0x21c], edi
jb 0x439124
mov edx, dword [ebp - 0x230]
push edx
call fcn.00406ca9
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 0x439425
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00406ca9
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 [0x5240a6], bl
je 0x4391c0
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x439183
lea eax, [ebp - 0x230]
push 9
push str.DeviceSftVol_
push eax
call fcn.0041930b
add esp, 0xc
test eax, eax
jne 0x4391c0
lea ecx, [ebp - 0x230]
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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 0x4391d4
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x439235
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.00406640
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00405f60
cmp dword [ebp - 0x254], edi
jb 0x439235
mov edx, dword [ebp - 0x268]
push edx
call fcn.00406ca9
add esp, 4
mov ecx, dword [ebp - 0x24c]
cmp dword [ebp - 0x238], edi
jae 0x439249
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
cmp dword [ebp - 0x21c], edi
jae 0x43925d
lea eax, [ebp - 0x230]
push ecx
push eax
call fcn.004084c6
add esp, 8
test eax, eax
jne 0x4392c5
cmp dword [ebp - 0x21c], edi
jb 0x439282
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ca9
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 0x4390c9
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ca9
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.0040a060
mov esi, eax
cmp esi, ebx
je 0x43940f
cmp esi, 0xffffffff
je 0x43940f
cmp esi, 1
jbe 0x439315
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00439440
cmp word [eax], 0x5c
jne 0x43940f
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.00439440
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 0x43940f
cmp eax, 0x104
je 0x43940f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x439370
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439370
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 0x43940f
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x4393aa
lea eax, [ebp - 0x230]
push edi
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.0041930b
add esp, 0xc
test eax, eax
jne 0x43940f
inc esi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00439440
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00439440
push eax
call fcn.004084c6
add esp, 8
lea ecx, [ebp - 0x230]
test eax, eax
jne 0x439415
call fcn.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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.00409f90
lea ecx, [ebp - 0x24c]
call fcn.00409f90
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