Function at 0x4c3094
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.0040bead
mov eax, esi
push eax
call fcn.00439a83
pop ecx
test al, al
je 0x4c30e8
mov bl, 1
push 1
xor edi, edi
lea esi, [ebp - 0x238]
call fcn.0040bab7
mov al, bl
jmp 0x4c334a
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.004c3359
pop ecx
pop ecx
test al, al
jne 0x4c3127
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bab7
xor bl, bl
jmp 0x4c30d2
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c313c
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x228]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4c3174
dec eax
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x270]
call fcn.0040c33e
push eax
lea eax, [ebp - 0x238]
call fcn.0040ba5b
push 1
xor edi, edi
call fcn.0040bab7
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c3189
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c319e
lea eax, [ebp - 0x254]
push ecx
push eax
call fcn.00452191
pop ecx
pop ecx
push 1
test eax, eax
jne 0x4c31bf
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bab7
jmp 0x4c30d0
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x238]
push eax
xor eax, eax
mov dword [ebp - 0x274], 0x3a
call fcn.0040c92f
mov ebx, eax
test ebx, ebx
je 0x4c332c
cmp ebx, 0xffffffff
je 0x4c332c
cmp ebx, 1
jbe 0x4c3217
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4c320b
lea eax, [ebp - 0x238]
cmp word [eax + ebx*2 - 4], 0x5c
jne 0x4c3114
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 0x4c3238
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 0x4c3114
cmp eax, esi
je 0x4c3114
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3273
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 0x4c3114
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c32b1
lea eax, [ebp - 0x254]
push esi
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.00438eec
add esp, 0xc
test eax, eax
jne 0x4c3114
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x4c32df
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x4c32f4
lea eax, [ebp - 0x254]
lea ecx, [edi + ecx + 2]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.00452191
pop ecx
pop ecx
test eax, eax
jne 0x4c3114
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bab7
push 1
lea esi, [ebp - 0x238]
call fcn.0040bab7
mov al, 1
jmp 0x4c334a
push 1
xor edi, edi
lea esi, [ebp - 0x254]
call fcn.0040bab7
push 1
lea esi, [ebp - 0x238]
call fcn.0040bab7
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret