Function at 0x1003d29
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
or dword [ebp - 0x20], 0xffffffff
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x44]
push eax
push 0x10092c0
push 0xc
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 1], 1
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010055d6
mov dword [ebp - 0x10], ebx
cmp dword [0x100b3e0], ebx
je 0x1003eee
mov esi, 0x100b3e0
cmp dword [ebp - 0x10], 1
jbe 0x1003d93
push 0xdb6
call fcn.0100544f
push dword [esi]
call fcn.0100680b
mov ecx, dword [esi]
push 4
mov dword [ebp - 0x30], ecx
mov edx, 0x1009478
pop esi
mov di, word [ecx]
cmp di, word [edx]
jne 0x1003dcb
cmp di, bx
je 0x1003dc7
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x1003dcb
add ecx, esi
add edx, esi
cmp di, bx
jne 0x1003da7
xor ecx, ecx
jmp 0x1003dd0
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1003dec
cmp eax, ebx
jne 0x1003de4
mov dword [ebp - 0x20], 0x80000000
jmp 0x1003eb6
mov dword [ebp - 0x38], eax
jmp 0x1003eb6
mov ecx, dword [ebp - 0x30]
mov edx, str._NETWORK
mov di, word [ecx]
cmp di, word [edx]
jne 0x1003e18
cmp di, bx
je 0x1003e14
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x1003e18
add ecx, esi
add edx, esi
cmp di, bx
jne 0x1003df4
xor ecx, ecx
jmp 0x1003e1d
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1003e37
cmp eax, ebx
je 0x1003eb6
cmp word [eax], bx
je 0x1003eb6
mov dword [ebp - 0x34], eax
jmp 0x1003eb6
mov eax, dword [ebp - 0x30]
mov edx, str._CACHE
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x1003e65
cmp di, bx
je 0x1003e61
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x1003e65
add ecx, esi
add edx, esi
cmp di, bx
jne 0x1003e41
xor ecx, ecx
jmp 0x1003e6a
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x1003e74
mov byte [ebp - 3], 1
jmp 0x1003eb6
mov ecx, str._ALL
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003e9d
cmp dx, bx
je 0x1003e99
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003e9d
add eax, esi
add ecx, esi
cmp dx, bx
jne 0x1003e79
xor eax, eax
jmp 0x1003ea2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1003eac
mov byte [ebp - 2], 1
jmp 0x1003eb6
push 0xdad
call fcn.0100544f
cmp dword [ebp - 0x10], ebx
jbe 0x1003eca
cmp byte [ebp - 2], bl
jne 0x1003eca
push 0xdb6
call fcn.0100544f
inc dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
lea esi, [esi*4 + 0x100b3e0]
cmp dword [esi], ebx
jne 0x1003d83
cmp dword [ebp - 0x34], ebx
je 0x1003eee
push 0xdad
call fcn.0100544f
cmp dword [ebp + 8], ebx
jne 0x100401e
call sub.IPHLPAPI.DLL_GetCurrentThreadCompartmentId
xor esi, esi
inc esi
cmp eax, esi
je 0x1003f19
push 0x125d
call fcn.010053d5
call fcn.010053bd
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 0x38]
lea eax, [ebp - 0xc]
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
xor eax, eax
cmp dword [ebp - 0x20], 0x80000000
setne al
add eax, 0x64
push eax
push ebx
call fcn.010076dc
cmp eax, 0xea
jne 0x1003f49
mov dword [ebp - 0x2c], esi
jmp 0x1003f53
cmp eax, ebx
je 0x1003f53
push eax
call fcn.0100544f
cmp dword [ebp - 0xc], ebx
jne 0x1003f5d
call fcn.01005438
xor eax, eax
mov esi, 0x80000000
cmp dword [ebp - 0x20], esi
push 0x1003bdc
setne al
push 0x14
pop ebx
dec eax
and eax, 0xfffffff0
add eax, ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
cmp dword [ebp - 0x20], esi
jne 0x1003f94
push 0x1260
jmp 0x1003f99
push 0x125c
call fcn.010053d5
call fcn.01005336
cmp dword [ebp - 0x20], esi
jne 0x1003fd9
mov edi, dword [ebp - 0x14]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x1004011
push 0
push dword [edi]
push ebx
call fcn.0100539a
push eax
push 0x10014f0
call fcn.01005036
pop ecx
pop ecx
call fcn.01005386
inc esi
add edi, 4
cmp esi, dword [ebp - 0xc]
jb 0x1003fb2
jmp 0x1004011
mov esi, dword [ebp - 0x14]
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x1004011
push 0
push dword [esi]
push ebx
call fcn.0100539a
push eax
push 0x10014e0
call fcn.01005036
pop ecx
pop ecx
push dword [esi + 0x10]
push 0xffffffffffffffc8
call fcn.010074b3
call fcn.01005386
inc edi
add esi, ebx
cmp edi, dword [ebp - 0xc]
jb 0x1003fe3
push dword [ebp - 0x14]
call fcn.01008016
jmp 0x10044dc
cmp byte [ebp - 3], 1
jne 0x1004042
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 0x1f5
push dword [ebp + 8]
call sub.srvcli.dll_NetShareEnum
jmp 0x1004045
mov eax, dword [ebp + 8]
cmp byte [ebp - 3], bl
je 0x1004053
cmp eax, ebx
je 0x100406f
cmp eax, 0x35
je 0x100406f
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 1
push dword [ebp + 8]
call sub.srvcli.dll_NetShareEnum
mov byte [ebp - 1], bl
cmp eax, 0xea
jne 0x100407f
mov dword [ebp - 0x2c], 1
jmp 0x1004089
cmp eax, ebx
je 0x1004089
push eax
call fcn.0100544f
cmp dword [ebp - 0xc], ebx
jne 0x1004093
call fcn.01005438
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x1004242
cmp byte [ebp - 2], 0
jne 0x10040c3
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x10040c3
cmp word [eax + 2], 0
je 0x100421f
push dword [esi]
call fcn.01004fcf
cmp eax, dword [ebp - 0x18]
jle 0x10040d2
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
and eax, 0x3fffffff
sub eax, 0
je 0x1004108
dec eax
je 0x1004100
dec eax
je 0x10040f8
dec eax
je 0x10040f0
push dword [0x10092f4]
jmp 0x100410e
push dword [0x10092ec]
jmp 0x100410e
push dword [0x10092dc]
jmp 0x100410e
push dword [0x10092e4]
jmp 0x100410e
push dword [0x10092d4]
call fcn.01004fcf
mov ebx, eax
cmp ebx, dword [ebp - 0x24]
jle 0x100411d
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1004123
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [esi]
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x1004138
sub eax, edx
sar eax, 1
lea edi, [eax + ecx + 2]
lea eax, [ebp - 8]
push eax
lea eax, [edi + edi]
push eax
call fcn.01005686
test eax, eax
je 0x1004161
push eax
call fcn.0100544f
push dword [ebp + 8]
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscpy_s
push 0x10014dc
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscat_s
push dword [esi]
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscat_s
add esp, 0x24
push 0x7ff
push 0x100dec0
push dword [ebp - 8]
call fcn.01003bfa
test eax, eax
jne 0x10041b3
push 0x100dec0
call fcn.01004fcf
mov ebx, eax
cmp ebx, dword [ebp - 0x28]
jle 0x10041b3
mov dword [ebp - 0x28], ebx
push dword [ebp - 8]
call fcn.010056b2
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x100420d
mov eax, dword [esi + 0xc]
and eax, 0x2030
je 0x1004205
cmp eax, 0x10
je 0x10041fd
cmp eax, 0x20
je 0x10041f5
cmp eax, 0x30
je 0x10041ed
cmp eax, 0x2000
jne 0x1004217
push dword [0x1009314]
jmp 0x1004210
push dword [0x100931c]
jmp 0x1004210
push dword [0x100930c]
jmp 0x1004210
push dword [0x1009304]
jmp 0x1004210
push dword [0x10092fc]
jmp 0x1004210
push dword [esi + 8]
call fcn.01004fcf
mov ebx, eax
cmp ebx, dword [ebp - 0x1c]
jle 0x100421f
mov dword [ebp - 0x1c], ebx
inc dword [ebp - 0x10]
cmp byte [ebp - 1], 0
je 0x100422d
add esi, 0x10
jmp 0x1004230
add esi, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x10040a2
cmp dword [ebp - 0x18], 0
jne 0x1004247
call fcn.01005438
xor eax, eax
cmp byte [ebp - 1], al
push 0x1003bdc
setne al
lea eax, [eax*4 + 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
push dword [ebp + 8]
push 0x1119
call fcn.01005412
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [ebp + 8]
call fcn.01007c86
test eax, eax
je 0x1004291
call fcn.01005386
jmp 0x10042ab
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x10]
push 0x10014c8
call fcn.01005036
pop ecx
pop ecx
push dword [ebp - 0x3c]
call fcn.01008016
push 2
pop esi
push esi
push 0x1288
push dword [ebp - 0x18]
call fcn.0100752b
push esi
push 0x1289
push dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
call fcn.0100752b
push esi
push 0x128a
push dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
call fcn.0100752b
push esi
push 0x128b
push dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
call fcn.0100752b
mov dword [ebp - 0x1c], eax
call fcn.01005386
or eax, 0xffffffff
cmp dword [ebp - 0x18], eax
je 0x100430e
cmp dword [ebp - 0x24], eax
je 0x100430e
cmp dword [ebp - 0x28], eax
je 0x100430e
cmp dword [ebp - 0x1c], eax
jne 0x1004315
push 0x57
call fcn.0100544f
call fcn.01005386
call fcn.01005336
and dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
mov edi, dword [ebp - 0x14]
jbe 0x10044bc
mov ebx, 0x100dec0
cmp byte [ebp - 2], 0
jne 0x1004356
push 0x24
push dword [edi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1004356
cmp word [eax + 2], 0
je 0x100449f
push dword [edi]
push dword [ebp - 0x18]
call fcn.010074b3
mov eax, dword [edi + 4]
and eax, 0x3fffffff
sub eax, 0
je 0x1004392
dec eax
je 0x100438b
dec eax
je 0x1004384
dec eax
je 0x100437d
mov eax, dword [0x10092f4]
jmp 0x1004397
mov eax, dword [0x10092ec]
jmp 0x1004397
mov eax, dword [0x10092dc]
jmp 0x1004397
mov eax, dword [0x10092e4]
jmp 0x1004397
mov eax, dword [0x10092d4]
push eax
push dword [ebp - 0x24]
call fcn.010074b3
mov eax, dword [ebp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10043a6
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [edi]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10043bb
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 2]
lea eax, [ebp - 8]
push eax
lea eax, [esi + esi]
push eax
call fcn.01005686
test eax, eax
je 0x10043e4
push eax
call fcn.0100544f
push dword [ebp + 8]
push esi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscpy_s
push 0x10014dc
push esi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscat_s
push dword [edi]
push esi
push dword [ebp - 8]
call sub.msvcrt.dll_wcscat_s
add esp, 0x24
push 0x7ff
push ebx
push dword [ebp - 8]
call fcn.01003bfa
test eax, eax
je 0x1004427
mov dword [ebp - 0x40], 1
jmp 0x1004430
push ebx
push dword [ebp - 0x28]
call fcn.010074b3
push dword [ebp - 8]
call fcn.010056b2
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x100448f
mov eax, dword [edi + 0xc]
and eax, 0x2030
je 0x100447e
cmp eax, 0x10
je 0x1004477
cmp eax, 0x20
je 0x1004470
cmp eax, 0x30
je 0x1004469
cmp eax, 0x2000
jne 0x1004487
mov eax, dword [0x1009314]
jmp 0x1004483
mov eax, dword [0x100931c]
jmp 0x1004483
mov eax, dword [0x100930c]
jmp 0x1004483
mov eax, dword [0x1009304]
jmp 0x1004483
mov eax, dword [0x10092fc]
test eax, eax
jne 0x100448c
mov eax, 0x10012b4
push eax
jmp 0x1004492
push dword [edi + 8]
push dword [ebp - 0x1c]
call fcn.010074b3
call fcn.01005386
inc dword [ebp - 0x10]
cmp byte [ebp - 1], 0
je 0x10044ad
add edi, 0x10
jmp 0x10044b0
add edi, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x1004335
push dword [ebp - 0x14]
call fcn.01008016
cmp word [ebp - 0x40], 0
je 0x10044dc
push 0xdb0
call fcn.010053d5
push 1
call fcn.01004f08
cmp word [ebp - 0x2c], 0
je 0x1003f0d
push 0xdb9
call fcn.010053d5
jmp 0x1003f12