Function at 0x100a025
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x101d78c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc0]
push eax
push 0x101d1a8
push 0x19
call fcn.01010a4f
push dword [0x101d7a4]
call fcn.0100aa22
push 0x1000
call fcn.01012959
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x100a075
push 8
call fcn.010108fa
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 0x100a0d9
push edi
mov word [eax], bx
call dword [sym.imp.msvcrt.dll_wcslen]
push dword [0x101d7b8]
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 0x100a0cd
push dword [0x101d7bc]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100a0df
push 0xec2
call fcn.010108fa
jmp 0x100a0df
mov dword [ebp - 0xb4], ebx
push 2
pop eax
cmp dword [ebp + 0x10], eax
mov dword [esi], edi
jne 0x100a0f8
mov dword [esi + 4], eax
mov dword [esi + 0xc], 7
jmp 0x100a181
cmp dword [ebp - 0xb4], ebx
jne 0x100a124
push dword [0x101d7b8]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0x18], ebx
jne 0x100a11b
mov dword [esi + 4], ebx
jmp 0x100a18a
mov dword [esi + 4], 3
jmp 0x100a18a
push ebx
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb4]
push ebx
call sub.NETAPI32.dll_I_NetPathType
test eax, eax
je 0x100a146
mov dword [ebp - 0xbc], 0x4010
cmp dword [ebp - 0xbc], 0x4000
jne 0x100a17e
push 3
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 8]
push 0x1001578
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0xc]
mov dword [esi + 4], ebx
jmp 0x100a187
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x18], eax
push 1
lea eax, [ebp - 0xb8]
push eax
push esi
mov dword [esi + 0x1c], 0x10015f4
call fcn.01008fa8
push ebx
push esi
push 0x1f6
push ebx
call sub.NETAPI32.dll_NetShareAdd
push dword [esi + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, ebx
je 0x100a1c2
push edi
call fcn.010108fa
mov edi, 0xffff
cmp dword [ebp - 0xb8], edi
je 0x100a1de
cmp dword [esi + 4], ebx
je 0x100a1e3
push 0xec8
call fcn.010108fa
cmp dword [esi + 4], ebx
jne 0x100a22c
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
je 0x100a22c
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 0x100a22c
push 0xe98
call fcn.010108fa
push dword [esi]
mov dword [esi + 0x20], ebx
push 0x1230
call fcn.010108bd
cmp dword [ebp - 0xb8], edi
je 0x100a29e
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 0x100a262
push eax
call fcn.010108fa
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 0x100a293
push eax
call fcn.010108fa
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.0100fd6e
leave
ret 0xc