Function at 0x1009811
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x101d774]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc0]
push eax
push 0x101d1c0
push 0x13
call fcn.010101a1
push dword [0x101d78c]
call fcn.0100a1f5
push 0x1000
call fcn.010124f6
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1009861
push 8
call fcn.0101004c
or dword [esi + 0x10], 0xffffffff
push 0x3d
push edi
mov dword [esi + 0xc], 0x3f
mov dword [esi + 8], ebx
call dword [sym.imp.msvcrt.dll_wcschr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10098c5
push edi
mov word [eax], bx
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [0x101d7a0]
lea eax, [edi + eax*2 + 2]
push edi
mov dword [ebp - 0xb4], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0xc
test eax, eax
je 0x10098b9
push dword [0x101d7a4]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10098cb
push 0xec2
call fcn.0101004c
jmp 0x10098cb
mov dword [ebp - 0xb4], ebx
push 2
pop eax
cmp dword [ebp + 0x10], eax
mov dword [esi], edi
jne 0x10098e4
mov dword [esi + 4], eax
mov dword [esi + 0xc], 7
jmp 0x100996d
cmp dword [ebp - 0xb4], ebx
jne 0x1009910
push dword [0x101d7a0]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x18], ebx
jne 0x1009907
mov dword [esi + 4], ebx
jmp 0x1009976
mov dword [esi + 4], 3
jmp 0x1009976
push ebx
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb4]
push ebx
call sub.NETAPI32.dll_I_NetPathType
test eax, eax
je 0x1009932
mov dword [ebp - 0xbc], 0x4010
cmp dword [ebp - 0xbc], 0x4000
jne 0x100996a
push 3
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 8]
push 0x10014d0
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0xc]
mov dword [esi + 4], ebx
jmp 0x1009973
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0xb8]
push eax
push esi
mov dword [esi + 0x1c], 0x10015f8
call fcn.01008e33
mov edi, 0xffff
cmp dword [ebp - 0xb8], edi
je 0x10099a6
cmp dword [esi + 4], ebx
je 0x10099ab
push 0xec8
call fcn.0101004c
cmp dword [esi + 4], ebx
jne 0x10099f4
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
je 0x10099f4
mov ax, word [eax]
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0xb0]
push eax
mov word [ebp - 0xae], 0x3a
mov word [ebp - 0xac], 0x5c
mov word [ebp - 0xaa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x10099f4
push 0xe98
call fcn.0101004c
push ebx
push esi
push 2
push ebx
call sub.NETAPI32.dll_NetShareAdd
cmp eax, ebx
je 0x1009a08
push eax
call fcn.0101004c
push dword [esi]
push 0x1230
call fcn.0101000f
cmp dword [ebp - 0xb8], edi
je 0x1009a77
lea eax, [ebp - 0xb4]
push eax
mov edi, 0x3ed
push edi
push dword [esi]
push ebx
call sub.NETAPI32.dll_NetShareGetInfo
cmp eax, ebx
je 0x1009a3b
push eax
call fcn.0101004c
mov eax, dword [ebp - 0xb4]
and dword [eax], 0xffffffcf
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xb8]
or dword [eax], ecx
push ebx
push dword [ebp - 0xb4]
push edi
push dword [esi]
push ebx
call sub.NETAPI32.dll_NetShareSetInfo
cmp eax, ebx
je 0x1009a6c
push eax
call fcn.0101004c
push dword [ebp - 0xb4]
call sub.NETAPI32.dll_NetApiBufferFree
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f4dc
leave
ret 0xc