Function at 0x411d20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xa78], 0
push 0x7fe
push eax
mov word [ebp - 0xa14], ax
mov edi, ecx
lea eax, [ebp - 0xa12]
mov dword [ebp - 0xa7c], edx
push eax
call fcn.004d9c60
add esp, 0xc
lea eax, [ebp - 0xa14]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411efb
cmp word [ebp - 0xa14], 0
lea esi, [ebp - 0xa14]
mov eax, dword [0x547e40]
mov dword [ebp - 0xc], eax
mov ax, word [0x547e44]
mov word [ebp - 8], ax
je 0x411efb
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea esp, [esp]
mov ax, word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call ebx
test eax, eax
je 0x411ee7
cmp word [ebp - 0x214], 0
jne 0x411ddf
xor eax, eax
jmp 0x411dff
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x411df0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411df0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0xa18], 7
mov dword [ebp - 0xa1c], 0
mov word [ebp - 0xa2c], cx
test eax, eax
jne 0x411e2f
mov dword [ebp - 0xa1c], ecx
mov word [ebp - 0xa2c], ax
jmp 0x411e42
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.004063d0
push 1
push 0
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa78], 0
push eax
lea ecx, [ebp - 0xa2c]
call fcn.004057b0
cmp eax, 0xffffffff
je 0x411e75
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00404250
sub esp, 8
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x411e84
mov eax, dword [edi]
jmp 0x411e86
mov eax, edi
mov dword [ecx], eax
sub esp, 8
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
mov ecx, esp
cmp dword [ebp - 0xa18], 8
lea eax, [ebp - 0xa2c]
cmovae eax, dword [ebp - 0xa2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa1c]
mov dword [ecx + 4], eax
call fcn.0040d3b0
add esp, 0x10
test al, al
jne 0x411f0e
push 0
push edi
lea ecx, [ebp - 0xa2c]
call fcn.0040de30
test al, al
jne 0x411f0e
cmp dword [ebp - 0xa18], 8
jb 0x411ee7
push dword [ebp - 0xa2c]
call fcn.004d8fe0
add esp, 4
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411ee7
cmp word [esi], ax
jne 0x411db0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f17
sub ecx, edx
mov dword [ebp - 0xa48], 7
sar ecx, 1
xor eax, eax
push 0xffffffffffffffff
push ecx
push edi
lea ecx, [ebp - 0xa5c]
mov dword [ebp - 0xa4c], 0
mov word [ebp - 0xa5c], ax
call fcn.00406900
cmp word [ebp - 0xc], 0
jne 0x411f5d
xor ecx, ecx
jmp 0x411f72
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f63
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xa5c]
call fcn.00413530
push eax
lea ecx, [ebp - 0xa44]
call fcn.0040bc90
sub esp, 8
lea eax, [ebp - 0xa44]
cmp dword [ebp - 0xa30], 8
mov ecx, esp
cmovae eax, dword [ebp - 0xa44]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa34]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0xa74]
call fcn.0040d920
mov ecx, dword [ebp - 0xa7c]
cmp ecx, eax
je 0x411fd2
push 0xffffffffffffffff
push 0
push eax
call fcn.00406900
cmp dword [ebp - 0xa60], 8
jb 0x411fe9
push dword [ebp - 0xa74]
call fcn.004d8fe0
add esp, 4
xor eax, eax
mov dword [ebp - 0xa60], 7
cmp dword [ebp - 0xa30], 8
mov dword [ebp - 0xa64], 0
mov word [ebp - 0xa74], ax
jb 0x41201d
push dword [ebp - 0xa44]
call fcn.004d8fe0
add esp, 4
xor eax, eax
mov dword [ebp - 0xa30], 7
cmp dword [ebp - 0xa48], 8
mov dword [ebp - 0xa34], 0
mov word [ebp - 0xa44], ax
jb 0x412051
push dword [ebp - 0xa5c]
call fcn.004d8fe0
add esp, 4
cmp dword [ebp - 0xa18], 8
jb 0x412068
push dword [ebp - 0xa2c]
call fcn.004d8fe0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret