Function at 0x4a5e80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5322a8]
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 + 0x523b1c]
mov word [ebp + eax - 0x14], cx
add eax, 2
test cx, cx
jne 0x4a5ec0
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 0x4a611a
movzx eax, word [esi + ebx*2]
cmp eax, 0x34
je 0x4a5f08
cmp eax, 0x35
je 0x4a5f08
cmp eax, 0x37
jne 0x4a611a
movzx ecx, word [ebp - 0x14]
push ecx
call fcn.004a6140
add esp, 4
test eax, eax
je 0x4a5f3c
cmp word [esi + ebx*2], 0x37
jne 0x4a5f2e
mov edx, 0x38
mov word [esi + ebx*2], dx
jmp 0x4a611a
mov eax, 0x36
mov word [esi + ebx*2], ax
jmp 0x4a611a
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x21a]
push edx
mov word [ebp - 0x21c], cx
call fcn.004e7d90
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 0x4a5f60
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5f80
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 closesocket
lea eax, [ebp - 0x21c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4a5ff0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
cmp word [eax + ebx*2], 0x37
mov esi, eax
jne 0x4a5fe2
mov ecx, 0x38
mov word [eax + ebx*2], cx
jmp 0x4a611a
mov edx, 0x36
mov word [eax + ebx*2], dx
jmp 0x4a611a
push 0x800
call fcn.004e4240
add esp, 4
push 0x800
mov ebx, eax
push 0
push ebx
call fcn.004e7d90
mov eax, 0x51d580
mov edx, ebx
add esp, 0xc
sub edx, eax
jmp 0x4a6020
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a6020
lea esi, [ebx + 2]
push esi
lea edx, [ebp - 0x14]
call fcn.004b9b00
add esp, 4
test eax, eax
je 0x4a60f5
lea edi, [ebx - 2]
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a6050
mov eax, dword [0x51d580]
mov dword [edi], eax
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x4a60a5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6072
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.004e4207
add esp, 0xc
test eax, eax
je 0x4a609e
push ebx
push edi
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4a60a5
mov ecx, 0x36
jmp 0x4a60e5
mov edi, dword [ebp - 0x22c]
test edi, edi
je 0x4a60f5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a60b4
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.004e4207
add esp, 0xc
test eax, eax
je 0x4a60e0
push ebx
push edi
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4a60f5
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.004e7d90
add esp, 0xc
push ebx
call fcn.004e424b
mov ebx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
add esp, 4
inc ebx
mov dword [ebp - 0x224], ebx
cmp ebx, 0x1a
jl 0x4a5eb8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret