Function at 0x4c6c8b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push eax
lea esi, [ebp - 0x238]
mov edi, ecx
mov dword [ebp - 0x274], ebx
call fcn.0040beca
mov eax, esi
push eax
call fcn.0043dc2c
pop ecx
test al, al
je 0x4c6cdf
mov bl, 1
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.0040bad4
mov al, bl
jmp 0x4c6f41
xor eax, eax
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push eax
push edi
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], ebx
call fcn.004c6f50
pop ecx
pop ecx
test al, al
jne 0x4c6d1e
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bad4
xor bl, bl
jmp 0x4c6cc9
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c6d33
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4c6d6b
dec eax
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x270]
call fcn.0040c35b
push eax
lea eax, [ebp - 0x238]
call fcn.0040ba78
push 1
xor edi, edi
call fcn.0040bad4
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c6d80
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c6d95
lea eax, [ebp - 0x254]
push ecx
push eax
call fcn.00452719
pop ecx
pop ecx
push 1
test eax, eax
jne 0x4c6db6
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bad4
jmp 0x4c6cc7
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x238]
push eax
xor eax, eax
mov dword [ebp - 0x274], 0x3a
call fcn.0040c94c
mov ebx, eax
test ebx, ebx
je 0x4c6f23
cmp ebx, 0xffffffff
je 0x4c6f23
cmp ebx, 1
jbe 0x4c6e0e
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4c6e02
lea eax, [ebp - 0x238]
cmp word [eax + ebx*2 - 4], 0x5c
jne 0x4c6d0b
xor eax, eax
cmp dword [ebp - 0x224], 8
mov word [ebp - 0x10], ax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x238]
jae 0x4c6e2f
lea eax, [ebp - 0x238]
lea edi, [ebx + ebx]
mov eax, dword [edi + eax - 2]
mov dword [ebp - 0x10], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x4c6d0b
cmp eax, esi
je 0x4c6d0b
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c6e6a
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp - 0x228]
sub eax, ebx
lea eax, [eax + esi - 1]
cmp eax, dword [ebp - 0x244]
jne 0x4c6d0b
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c6ea8
lea eax, [ebp - 0x254]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0043d3af
add esp, 0xc
test eax, eax
jne 0x4c6d0b
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c6ed6
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c6eeb
lea eax, [ebp - 0x254]
lea ecx, [edi + ecx + 2]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.00452719
pop ecx
pop ecx
test eax, eax
jne 0x4c6d0b
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x238]
call fcn.0040bad4
mov al, 1
jmp 0x4c6f41
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bad4
push 1
lea esi, [ebp - 0x238]
call fcn.0040bad4
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret