Function at 0x100285d0
Capabilities:
Enumerate network shares
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
mov ebx, dword [esp + 0x278]
push ebp
push esi
mov esi, dword [esp + 0x278]
push edi
mov edi, dword [esp + 0x280]
push str.WNetEnumSharePrinters___Start
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call fcn.10033fe0
mov ecx, dword [esp + 0x27c]
xor ebp, ebp
mov dword [edi], ebp
add esp, 4
xor eax, eax
cmp ecx, ebp
mov dword [ebx], ebp
mov dword [esi], ebp
mov dword [esp + 0x10], ebp
je 0x10028674
mov edx, dword [ecx]
test dl, 2
je 0x10028ba5
mov dword [esp + 0x54], eax
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
push ebp
push 2
mov dword [esp + 0x30], ebp
call sub.MPR.dll_WNetOpenEnumW
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x10028b7a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4000
push 8
mov dword [esp + 0x34], 0x4000
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x24], ebx
je 0x10028b62
or esi, 0xffffffff
jmp 0x100286c8
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], esi
call sub.MPR.dll_WNetEnumResourceW
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x10028783
cmp eax, 0x103
je 0x10028783
push ebx
push ebp
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
cmp eax, 0xea
jne 0x10028747
mov eax, dword [esp + 0x2c]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x100286c4
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x14], 8
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [esp + 0x10]
push edx
push str.WNetEnumSharePrinters___Alloc_Error:_d
jmp 0x10028b99
cmp eax, 0x4b8
jne 0x1002876a
push eax
push str.WNetEnumSharePrinters___ExtendedError:_d
call fcn.10033fe0
add esp, 8
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
call sub.MPR.dll_WNetGetLastErrorW
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [esp + 0x10]
push edx
push str.WNetEnumSharePrinters___Error:_d
jmp 0x10028b99
mov edi, dword [esp + 0x20]
cmp edi, ebp
mov dword [esp + 0x10], ebp
jbe 0x10028b43
push 0x206
lea eax, [esp + 0x6e]
push ebp
push eax
mov word [esp + 0x74], bp
call fcn.100376a0
lea esi, [edi + edi*2]
add esi, esi
add esi, esi
add esi, esi
add esp, 0xc
cmp edi, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
jbe 0x100288b1
add ebx, 0x1c
mov eax, dword [ebx - 4]
cmp eax, ebp
je 0x100287ea
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100287d1
sub eax, edx
sar eax, 1
lea ecx, [esi + eax*2 + 2]
mov dword [esp + 0x18], ecx
mov esi, ecx
mov eax, dword [ebx]
cmp eax, ebp
je 0x1002880a
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100287f3
sub eax, edx
sar eax, 1
lea edx, [esi + eax*2 + 2]
mov dword [esp + 0x18], edx
mov esi, dword [ebx - 8]
cmp esi, ebp
je 0x10028893
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10028820
sub eax, edx
sar eax, 1
push 0x208
mov edi, eax
lea eax, [esp + 0x6c]
push ebp
push eax
call fcn.100376a0
mov edx, dword [ebx - 0x18]
mov eax, dword [ebx - 0x14]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x6c]
push ecx
push edx
mov edx, dword [esp + 0x34]
push eax
mov ecx, edx
call fcn.10027cd0
push eax
push ebp
push esi
mov ecx, edx
call fcn.10028090
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10028872
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
add eax, edi
mov edi, dword [esp + 0x20]
lea edx, [ecx + eax*2 + 4]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add eax, 1
add ebx, 0x20
cmp eax, edi
mov dword [esp + 0x14], eax
jb 0x100287c7
mov ebx, dword [esp + 0x24]
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
cmp ecx, ebp
mov dword [esp + 0x44], ecx
je 0x10028b3b
mov eax, dword [esp + 0x20]
cmp eax, ebp
lea edx, [eax + eax*2]
lea esi, [ecx + edx*8]
mov dword [esp + 0x30], ebp
jbe 0x10028b06
mov edi, dword [esp + 0x24]
lea ebx, [ecx + 4]
mov dword [esp + 0x14], ebx
add edi, 0x1c
mov eax, dword [edi - 0x10]
mov dword [ebx - 4], eax
mov ecx, dword [edi - 0x18]
mov edx, dword [edi - 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.10027cd0
mov dword [ebx], eax
mov ecx, dword [edi - 4]
cmp ecx, ebp
je 0x1002894c
mov eax, ecx
lea ebx, [eax + 2]
jmp 0x10028920
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x10028920
sub eax, ebx
sar eax, 1
push ecx
lea ebx, [eax + 1]
push ebx
push esi
mov ebp, esi
call fcn.10037627
add esp, 0xc
lea esi, [esi + ebx*2]
mov ebx, dword [esp + 0x14]
mov eax, ebp
xor ebp, ebp
jmp 0x1002894e
xor eax, eax
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
cmp ecx, ebp
je 0x1002898c
mov eax, ecx
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x10028960
sub eax, ebx
sar eax, 1
push ecx
lea ebx, [eax + 1]
push ebx
push esi
mov ebp, esi
call fcn.10037627
add esp, 0xc
lea esi, [esi + ebx*2]
mov ebx, dword [esp + 0x14]
mov eax, ebp
xor ebp, ebp
jmp 0x1002898e
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [edi - 8]
cmp eax, ebp
je 0x100289a6
push eax
push str.lpRemoteName:_s
call fcn.10033fe0
add esp, 8
mov eax, dword [edi - 4]
cmp eax, ebp
je 0x100289bb
push eax
push str.lpComment:_s
call fcn.10033fe0
add esp, 8
mov eax, dword [edi]
cmp eax, ebp
je 0x100289cf
push eax
push str.lpProvider:_s
call fcn.10033fe0
add esp, 8
mov eax, dword [edi - 0xc]
cmp eax, ebp
je 0x100289e4
push eax
push str.lpLocalName:_s
call fcn.10033fe0
add esp, 8
mov eax, dword [edi - 0x14]
push eax
push str.dwDisplayType:_d
call fcn.10033fe0
mov ecx, dword [edi - 0x1c]
push ecx
push str.dwScope:_d
call fcn.10033fe0
mov edx, dword [edi - 0x18]
push edx
push str.dwType:_d
call fcn.10033fe0
mov eax, dword [edi - 0x10]
push eax
push str.dwUsage:_d
call fcn.10033fe0
push 0x100533f4
call fcn.10033fe0
mov ecx, dword [edi - 8]
add esp, 0x24
cmp ecx, ebp
je 0x10028ad7
mov eax, ecx
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x10028a40
sub eax, ebx
sar eax, 1
push ecx
lea ebx, [eax + 1]
push ebx
push esi
mov ebp, esi
call fcn.10037627
push 0x208
lea ecx, [esp + 0x78]
lea esi, [esi + ebx*2]
mov ebx, dword [esp + 0x24]
push 0
push ecx
mov dword [ebx + 4], ebp
call fcn.100376a0
mov eax, dword [ebx]
mov ecx, dword [edi - 8]
add esp, 0x18
push 0x104
lea edx, [esp + 0x6c]
push edx
push eax
push 0
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.10028090
lea eax, [esp + 0x68]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10028aa0
sub eax, ecx
sar eax, 1
lea edx, [esp + 0x68]
push edx
lea ebp, [eax + 1]
push ebp
push esi
mov dword [esp + 0x4c], esi
call fcn.10037627
mov eax, dword [esp + 0x4c]
add esp, 0xc
lea esi, [esi + ebp*2]
mov dword [ebx + 8], eax
mov ebx, dword [esp + 0x14]
xor ebp, ebp
jmp 0x10028add
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
add ecx, 1
add ebx, 0x18
add edi, 0x20
cmp ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], ebx
jb 0x100288f3
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
push ebx
push ebp
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x1c]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 0x1c], ebp
jmp 0x10028b8f
mov dword [esp + 0x10], 8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x1c]
push edx
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 0x1c], ebp
jmp 0x10028b8f
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x14], 8
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 0x1c], ebp
jmp 0x10028b8f
cmp eax, 0x4b8
jne 0x10028b93
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
call sub.MPR.dll_WNetGetLastErrorW
mov eax, dword [esp + 0x10]
push eax
push str.WNetEnumSharePrinters___End:_d
call fcn.10033fe0
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esp + 0x270]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003754f
add esp, 0x264
ret 0x10