Function at 0x431930
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a33eb
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x611004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x431a24
push 0
push 0
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x228]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, edi
mov dword [ebp - 0x16], 0x3a
mov dword [ebp - 0x20], 0x3a0000
mov dword [ebp - 0x1c], 0x5c
call fcn.00431750
movzx ecx, ax
lea ebx, [ebp - 0x228]
mov ax, word [ebp - 0x228]
or esi, 0xffffffff
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], esi
test ax, ax
je 0x43189d
movzx edx, ax
nop dword [eax]
movzx ecx, dx
add edx, 0xffffff9f
cmp dx, 0x19
lea eax, [ecx - 0x20]
movzx esi, ax
mov eax, ecx
cmova esi, eax
movzx eax, si
mov word [ebp - 0x18], ax
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
mov eax, dword [edi + 0x90]
test eax, eax
je 0x4318ef
cmp eax, 1
jne 0x4318c4
cmp esi, 2
je 0x4318ef
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431877
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2]
movzx eax, word [ebx + 2]
add ebx, 2
mov edx, eax
test ax, ax
jne 0x431820
mov ecx, dword [ebp - 0x430]
cmp esi, 0xffffffff
jne 0x431a15
xor eax, eax
push eax
push esi
push 0x14e
push dword [edi + 0x20]
mov word [edi + 0x94], ax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x431a24
cmp eax, 2
jne 0x4318ce
cmp esi, 3
jmp 0x431862
cmp eax, 3
jne 0x4318d8
cmp esi, 5
jmp 0x431862
cmp eax, 4
jne 0x4318e1
cmp esi, eax
jmp 0x431862
cmp eax, 5
jne 0x431868
cmp esi, 6
jne 0x431868
lea ecx, [ebp - 0x45c]
call fcn.00404bd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x45c]
mov dword [ebp - method.CVolObjectArray.virtual_0], vtable.CWString.0
call fcn.0042c180
mov dword [ebp - 4], 1
lea eax, [esi - 3]
cmp eax, 3
ja case.default.0x431929
jmp dword [eax*4 + 0x431a40]
push 0x5ea8dc
jmp 0x43194a
push 0x5ea910
jmp 0x43194a
push 0x5ea8fc
jmp 0x43194a
push 0x5ea91c
lea ecx, [ebp - 0x45c]
call fcn.0042c180
cmp esi, 3
jne 0x4319a3
push 0
push 0
push 0
push 0
push 0
mov eax, 0x20
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4319a3
cmp word [ebp - 0x426], 0
je 0x4319a3
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x45c]
call fcn.0042c180
mov eax, dword [ebp - 0x450]
test eax, eax
jne 0x4319c0
cmp dword [ebp - 0x438], 0
mov eax, 0x5e4c3c
cmovne eax, dword [ebp - 0x440]
push eax
push 0
push 0x143
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov cx, word [ebp - 0x18]
cmp word [ebp - 0x430], cx
mov esi, dword [ebp - 0x42c]
movzx ecx, cx
cmove esi, eax
push ecx
push eax
push 0x151
push dword [edi + 0x20]
mov dword [ebp - 0x42c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x45c]
call fcn.004048c0
jmp 0x43186e
mov word [edi + 0x94], cx
mov ecx, edi
push esi
call fcn.0042d890
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b447
mov esp, ebp
pop ebp
ret