Function at 0x100a38b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc0]
push eax
push 0x1020430
push 0x1c
call fcn.01010adf
push dword [0x1020964]
call fcn.0100a9cd
push 0x1000
call fcn.0101250d
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x100a3dd
push 8
call fcn.0100295a
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]
pop ecx
pop ecx
cmp eax, ebx
je 0x100a446
xor ecx, ecx
mov word [eax], cx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x100a404
push dword [0x1020974]
sub eax, edx
sar eax, 1
push edi
lea ebx, [edi + eax*2 + 2]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100a43c
push dword [0x1020978]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100a446
push 0xec2
call fcn.0100295a
push 2
pop eax
mov dword [esi], edi
cmp dword [ebp + 0x10], eax
jne 0x100a45f
mov dword [esi + 4], eax
mov dword [esi + 0xc], 7
jmp 0x100a4e2
test ebx, ebx
jne 0x100a488
push dword [0x1020974]
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100a47b
and dword [esi + 4], eax
jmp 0x100a482
mov dword [esi + 4], 3
and dword [esi + 0x18], 0
jmp 0x100a4e5
push 0
lea eax, [ebp - 0xbc]
push eax
push ebx
call sub.netutils.dll_NetpwPathType
test eax, eax
je 0x100a4a5
mov dword [ebp - 0xbc], 0x4010
cmp dword [ebp - 0xbc], 0x4000
jne 0x100a4de
push 3
push ebx
lea eax, [ebp - 0xc]
push 4
push eax
call sub.msvcrt.dll_wcsncpy_s
push 0x1003740
lea eax, [ebp - 8]
push 2
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0xc]
add esp, 0x1c
and dword [esi + 4], 0
mov dword [esi + 0x18], eax
jmp 0x100a4e5
and dword [esi + 4], 0
mov dword [esi + 0x18], ebx
push 1
lea eax, [ebp - 0xb8]
push eax
push esi
mov dword [esi + 0x1c], 0x1003764
call fcn.01008f8b
push 0
push esi
push 0x1f6
push 0
call sub.srvcli.dll_NetShareAdd
push dword [esi + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x100a51f
push edi
call fcn.0100295a
mov edi, 0xffff
cmp dword [ebp - 0xb8], edi
je 0x100a53c
cmp dword [esi + 4], 0
je 0x100a542
push 0xec8
call fcn.0100295a
cmp dword [esi + 4], 0
jne 0x100a589
test ebx, ebx
je 0x100a589
mov ax, word [ebx]
push 0x3a
mov word [ebp - 0xb0], ax
pop eax
mov word [ebp - 0xae], ax
push 0x5c
pop eax
mov word [ebp - 0xac], ax
xor eax, eax
mov word [ebp - 0xaa], ax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x100a589
push 0xe98
call fcn.0100295a
push dword [esi]
and dword [esi + 0x20], 0
push 0x1230
call fcn.01010933
cmp dword [ebp - 0xb8], edi
je 0x100a601
lea eax, [ebp - 0xb4]
push eax
mov edi, 0x3ed
push edi
push dword [esi]
xor ebx, ebx
push ebx
call sub.srvcli.dll_NetShareGetInfo
cmp eax, ebx
je 0x100a5c2
push eax
call fcn.0100295a
mov eax, dword [ebp - 0xb4]
and dword [eax], 0xffffdfcf
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.srvcli.dll_NetShareSetInfo
cmp eax, ebx
je 0x100a5f6
push eax
call fcn.0100295a
push dword [ebp - 0xb4]
call sub.netutils.dll_NetApiBufferFree
push esi
call sub.netutils.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002d45
leave
ret 0xc