Function at 0x405cb0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x44eb80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b9d8]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
call fcn.0041b4c9
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405cf7
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and eax, 0xfffffffc
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov dword [esp + 0x20], esi
mov edi, 0xffffffff
je 0x405e73
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp esi, 0x1a
jg 0x405e73
test al, 1
mov cl, byte [esi + str.cdefghijklmnopqrstuvwxyz]
mov byte [esp + 0x14], cl
je 0x405e5e
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
call fcn.00405510
push 0x4541f4
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x48], 1
call fcn.004053d0
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
cmp eax, 3
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405da2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x405e5a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call fcn.00405510
push 0x4541f4
push eax
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x48], 2
call fcn.004053d0
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
mov byte [esp + 0x54], 3
call fcn.00405830
mov esi, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x3c], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x405eba
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
shr eax, 1
add esi, 1
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jne 0x405d37
mov esi, dword [esp + 0x44]
push 0x4541f2
mov ecx, esi
call fcn.00405510
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x3c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x405ea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00404ff0
mov esi, dword [esp + 0x48]
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x405e83