Function at 0x10040e0
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
or dword [ebp - 0x38], 0xffffffff
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x44]
push eax
push 0x10092e0
push 0xb
mov dword [ebp - 0x40], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 1], 1
mov byte [ebp - 2], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
call fcn.010053a1
cmp dword [0x100b3e0], esi
mov edi, 0x80000000
je 0x10041e8
and dword [ebp - 0x18], 0
mov eax, 0x100b3e0
mov esi, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
jbe 0x1004153
push 0xdb6
call fcn.0100524c
push dword [esi]
call fcn.010063fd
push 0x1009470
push dword [esi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100417d
test ebx, ebx
jne 0x1004178
mov dword [ebp - 0x38], edi
jmp 0x10041c1
mov dword [ebp - 0x34], ebx
jmp 0x10041c1
push str._NETWORK
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100419e
test ebx, ebx
je 0x10041c1
cmp word [ebx], ax
je 0x10041c1
mov dword [ebp - 0x28], ebx
jmp 0x10041c1
push str._CACHE
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10041b7
mov byte [ebp - 2], 1
jmp 0x10041c1
push 0xdad
call fcn.0100524c
mov esi, dword [ebp - 0x30]
add dword [ebp - 0x18], 4
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 0x30], esi
jne 0x1004143
cmp dword [ebp - 0x28], 0
je 0x10041e8
push dword [ebp + 8]
push dword [ebp - 0x28]
call fcn.01003e35
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10042f2
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
xor eax, eax
cmp esi, edi
setne al
add eax, 0x64
push eax
push ebx
call fcn.01007849
cmp eax, 0xea
jne 0x1004223
mov dword [ebp - 0x2c], 1
jmp 0x100422d
cmp eax, ebx
je 0x100422d
push eax
call fcn.0100524c
cmp dword [ebp - 0xc], ebx
jne 0x1004237
call fcn.01005235
xor eax, eax
cmp esi, edi
setne al
push 0x1003999
push 0x14
pop ebx
dec eax
and eax, 0xfffffff0
add eax, ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
cmp esi, edi
jne 0x1004267
push 0x1260
jmp 0x100426c
push 0x125c
call fcn.010051d2
call fcn.01005158
cmp esi, edi
jne 0x10042ab
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x10042e3
push 0
push dword [edi]
push ebx
call fcn.01004e95
push eax
push 0x10014f8
call fcn.01004e56
pop ecx
pop ecx
call fcn.010051a6
inc esi
add edi, 4
cmp esi, dword [ebp - 0xc]
jb 0x1004284
jmp 0x10042e3
mov esi, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x10042e3
push 0
push dword [esi]
push ebx
call fcn.01004e95
push eax
push 0x10014e8
call fcn.01004e56
pop ecx
pop ecx
push dword [esi + 0x10]
push 0xffffffffffffffc8
call fcn.0100764a
call fcn.010051a6
inc edi
add esi, ebx
cmp edi, dword [ebp - 0xc]
jb 0x10042b5
push dword [ebp - 0x10]
call fcn.010081c2
xor ebx, ebx
jmp 0x1004751
cmp byte [ebp - 2], 1
jne 0x1004316
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 0x1f5
push dword [ebp + 8]
call sub.NETAPI32.dll_NetShareEnum
jmp 0x1004319
mov eax, dword [ebp + 8]
cmp byte [ebp - 2], 0
je 0x1004328
cmp eax, ebx
je 0x1004345
cmp eax, 0x35
je 0x1004345
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ebp + 8]
call sub.NETAPI32.dll_NetShareEnum
mov byte [ebp - 1], 0
cmp eax, 0xea
jne 0x1004355
mov dword [ebp - 0x2c], 1
jmp 0x100435f
cmp eax, ebx
je 0x100435f
push eax
call fcn.0100524c
cmp dword [ebp - 0xc], ebx
jne 0x1004369
call fcn.01005235
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
jbe 0x10044e8
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1004392
cmp word [eax + 2], bx
je 0x10044c6
push dword [esi]
call fcn.01004df7
cmp eax, dword [ebp - 0x24]
jle 0x10043a1
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
and eax, 0x7fffffff
sub eax, ebx
je 0x10043d6
dec eax
je 0x10043ce
dec eax
je 0x10043c6
dec eax
je 0x10043be
push dword [0x1009314]
jmp 0x10043dc
push dword [0x100930c]
jmp 0x10043dc
push dword [0x10092fc]
jmp 0x10043dc
push dword [0x1009304]
jmp 0x10043dc
push dword [0x10092f4]
call fcn.01004df7
mov edi, eax
cmp edi, dword [ebp - 0x1c]
jle 0x10043eb
mov dword [ebp - 0x1c], edi
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
push dword [esi]
mov dword [ebp - 0x34], eax
call ebx
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call fcn.01005451
test eax, eax
je 0x100441c
push eax
call fcn.0100524c
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcscat]
push 0x10014e4
push dword [ebp - 8]
call ebx
push dword [esi]
push dword [ebp - 8]
call ebx
add esp, 0x18
push 0x3ff
mov ebx, 0x100d380
push ebx
push dword [ebp - 8]
call fcn.010039db
test eax, eax
jne 0x1004469
push ebx
call fcn.01004df7
mov edi, eax
cmp edi, dword [ebp - 0x20]
jle 0x1004469
mov dword [ebp - 0x20], edi
push dword [ebp - 8]
call fcn.0100547d
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x10044b2
mov eax, dword [esi + 0xc]
and eax, 0x30
je 0x10044aa
cmp eax, 0x10
je 0x10044a2
cmp eax, 0x20
je 0x100449a
cmp eax, 0x30
jne 0x10044bc
push dword [0x1009334]
jmp 0x10044b5
push dword [0x100932c]
jmp 0x10044b5
push dword [0x1009324]
jmp 0x10044b5
push dword [0x100931c]
jmp 0x10044b5
push dword [esi + 8]
call fcn.01004df7
mov edi, eax
xor ebx, ebx
cmp edi, dword [ebp - 0x14]
jle 0x10044c6
mov dword [ebp - 0x14], edi
inc dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x10044d4
add esi, 0x10
jmp 0x10044d7
add esi, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jb 0x1004378
cmp dword [ebp - 0x24], ebx
jne 0x10044ed
call fcn.01005235
xor eax, eax
cmp byte [ebp - 1], al
push 0x1003999
setne al
lea eax, [eax*4 + 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
push dword [ebp + 8]
push 0x1119
call fcn.0100520f
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [ebp + 8]
call fcn.01007db1
test eax, eax
je 0x1004537
call fcn.010051a6
jmp 0x1004551
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x10]
push 0x10014d0
call fcn.01004e56
pop ecx
pop ecx
push dword [ebp - 0x3c]
call fcn.010081c2
push 2
pop esi
push esi
push 0x1288
push dword [ebp - 0x24]
call fcn.010076c2
push esi
push 0x1289
push dword [ebp - 0x1c]
mov edi, eax
call fcn.010076c2
push esi
push 0x128a
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.010076c2
push esi
push 0x128b
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.010076c2
mov dword [ebp - 0x14], eax
call fcn.010051a6
cmp edi, 0xffffffff
je 0x10045b3
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10045b3
cmp dword [ebp - 0x20], 0xffffffff
je 0x10045b3
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10045ba
push 0x57
call fcn.0100524c
call fcn.010051a6
call fcn.01005158
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
jbe 0x1004732
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10045ed
cmp word [eax + 2], bx
je 0x1004715
push dword [esi]
push edi
call fcn.0100764a
mov eax, dword [esi + 4]
and eax, 0x7fffffff
sub eax, ebx
je 0x1004626
dec eax
je 0x100461f
dec eax
je 0x1004618
dec eax
je 0x1004611
mov eax, dword [0x1009314]
jmp 0x100462b
mov eax, dword [0x100930c]
jmp 0x100462b
mov eax, dword [0x10092fc]
jmp 0x100462b
mov eax, dword [0x1009304]
jmp 0x100462b
mov eax, dword [0x10092f4]
push eax
push dword [ebp - 0x1c]
call fcn.0100764a
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call ebx
push dword [esi]
mov dword [ebp - 0x34], eax
call ebx
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
call fcn.01005451
test eax, eax
je 0x1004665
push eax
call fcn.0100524c
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcscat]
push 0x10014e4
push dword [ebp - 8]
call ebx
push dword [esi]
push dword [ebp - 8]
call ebx
add esp, 0x18
push 0x3ff
mov ebx, 0x100d380
push ebx
push dword [ebp - 8]
call fcn.010039db
test eax, eax
je 0x10046ab
mov dword [ebp - 0x40], 1
jmp 0x10046b4
push ebx
push dword [ebp - 0x20]
call fcn.0100764a
push dword [ebp - 8]
call fcn.0100547d
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x1004703
mov eax, dword [esi + 0xc]
and eax, 0x30
je 0x10046f2
cmp eax, 0x10
je 0x10046eb
cmp eax, 0x20
je 0x10046e4
cmp eax, 0x30
jne 0x10046fb
mov eax, dword [0x1009334]
jmp 0x10046f7
mov eax, dword [0x100932c]
jmp 0x10046f7
mov eax, dword [0x1009324]
jmp 0x10046f7
mov eax, dword [0x100931c]
test eax, eax
jne 0x1004700
mov eax, 0x1001294
push eax
jmp 0x1004706
push dword [esi + 8]
push dword [ebp - 0x14]
call fcn.0100764a
call fcn.010051a6
xor ebx, ebx
inc dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x1004723
add esi, 0x10
jmp 0x1004726
add esi, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jb 0x10045d3
push dword [ebp - 0x10]
call fcn.010081c2
cmp word [ebp - 0x40], bx
je 0x1004751
push 0xdb0
call fcn.010051d2
push 1
call fcn.01004d3c
cmp word [ebp - 0x2c], bx
pop edi
pop esi
pop ebx
je 0x1004766
push 0xdb9
call fcn.010051d2
jmp 0x100476b
call fcn.010051ba
leave
ret 4