Function at 0x4d5f00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e205
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [0x515c2c]
xor edi, edi
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov ax, word [0x515c30]
xor ecx, ecx
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov word [ebp - 0x14], ax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov eax, 0x41
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], eax
nop word [eax + eax]
cmp edi, ecx
je 0x4d5f7f
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x24], edi
jmp 0x4d5f95
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004d59b0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp ax, 0x5a
jbe 0x4d5f70
mov eax, 0x61
mov dword [ebp - 0x1c], eax
cmp edi, ecx
je 0x4d5fb6
mov word [edi], ax
add edi, 2
mov dword [ebp - 0x24], edi
jmp 0x4d5fcc
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004d59b0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp ax, 0x7a
jbe 0x4d5fa7
push 0x208
mov dword [ebp - 0x4c], ecx
call fcn.004a4905
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], eax
cmp eax, edi
je 0x4d6266
nop dword [eax]
movzx eax, word [eax]
push 0x104
mov dword [ebp - 0x64], eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4d6255
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d6042
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00415d70
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
cmp ecx, 8
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x5c], edx
cmp word [eax + edx*2 - 2], 0x5c
je 0x4d6196
cmp edx, ecx
jae 0x4d60a1
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [eax + edx*2], 0x5c
jmp 0x4d6196
mov eax, SysReAllocString
sub eax, edx
cmp eax, 1
jb 0x4d62c8
lea eax, [edx + 1]
mov edx, eax
mov dword [ebp - 0x48], eax
or edx, 7
cmp edx, 0x7ffffffe
jbe 0x4d60cb
mov edx, SysReAllocString
jmp 0x4d60ef
mov eax, ecx
shr eax, 1
mov dword [ebp - 0x1c], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x1c]
cmp ecx, eax
jbe 0x4d60e5
mov edx, SysReAllocString
jmp 0x4d60ef
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp edx, eax
cmovb edx, eax
xor ecx, ecx
mov dword [ebp - 0x1c], edx
add edx, 1
setb cl
neg ecx
or ecx, edx
push ecx
lea ecx, [ebp - 0x40]
call fcn.00415d00
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x54], edx
push ecx
lea eax, [edx + ecx]
mov dword [ebp - 0x48], eax
jb 0x4d617a
mov eax, dword [ebp - 0x40]
push eax
push edx
mov dword [ebp - 0x1c], eax
call fcn.004d7a30
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x50]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x1000
jb 0x4d616e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d62c3
mov eax, edx
push ecx
push eax
call fcn.004a44fe
add esp, 8
jmp 0x4d6190
lea eax, [ebp - 0x40]
push eax
push edx
call fcn.004d7a30
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov dword [eax], 0x5c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
movups xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x64]
movups xmmword [ebp - 0x80], xmm0
lea ecx, [ecx + 0x30]
mov word [ebp - 0x68], ax
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004d5800
mov edx, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4d621b
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d6211
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d62c3
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4d6255
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d624b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d62c3
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov eax, dword [ebp - 0x58]
add eax, 2
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x4d6000
test esi, esi
je 0x4d6275
push 2
push esi
call fcn.004a44fe
add esp, 8
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x4d62a8
mov ecx, dword [ebp - 0x4c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4d629e
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d62c3
push ecx
push edx
call fcn.004a44fe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
call fcn.004da7c4
call fcn.00415e80
int3