Function at 0x1004129
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 0x10092c0
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.010053f1
cmp dword [0x100b3e0], esi
mov edi, 0x80000000
je 0x1004231
and dword [ebp - 0x18], 0
mov eax, 0x100b3e0
mov esi, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x18], 0
jbe 0x100419c
push 0xdb6
call fcn.0100529c
push dword [esi]
call fcn.0100642f
push 0x1009460
push dword [esi]
mov ebx, eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10041c6
test ebx, ebx
jne 0x10041c1
mov dword [ebp - 0x38], edi
jmp 0x100420a
mov dword [ebp - 0x34], ebx
jmp 0x100420a
push str._NETWORK
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x10041e7
test ebx, ebx
je 0x100420a
cmp word [ebx], ax
je 0x100420a
mov dword [ebp - 0x28], ebx
jmp 0x100420a
push str._CACHE
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004200
mov byte [ebp - 2], 1
jmp 0x100420a
push 0xdad
call fcn.0100529c
mov esi, dword [ebp - 0x30]
add dword [ebp - 0x18], 4
add esi, 4
cmp dword [esi], 0
mov dword [ebp - 0x30], esi
jne 0x100418c
cmp dword [ebp - 0x28], 0
je 0x1004231
push dword [ebp + 8]
push dword [ebp - 0x28]
call fcn.01003e7e
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x100433b
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.010078ab
cmp eax, 0xea
jne 0x100426c
mov dword [ebp - 0x2c], 1
jmp 0x1004276
cmp eax, ebx
je 0x1004276
push eax
call fcn.0100529c
cmp dword [ebp - 0xc], ebx
jne 0x1004280
call fcn.01005285
xor eax, eax
cmp esi, edi
setne al
push 0x10039e2
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 0x10042b0
push 0x1260
jmp 0x10042b5
push 0x125c
call fcn.01005222
call fcn.010051a8
cmp esi, edi
jne 0x10042f4
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0xc], esi
jbe 0x100432c
push 0
push dword [edi]
push ebx
call fcn.01004ee5
push eax
push 0x1001508
call fcn.01004ea6
pop ecx
pop ecx
call fcn.010051f6
inc esi
add edi, 4
cmp esi, dword [ebp - 0xc]
jb 0x10042cd
jmp 0x100432c
mov esi, dword [ebp - 0x10]
xor edi, edi
cmp dword [ebp - 0xc], edi
jbe 0x100432c
push 0
push dword [esi]
push ebx
call fcn.01004ee5
push eax
push 0x10014f8
call fcn.01004ea6
pop ecx
pop ecx
push dword [esi + 0x10]
push 0xffffffffffffffc8
call fcn.010076a8
call fcn.010051f6
inc edi
add esi, ebx
cmp edi, dword [ebp - 0xc]
jb 0x10042fe
push dword [ebp - 0x10]
call fcn.01008224
xor ebx, ebx
jmp 0x100479a
cmp byte [ebp - 2], 1
jne 0x100435f
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 0x1004362
mov eax, dword [ebp + 8]
cmp byte [ebp - 2], 0
je 0x1004371
cmp eax, ebx
je 0x100438e
cmp eax, 0x35
je 0x100438e
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 0x100439e
mov dword [ebp - 0x2c], 1
jmp 0x10043a8
cmp eax, ebx
je 0x10043a8
push eax
call fcn.0100529c
cmp dword [ebp - 0xc], ebx
jne 0x10043b2
call fcn.01005285
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
jbe 0x1004531
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10043db
cmp word [eax + 2], bx
je 0x100450f
push dword [esi]
call fcn.01004e47
cmp eax, dword [ebp - 0x24]
jle 0x10043ea
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
and eax, 0x7fffffff
sub eax, ebx
je 0x100441f
dec eax
je 0x1004417
dec eax
je 0x100440f
dec eax
je 0x1004407
push dword [0x10092f4]
jmp 0x1004425
push dword [0x10092ec]
jmp 0x1004425
push dword [0x10092dc]
jmp 0x1004425
push dword [0x10092e4]
jmp 0x1004425
push dword [0x10092d4]
call fcn.01004e47
mov edi, eax
cmp edi, dword [ebp - 0x1c]
jle 0x1004434
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.010054a1
test eax, eax
je 0x1004465
push eax
call fcn.0100529c
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcscat]
push 0x10014f4
push dword [ebp - 8]
call ebx
push dword [esi]
push dword [ebp - 8]
call ebx
add esp, 0x18
push 0x7ff
mov ebx, 0x100dea0
push ebx
push dword [ebp - 8]
call fcn.01003a24
test eax, eax
jne 0x10044b2
push ebx
call fcn.01004e47
mov edi, eax
cmp edi, dword [ebp - 0x20]
jle 0x10044b2
mov dword [ebp - 0x20], edi
push dword [ebp - 8]
call fcn.010054cd
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x10044fb
mov eax, dword [esi + 0xc]
and eax, 0x30
je 0x10044f3
cmp eax, 0x10
je 0x10044eb
cmp eax, 0x20
je 0x10044e3
cmp eax, 0x30
jne 0x1004505
push dword [0x1009314]
jmp 0x10044fe
push dword [0x100930c]
jmp 0x10044fe
push dword [0x1009304]
jmp 0x10044fe
push dword [0x10092fc]
jmp 0x10044fe
push dword [esi + 8]
call fcn.01004e47
mov edi, eax
xor ebx, ebx
cmp edi, dword [ebp - 0x14]
jle 0x100450f
mov dword [ebp - 0x14], edi
inc dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x100451d
add esi, 0x10
jmp 0x1004520
add esi, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jb 0x10043c1
cmp dword [ebp - 0x24], ebx
jne 0x1004536
call fcn.01005285
xor eax, eax
cmp byte [ebp - 1], al
push 0x10039e2
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.0100525f
lea eax, [ebp - 0x3c]
push eax
push 1
push dword [ebp + 8]
call fcn.01007e13
test eax, eax
je 0x1004580
call fcn.010051f6
jmp 0x100459a
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x10]
push 0x10014e0
call fcn.01004ea6
pop ecx
pop ecx
push dword [ebp - 0x3c]
call fcn.01008224
push 2
pop esi
push esi
push 0x1288
push dword [ebp - 0x24]
call fcn.01007720
push esi
push 0x1289
push dword [ebp - 0x1c]
mov edi, eax
call fcn.01007720
push esi
push 0x128a
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.01007720
push esi
push 0x128b
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.01007720
mov dword [ebp - 0x14], eax
call fcn.010051f6
cmp edi, 0xffffffff
je 0x10045fc
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10045fc
cmp dword [ebp - 0x20], 0xffffffff
je 0x10045fc
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1004603
push 0x57
call fcn.0100529c
call fcn.010051f6
call fcn.010051a8
cmp dword [ebp - 0xc], ebx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
jbe 0x100477b
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1004636
cmp word [eax + 2], bx
je 0x100475e
push dword [esi]
push edi
call fcn.010076a8
mov eax, dword [esi + 4]
and eax, 0x7fffffff
sub eax, ebx
je 0x100466f
dec eax
je 0x1004668
dec eax
je 0x1004661
dec eax
je 0x100465a
mov eax, dword [0x10092f4]
jmp 0x1004674
mov eax, dword [0x10092ec]
jmp 0x1004674
mov eax, dword [0x10092dc]
jmp 0x1004674
mov eax, dword [0x10092e4]
jmp 0x1004674
mov eax, dword [0x10092d4]
push eax
push dword [ebp - 0x1c]
call fcn.010076a8
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.010054a1
test eax, eax
je 0x10046ae
push eax
call fcn.0100529c
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcscat]
push 0x10014f4
push dword [ebp - 8]
call ebx
push dword [esi]
push dword [ebp - 8]
call ebx
add esp, 0x18
push 0x7ff
mov ebx, 0x100dea0
push ebx
push dword [ebp - 8]
call fcn.01003a24
test eax, eax
je 0x10046f4
mov dword [ebp - 0x40], 1
jmp 0x10046fd
push ebx
push dword [ebp - 0x20]
call fcn.010076a8
push dword [ebp - 8]
call fcn.010054cd
and dword [ebp - 8], 0
cmp byte [ebp - 1], 1
jne 0x100474c
mov eax, dword [esi + 0xc]
and eax, 0x30
je 0x100473b
cmp eax, 0x10
je 0x1004734
cmp eax, 0x20
je 0x100472d
cmp eax, 0x30
jne 0x1004744
mov eax, dword [0x1009314]
jmp 0x1004740
mov eax, dword [0x100930c]
jmp 0x1004740
mov eax, dword [0x1009304]
jmp 0x1004740
mov eax, dword [0x10092fc]
test eax, eax
jne 0x1004749
mov eax, 0x10012a4
push eax
jmp 0x100474f
push dword [esi + 8]
push dword [ebp - 0x14]
call fcn.010076a8
call fcn.010051f6
xor ebx, ebx
inc dword [ebp - 0x18]
cmp byte [ebp - 1], 0
je 0x100476c
add esi, 0x10
jmp 0x100476f
add esi, 0xc
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jb 0x100461c
push dword [ebp - 0x10]
call fcn.01008224
cmp word [ebp - 0x40], bx
je 0x100479a
push 0xdb0
call fcn.01005222
push 1
call fcn.01004d8c
cmp word [ebp - 0x2c], bx
pop edi
pop esi
pop ebx
je 0x10047af
push 0xdb9
call fcn.01005222
jmp 0x10047b4
call fcn.0100520a
leave
ret 4