Function at 0x40b1d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4497f1
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x45e7b0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e7b0]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov eax, dword [esp + 0x144]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
call fcn.004156e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b236
push 0x80004005
call fcn.0040b0a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x30]
push ecx
push 0x100
mov dword [esp + 0x144], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call fcn.004156e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b277
push 0x80004005
call fcn.0040b0a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x13c], 1
xor ebp, ebp
mov al, byte [esp + ebp + 0x30]
lea ecx, [esp + ebp + 0x30]
cmp al, 0x41
je 0x40b34a
cmp al, 0x42
je 0x40b34a
cmp al, bl
je 0x40b359
cmp ecx, ebx
jne 0x40b2b9
xor eax, eax
jmp 0x40b2c9
mov eax, ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40b2c0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040aef0
push 2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409a00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 2
call fcn.0040b000
mov byte [esp + 0x13c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b31e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
push edi
lea esi, [esp + 0x28]
call fcn.0040cbe0
mov ecx, dword [esp + 0x148]
cmp dword [esp + 0x28], ecx
jne 0x40b34a
mov edx, dword [esp + 0x14c]
cmp dword [esp + 0x2c], edx
je 0x40b3e3
add ebp, 4
cmp ebp, 0x100
jl 0x40b291
mov esi, dword [esp + 0x1c]
push 0x452aa2
mov ecx, esi
call fcn.0040a8e0
lea eax, [edi - 0x10]
mov byte [esp + 0x13c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b38c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x13c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004311a6
add esp, 0x12c
ret 0xc
lea esi, [edi - 0x10]
push esi
call fcn.0040af90
mov edi, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x13c], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b418
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x13c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40b3b9