Function at 0x4b7a40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov ebx, 2
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x224], ebx
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
movzx ecx, word [eax + 0x526204]
mov word [ebp + eax - 0x14], cx
add eax, 2
test cx, cx
jne 0x4b7a80
lea eax, [ebp - 0x14]
lea edx, [ebx + 0x41]
push eax
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
ja 0x4b7cda
movzx eax, word [esi + ebx*2]
cmp eax, 0x34
je 0x4b7ac8
cmp eax, 0x35
je 0x4b7ac8
cmp eax, 0x37
jne 0x4b7cda
movzx ecx, word [ebp - 0x14]
push ecx
call fcn.004b7d00
add esp, 4
test eax, eax
je 0x4b7afc
cmp word [esi + ebx*2], 0x37
jne 0x4b7aee
mov edx, 0x38
mov word [esi + ebx*2], dx
jmp 0x4b7cda
mov eax, 0x36
mov word [esi + ebx*2], ax
jmp 0x4b7cda
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x14]
mov word [ebp + eax - 0x21c], cx
add eax, 2
test cx, cx
jne 0x4b7b20
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b7b40
push 0
mov ecx, 6
mov esi, str.wmcToken.aut
push 0x8000080
rep movsd dword es:[edi], dword [esi]
push 3
push 0
push 1
push bind
lea eax, [ebp - 0x21c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4b7bb0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
cmp word [eax + ebx*2], 0x37
mov esi, eax
jne 0x4b7ba2
mov ecx, 0x38
mov word [eax + ebx*2], cx
jmp 0x4b7cda
mov edx, 0x36
mov word [eax + ebx*2], dx
jmp 0x4b7cda
push 0x800
call fcn.004e5420
add esp, 4
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e8ba0
mov eax, 0x51ca08
mov edx, ebx
add esp, 0xc
sub edx, eax
jmp 0x4b7be0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4b7be0
lea esi, [ebx + 2]
push esi
lea edx, [ebp - 0x14]
call fcn.004b5a70
add esp, 4
test eax, eax
je 0x4b7cb5
lea edi, [ebx - 2]
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4b7c10
mov eax, dword [0x51ca08]
mov dword [edi], eax
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x4b7c65
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b7c32
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.004e5007
add esp, 0xc
test eax, eax
je 0x4b7c5e
push ebx
push edi
call fcn.004e571a
add esp, 8
test eax, eax
je 0x4b7c65
mov ecx, 0x36
jmp 0x4b7ca5
mov edi, dword [ebp - 0x22c]
test edi, edi
je 0x4b7cb5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b7c74
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.004e5007
add esp, 0xc
test eax, eax
je 0x4b7ca0
push ebx
push edi
call fcn.004e571a
add esp, 8
test eax, eax
je 0x4b7cb5
mov ecx, 0x38
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x220]
mov word [edx + eax*2], cx
push 0x800
push 0
push ebx
call fcn.004e8ba0
add esp, 0xc
push ebx
call fcn.004e577a
mov ebx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
add esp, 4
inc ebx
mov dword [ebp - 0x224], ebx
cmp ebx, 0x1a
jl 0x4b7a78
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret