Function at 0x40b900
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d2eb
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4b8914]
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 eax, dword [ebp + 0x24]
mov dword [ebp - 0x320], eax
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 4], ebx
mov byte [ebp - 0x311], bl
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2e4], ebx
mov byte [ebp - 0x2f4], bl
mov dword [ebp - 0x2c4], eax
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 0x2d8], bl
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], ebx
mov byte [ebp - 0x2a0], bl
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 3
jae 0x40b98d
lea esi, [ebp + 8]
push 4
push str.___
push esi
call fcn.00474843
add esp, 0xc
test eax, eax
jne 0x40bb07
mov eax, esi
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b9b0
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0x2a0]
call fcn.004010b2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x31c], esp
push 1
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x494d20
mov byte [ecx], bl
call fcn.004010b2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x318], esp
push 4
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.___
mov byte [ebp - 4], 4
mov byte [ecx], bl
call fcn.004010b2
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2bc]
push edx
mov byte [ebp - 4], 3
call fcn.00412450
add esp, 0x40
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 5
call fcn.004023a2
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a8], edi
jb 0x40ba57
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.00471f65
add esp, 4
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2bc]
push str.___
push edx
call fcn.00403fe8
add esp, 0xc
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 6
call fcn.004023a2
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a8], edi
jb 0x40ba9d
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.00471f65
add esp, 4
cmp dword [ebp - 0x290], ebx
je 0x40bb07
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.00419800
add esp, 8
test al, al
je 0x40bb07
mov eax, dword [ebp - 0x290]
add eax, esi
push eax
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x2bc]
push edx
call fcn.0040255e
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.004023a2
cmp dword [ebp - 0x2a8], 0x10
mov byte [ebp - 4], 3
jb 0x40bb07
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.00471f65
add esp, 4
push 0x6b
lea ecx, [ebp - 0x7b]
push ebx
push ecx
mov byte [ebp - 0x7c], bl
call fcn.00473a10
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, eax
mov dword [ebp - 0x31c], esi
cmp esi, 0x6c
jae 0x40bc74
xor edi, edi
cmp esi, ebx
jbe 0x40bc74
push 0x207
lea eax, [ebp - 0x283]
push ebx
push eax
mov byte [ebp - 0x284], bl
call fcn.00473a10
mov cx, word [0x494d1c]
mov dl, byte [0x494d1e]
mov al, byte [ebp + edi - 0x7c]
add esp, 0xc
mov word [ebp - 0x318], cx
push 0x207
lea ecx, [ebp - 0x284]
mov byte [ebp - 0x316], dl
push ecx
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 0x318], al
add edi, 4
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x40bbda
lea eax, [ebp - 0x284]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bba8
sub eax, edx
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov eax, dword [ebp + 8]
jae 0x40bbbf
lea eax, [ebp + 8]
push esi
lea ecx, [ebp - 0x284]
push ecx
push eax
call fcn.00474843
add esp, 0xc
test eax, eax
je 0x40bbe7
mov esi, dword [ebp - 0x31c]
cmp edi, esi
jb 0x40bb40
jmp 0x40bc74
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp + 8]
call fcn.00409690
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
mov byte [ebp - 4], 8
call fcn.00403f90
add esp, 0xc
mov ecx, dword [ebp - 0x320]
push eax
mov byte [ebp - 4], 9
call fcn.004023a2
mov esi, 0x10
cmp dword [ebp - 0x2a8], esi
jb 0x40bc40
mov edx, dword [ebp - 0x2bc]
push edx
call fcn.00471f65
add esp, 4
mov dword [ebp - 0x2a8], 0xf
mov dword [ebp - 0x2ac], ebx
mov byte [ebp - 0x2bc], bl
cmp dword [ebp - 0x2fc], esi
jb 0x40bc6d
mov eax, dword [ebp - 0x310]
push eax
call fcn.00471f65
add esp, 4
mov byte [ebp - 0x311], 1
mov esi, 0x10
cmp dword [ebp - 0x28c], esi
jb 0x40bc90
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00471f65
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x290], ebx
mov byte [ebp - 0x2a0], bl
cmp dword [ebp - 0x2c4], esi
jb 0x40bcbe
mov edx, dword [ebp - 0x2d8]
push edx
call fcn.00471f65
add esp, 4
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 0x2d8], bl
cmp dword [ebp + 0x1c], esi
jb 0x40bce1
mov eax, dword [ebp + 8]
push eax
call fcn.00471f65
add esp, 4
mov al, byte [ebp - 0x311]
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.00471528
mov esp, ebp
pop ebp
ret