Function at 0x10052110
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157738
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x101ac034]
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 0x1005214f
xor eax, eax
jmp 0x100523c4
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x10052166
xor eax, eax
jmp 0x100523c4
push 0x208
push 0
push 0x101b3aa8
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
push 0
push 0x101b38a0
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x101b3aa8
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100522ca
mov dword [ebp - 0x34], 0
jmp 0x100521b8
mov edx, dword [ebp - 0x34]
add edx, 4
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax*2 + 0x101b3aa8]
test ecx, ecx
je 0x100522ca
push 0x10170c80
mov edx, dword [ebp - 0x34]
lea eax, [edx*2 + 0x101b3aa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100521ff
push 0x10170c88
mov ecx, dword [ebp - 0x34]
lea edx, [ecx*2 + 0x101b3aa8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10052201
jmp 0x100521af
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x34]
mov ax, word [edx*2 + 0x101b3aa8]
mov word [ebp + ecx - 0x18], ax
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x34]
mov ax, word [edx*2 + 0x101b3aaa]
mov word [ebp + ecx - 0x18], ax
mov ecx, 2
shl ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 6
jae 0x10052243
jmp 0x10052248
call fcn.10150a4f
xor edx, edx
mov eax, dword [ebp - 0x40]
mov word [ebp + eax - 0x18], dx
push 0x104
push 0x101b38a0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10052271
xor eax, eax
jmp 0x100523c4
push 0x101b38a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
push 0x101b38a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100522c5
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 0x100523c4
jmp 0x100521af
push 0x10170c90
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001cfc0
add esp, 8
cmp eax, dword [ebp + 8]
jne 0x100523b4
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 0x10052308
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.1001cfc0
add esp, 8
test eax, eax
je 0x100523ad
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
call fcn.10003d50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.10051ff0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10003e00
lea ecx, [ebp - 0x30]
call fcn.10002bf0
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.10003e00
mov eax, dword [ebp - 0x4c]
jmp 0x100523c4
mov eax, 1
jmp 0x100523c4
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.101506bb
mov esp, ebp
pop ebp
ret