Function at 0x445940
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5c01b3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
cmp dword [esp + 0x3c], 0
je 0x445bbd
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00587d67
mov ebp, eax
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x621148
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov eax, dword [0x621148]
mov edx, dword [eax + 0xc]
mov ecx, 0x621148
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebp
push esi
mov byte [esp + 0x38], 1
call edi
test eax, eax
je 0x445b70
cmp word [ebp], 0
mov dword [esp + 0x18], 0
je 0x445a8d
mov esi, 0x273c
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x445a76
push ebp
push 0x5ce658
lea edi, [esp + 0x1c]
call fcn.00406280
mov ebx, dword [esp + 0x40]
add esp, 8
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
call fcn.00445be0
mov edi, eax
lea eax, [esp + 0x14]
call fcn.00406500
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x445ab2
movzx eax, word [eax]
movzx ecx, ax
push ecx
push 0x5cfd68
lea edi, [esp + 0x24]
call fcn.00406280
add esp, 8
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], esi
call fcn.00445be0
mov edi, eax
add edi, 4
lea eax, [esp + 0x1c]
call fcn.00406500
inc dword [esp + 0x18]
inc esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 + 2], 0
lea ebp, [ebp + eax*2 + 2]
jne 0x4459f8
push 0xc8
call fcn.005851c0
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x30], 2
test eax, eax
je 0x445abc
mov esi, eax
call fcn.005489c0
mov esi, eax
jmp 0x445abe
push 0x80070057
call fcn.00406af0
xor esi, esi
mov byte [esp + 0x30], 1
mov dword [esp + 0x24], esi
test esi, esi
je 0x445ad3
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov ecx, str.MenuDisk.png
mov byte [esp + 0x30], 3
call fcn.00548ef0
mov ebp, dword [esi]
sub esp, 0x10
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov edi, 0x13
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x34]
mov ebx, edi
mov dword [eax + 8], edi
mov ecx, esi
mov dword [eax + 0xc], ebx
call edx
mov ebp, dword [esp + 0x18]
add ebp, 0xffffffff
mov dword [esi + 0x7c], 1
js 0x445b63
lea edi, [ebp + 0x273c]
mov ebx, dword [esp + 0x38]
push 0
push 0
push 1
push 1
push esi
push 1
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], edi
call fcn.00445be0
add eax, 4
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x3c], esp
mov ebx, esp
call fcn.00406580
mov ecx, dword [esp + 0x58]
push edi
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.0042b4a0
dec ebp
dec edi
test ebp, ebp
jge 0x445b1c
mov byte [esp + 0x30], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445bbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8