Function at 0x42a420
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d35f8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0xa88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xaa0]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x24], esi
cmp dword [esi + 0xc], ebx
jbe 0x42a46e
call fcn.0059471a
mov edi, dword [esi + 0xc]
mov ebp, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x42a47d
call fcn.0059471a
mov eax, dword [esi]
push ebx
push ebp
push edi
push eax
lea edi, [esp + 0x38]
call fcn.0043a3f0
lea eax, [esp + 0x29c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x29c], 0
lea esi, [esp + 0x29c]
je 0x42a6b4
mov ebx, 1
lea ebx, [ebx]
mov edx, dword [0x6e9718]
mov eax, dword [edx + 0xc]
mov ecx, 0x6e9718
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0xaa8], ebx
push esi
push 0x699654
lea edi, [esp + 0x20]
call fcn.00421d60
mov ebp, dword [esp + 0x20]
add esp, 8
cmp dword [ebp - 4], ebx
jle 0x42a509
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, edi
push edx
call fcn.0040db00
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x42a664
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c8], 0x10
mov dword [esp + 0x1cc], ebx
xor eax, eax
jmp 0x42a540
movzx ecx, word [eax + 0x692fd0]
mov word [esp + eax + 0x38], cx
add eax, 2
cmp cx, di
jne 0x42a540
push 0xc6
lea ecx, [esp + 0x1da]
xor eax, eax
push edi
push ecx
mov word [esp + 0x1e0], ax
call fcn.005985f0
add esp, 0xc
push edi
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
push 0x64
lea eax, [esp + 0x1ec]
push eax
push ebp
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x42a664
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1d0], edi
mov edi, esp
lea eax, [ebp - 0x10]
mov dword [esp + 0x38], esp
mov dword [esp + 0x30], edi
call fcn.0040f770
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0xab0], 3
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
lea ecx, [esp + 0x1e4]
call fcn.0040b8a0
mov byte [esp + 0xab4], 4
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xab8], bl
call fcn.0042a6e0
add esp, 0x10
mov edi, eax
mov byte [esp + 0xaa8], 5
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], ebx
jle 0x42a618
mov eax, dword [eax + 4]
push eax
push edi
call fcn.0040db00
mov eax, dword [edi]
lea edx, [esp + 0x38]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42a620
mov byte [esp + 0xaa8], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
call fcn.00438480
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a670
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov dword [esp + 0xaa8], 0xffffffff
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a6aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp word [esi], 0
jne 0x42a4c0
mov ecx, dword [esp + 0xaa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa88]
xor ecx, esp
call fcn.0059393a
add esp, 0xa98
ret