Function at 0x41a930
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x57a120]
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.004f3a90
add esp, 0xc
lea eax, [ebp - 0xa14]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41ab0b
cmp word [ebp - 0xa14], 0
lea esi, [ebp - 0xa14]
mov eax, dword [0x562360]
mov dword [ebp - 0xc], eax
mov ax, word [0x562364]
mov word [ebp - 8], ax
je 0x41ab0b
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 0x41aaf7
cmp word [ebp - 0x214], 0
jne 0x41a9ef
xor eax, eax
jmp 0x41aa0f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x41aa00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41aa00
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 0x41aa3f
mov dword [ebp - 0xa1c], ecx
mov word [ebp - 0xa2c], ax
jmp 0x41aa52
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00407440
push 1
push 0
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa78], 0
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00406820
cmp eax, 0xffffffff
je 0x41aa85
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0xa2c]
call fcn.004052c0
sub esp, 8
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x41aa94
mov eax, dword [edi]
jmp 0x41aa96
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.0040e4a0
add esp, 0x10
test al, al
jne 0x41ab1e
push 0
push edi
lea ecx, [ebp - 0xa2c]
call fcn.0040ef20
test al, al
jne 0x41ab1e
cmp dword [ebp - 0xa18], 8
jb 0x41aaf7
push dword [ebp - 0xa2c]
call fcn.004f2e36
add esp, 4
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41aaf7
cmp word [esi], ax
jne 0x41a9c0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f3b66
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 0x41ab27
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.00407970
cmp word [ebp - 0xc], 0
jne 0x41ab6d
xor ecx, ecx
jmp 0x41ab82
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ab73
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xa5c]
call fcn.0041bec0
push eax
lea ecx, [ebp - 0xa44]
call fcn.0040cd50
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.0040ea10
mov ecx, dword [ebp - 0xa7c]
cmp ecx, eax
je 0x41abe2
push 0xffffffffffffffff
push 0
push eax
call fcn.00407970
cmp dword [ebp - 0xa60], 8
jb 0x41abf9
push dword [ebp - 0xa74]
call fcn.004f2e36
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 0x41ac2d
push dword [ebp - 0xa44]
call fcn.004f2e36
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 0x41ac61
push dword [ebp - 0xa5c]
call fcn.004f2e36
add esp, 4
cmp dword [ebp - 0xa18], 8
jb 0x41ac78
push dword [ebp - 0xa2c]
call fcn.004f2e36
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret