Function at 0x40eda0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49044b
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x4bcad4]
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 0x40ee2d
lea esi, [ebp + 8]
push 4
push str.___
push esi
call fcn.0047899c
add esp, 0xc
test eax, eax
jne 0x40efa7
mov eax, esi
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ee50
sub eax, edi
push eax
push esi
lea ecx, [ebp - 0x2a0]
call fcn.00401602
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 0x497d20
mov byte [ecx], bl
call fcn.00401602
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.00401602
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2bc]
push edx
mov byte [ebp - 4], 3
call fcn.004112d0
add esp, 0x40
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 5
call fcn.0040127b
mov edi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a8], edi
jb 0x40eef7
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.004777ca
add esp, 4
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2bc]
push str.___
push edx
call fcn.00406a8f
add esp, 0xc
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 6
call fcn.0040127b
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2a8], edi
jb 0x40ef3d
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.004777ca
add esp, 4
cmp dword [ebp - 0x290], ebx
je 0x40efa7
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.0041c8d0
add esp, 8
test al, al
je 0x40efa7
mov eax, dword [ebp - 0x290]
add eax, esi
push eax
lea ecx, [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x2bc]
push edx
call fcn.004033b6
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.0040127b
cmp dword [ebp - 0x2a8], 0x10
mov byte [ebp - 4], 3
jb 0x40efa7
mov eax, dword [ebp - 0x2bc]
push eax
call fcn.004777ca
add esp, 4
push 0x6b
lea ecx, [ebp - 0x7b]
push ebx
push ecx
mov byte [ebp - 0x7c], bl
call fcn.00477750
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 0x40f114
xor edi, edi
cmp esi, ebx
jbe 0x40f114
push 0x207
lea eax, [ebp - 0x283]
push ebx
push eax
mov byte [ebp - 0x284], bl
call fcn.00477750
mov cx, word [0x497d1c]
mov dl, byte [0x497d1e]
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 0x40f07a
lea eax, [ebp - 0x284]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f048
sub eax, edx
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov eax, dword [ebp + 8]
jae 0x40f05f
lea eax, [ebp + 8]
push esi
lea ecx, [ebp - 0x284]
push ecx
push eax
call fcn.0047899c
add esp, 0xc
test eax, eax
je 0x40f087
mov esi, dword [ebp - 0x31c]
cmp edi, esi
jb 0x40efe0
jmp 0x40f114
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp + 8]
call fcn.0040b7f0
push eax
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
mov byte [ebp - 4], 8
call fcn.00406a37
add esp, 0xc
mov ecx, dword [ebp - 0x320]
push eax
mov byte [ebp - 4], 9
call fcn.0040127b
mov esi, 0x10
cmp dword [ebp - 0x2a8], esi
jb 0x40f0e0
mov edx, dword [ebp - 0x2bc]
push edx
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x2a8], 0xf
mov dword [ebp - 0x2ac], ebx
mov byte [ebp - 0x2bc], bl
cmp dword [ebp - 0x2fc], esi
jb 0x40f10d
mov eax, dword [ebp - 0x310]
push eax
call fcn.004777ca
add esp, 4
mov byte [ebp - 0x311], 1
mov esi, 0x10
cmp dword [ebp - 0x28c], esi
jb 0x40f130
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.004777ca
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 0x40f15e
mov edx, dword [ebp - 0x2d8]
push edx
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 0x2d8], bl
cmp dword [ebp + 0x1c], esi
jb 0x40f181
mov eax, dword [ebp + 8]
push eax
call fcn.004777ca
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.004751f1
mov esp, ebp
pop ebp
ret