Function at 0x405f80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f790
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x24], esi
call fcn.0041e837
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x405fc7
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and eax, 0xfffffffc
mov dword [ebp - 0x18], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], esi
mov edi, 0xffffffff
je 0x406128
lea esp, [esp]
cmp esi, 0x1a
jg 0x406128
mov cl, byte [esi + str.cdefghijklmnopqrstuvwxyz]
mov byte [ebp - 0x10], cl
test al, 1
je 0x406117
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.00405830
push 0x5409a8
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00405750
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov eax, dword [ebp - 0x20]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406069
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40608b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406114
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405830
push 0x5409a8
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
call fcn.00405750
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
mov byte [ebp - 4], 3
call fcn.00405b20
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 0x18
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40610d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40616a
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
shr eax, 1
inc esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x406000
mov esi, dword [ebp + 8]
push 0x5409a6
mov ecx, esi
call fcn.00405830
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406156
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00405390
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x406137