Function at 0x4a8de0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3df0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x10]
lea eax, [ecx + 0x10]
mov edi, dword [eax + 4]
mov dword [ebp - 0x50], eax
cmp esi, edi
je 0x4a8e36
nop word [eax + eax]
mov ecx, esi
call fcn.004a8090
add esi, 8
cmp esi, edi
jne 0x4a8e20
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov esi, eax
test esi, esi
je 0x4a91cf
lea eax, [esi + 1]
mov dword [ebp - 0x30], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
call fcn.0047bcb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push esi
call edi
test eax, eax
je 0x4a917e
push 0x4dd464
lea ecx, [ebp - 0x4c]
call fcn.00460950
mov byte [ebp - 4], 1
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae edi, dword [ebp - 0x40]
or esi, 0xffffffff
cmp word [edi], 0
je 0x4a9162
nop word [eax + eax]
push 0x105
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.0047bcb0
mov byte [ebp - 4], 2
movzx ecx, word [edi]
mov eax, ecx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax - 0xc]
test esi, esi
jle 0x4a91ef
cmp dword [eax - 4], 1
jle 0x4a8f13
push esi
lea ecx, [ebp - 0x4c]
call fcn.00460f70
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
mov word [eax], cx
mov eax, dword [ebp - 0x4c]
cmp esi, dword [eax - 8]
jg 0x4a91ef
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
push 0x104
mov word [eax + esi*2], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4a90ea
lea eax, [ebp - 0x48]
mov dword [ebp - 0x58], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4a91f9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x5c], eax
call fcn.00456f20
mov ecx, eax
test ecx, ecx
je 0x4a91f9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 7
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8fa1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.00461210
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x4a8fce
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x4a8fce
xor eax, eax
jmp 0x4a8fe2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8fd3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00461210
mov edx, dword [ebp - 0x48]
mov esi, dword [edx - 0xc]
test esi, esi
js 0x4a91ef
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4a9017
push esi
lea ecx, [ebp - 0x48]
call fcn.00461340
mov edx, dword [ebp - 0x48]
lea eax, [esi + 1]
push eax
push edx
call fcn.004b372e
mov eax, dword [ebp - 0x48]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4a91ef
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x50]
mov esi, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x4a9089
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov dword [ebp - 0x64], esi
push eax
call fcn.00461130
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 9
add esi, 4
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
push eax
call fcn.00461130
add eax, 0x10
add esp, 8
mov dword [esi], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x50]
add dword [eax + 4], 8
jmp 0x4a9095
lea ecx, [ebp - 0x48]
push ecx
push esi
mov ecx, eax
call fcn.004a7b80
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
mov edx, dword [ebp - 0x44]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a90c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a90ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a90ed
or esi, 0xffffffff
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a90f2
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4a9145
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a913b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a91ea
push ecx
push edx
call fcn.004aa103
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [edi], ax
jne 0x4a8ec0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4a917e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4a91bb
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4a91b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a91ea
push ecx
push edx
call fcn.004aa103
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
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.004a9913
mov esp, ebp
pop ebp
ret
call fcn.004b3474
push 0x80070057
call fcn.00456c70
push 0x80004005
call fcn.00456c70
int3