Function at 0x411da0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x55e0a0]
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.004dbc00
add esp, 0xc
lea eax, [ebp - 0xa14]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x411f7b
cmp word [ebp - 0xa14], 0
lea esi, [ebp - 0xa14]
mov eax, dword [0x54a060]
mov dword [ebp - 0xc], eax
mov ax, word [0x54a064]
mov word [ebp - 8], ax
je 0x411f7b
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 0x411f67
cmp word [ebp - 0x214], 0
jne 0x411e5f
xor eax, eax
jmp 0x411e7f
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
jmp 0x411e70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411e70
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 0x411eaf
mov dword [ebp - 0xa1c], ecx
mov word [ebp - 0xa2c], ax
jmp 0x411ec2
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xa2c]
call fcn.004063e0
push 1
push 0
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa78], 0
push eax
lea ecx, [ebp - 0xa2c]
call fcn.004057c0
cmp eax, 0xffffffff
je 0x411ef5
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0xa2c]
call fcn.00404260
sub esp, 8
cmp dword [edi + 0x14], 8
mov ecx, esp
jb 0x411f04
mov eax, dword [edi]
jmp 0x411f06
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.0040d430
add esp, 0x10
test al, al
jne 0x411f8e
push 0
push edi
lea ecx, [ebp - 0xa2c]
call fcn.0040deb0
test al, al
jne 0x411f8e
cmp dword [ebp - 0xa18], 8
jb 0x411f67
push dword [ebp - 0xa2c]
call fcn.004daf7e
add esp, 4
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x411f67
cmp word [esi], ax
jne 0x411e30
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dbbe3
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 0x411f97
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.00406910
cmp word [ebp - 0xc], 0
jne 0x411fdd
xor ecx, ecx
jmp 0x411ff2
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411fe3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xa5c]
call fcn.004135b0
push eax
lea ecx, [ebp - 0xa44]
call fcn.0040bcf0
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.0040d9a0
mov ecx, dword [ebp - 0xa7c]
cmp ecx, eax
je 0x412052
push 0xffffffffffffffff
push 0
push eax
call fcn.00406910
cmp dword [ebp - 0xa60], 8
jb 0x412069
push dword [ebp - 0xa74]
call fcn.004daf7e
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 0x41209d
push dword [ebp - 0xa44]
call fcn.004daf7e
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 0x4120d1
push dword [ebp - 0xa5c]
call fcn.004daf7e
add esp, 4
cmp dword [ebp - 0xa18], 8
jb 0x4120e8
push dword [ebp - 0xa2c]
call fcn.004daf7e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret