Function at 0x10052660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10153598
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1005269f
xor eax, eax
jmp 0x10052914
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x100526b6
xor eax, eax
jmp 0x10052914
push 0x208
push 0
push 0x101ac258
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
push 0
push 0x101ac050
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x101ac258
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1005281a
mov dword [ebp - 0x34], 0
jmp 0x10052708
mov edx, dword [ebp - 0x34]
add edx, 4
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax*2 + 0x101ac258]
test ecx, ecx
je 0x1005281a
push 0x1016b974
mov edx, dword [ebp - 0x34]
lea eax, [edx*2 + 0x101ac258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1005274f
push 0x1016b97c
mov ecx, dword [ebp - 0x34]
lea edx, [ecx*2 + 0x101ac258]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10052751
jmp 0x100526ff
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x34]
mov ax, word [edx*2 + 0x101ac258]
mov word [ebp + ecx - 0x18], ax
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x34]
mov ax, word [edx*2 + 0x101ac25a]
mov word [ebp + ecx - 0x18], ax
mov ecx, 2
shl ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 6
jae 0x10052793
jmp 0x10052798
call fcn.1014c9ff
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [ebp + eax - 0x18], dx
push 0x104
push 0x101ac050
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x100527c1
xor eax, eax
jmp 0x10052914
push 0x101ac050
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
push 0x101ac050
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10052815
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x10052914
jmp 0x100526ff
push 0x1016b984
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001cc20
add esp, 8
cmp eax, dword [ebp + 8]
jne 0x10052904
mov edx, 2
imul eax, edx, 0
mov ecx, 0x5c
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov dword [ebp - 0x38], str.DeviceMup
mov eax, dword [ebp - 0x38]
add eax, 2
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx]
mov word [ebp - 0x3a], dx
add dword [ebp - 0x38], 2
cmp word [ebp - 0x3a], 0
jne 0x10052858
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x48]
sar eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._LanmanRedirector
mov edx, dword [ebp + 0xc]
push edx
call fcn.1001cc20
add esp, 8
test eax, eax
je 0x100528fd
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002c60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.10052540
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10002d10
lea ecx, [ebp - 0x30]
call fcn.10001960
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x4c], 1
lea ecx, [ebp - 0x30]
call fcn.10002d10
mov eax, dword [ebp - 0x4c]
jmp 0x10052914
mov eax, 1
jmp 0x10052914
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret