Function at 0x10003640
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x58
lea eax, [esp + 0x14]
push ebx
mov ecx, dword [esp + 0x6c]
push esi
mov edx, dword [esp + 0x6c]
push edi
push ebp
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
push eax
push ecx
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x10003673
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret
mov esi, 0xffffffff
lea eax, [esp + 0x20]
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x14]
push ecx
mov eax, dword [esp + 0x2c]
push edx
mov dword [esp + 0x1c], esi
push eax
mov dword [esp + 0x30], 0x20
call sub.MPR.dll_WNetEnumResourceA
mov dword [esp + 0x1c], eax
cmp eax, 0xea
jne 0x100036e0
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
push ecx
push esi
push eax
call sub.MPR.dll_WNetEnumResourceA
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x100036ec
mov dword [esp + 0x14], 0
lea ebx, [esp + 0x48]
mov eax, dword [esp + 0x8c]
cmp dword [eax], 0
jne 0x10003900
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
cmp dword [esp + 0x1c], 0
jne 0x10003900
mov eax, dword [esp + 0x10]
dec dword [esp + 0x10]
test eax, eax
je 0x10003900
lea eax, [esp + 0x2c]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1000375b
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x2c]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x10003739
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 8]
cmp eax, 2
je 0x10003770
cmp eax, 6
jne 0x100037e4
test byte [ebx + 0xc], 2
je 0x100037e4
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push esi
mov dword [esp + 0x38], 0
push edi
push ebx
push eax
push ecx
push edx
call fcn.10003640
add esp, 0x24
test eax, eax
je 0x10003866
cmp dword [esp + 0x18], esi
ja 0x100037d7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x28]
add dword [ecx], eax
mov eax, dword [esp + 0x88]
add dword [eax], edx
jmp 0x10003866
mov dword [esp + 0x18], 0
jmp 0x10003866
test byte [ebx + 0xc], 1
je 0x10003866
push 0x1000a3f4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax*2]
mov eax, dword [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebp, eax
push 0x1000a3f8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebp, eax
test edi, edi
mov dword [esp + 0x18], ebp
je 0x10003866
cmp ebp, esi
jae 0x10003866
push 0x1000a3f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000a3f4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1000a3f8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
add dword [ecx], eax
inc dword [edx]
add edi, dword [esp + 0x18]
sub esi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x100038f0
cmp dword [esp + 0x1c], 0
jne 0x100038f0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x24]
push eax
mov dword [esp + 0x14], 0xffffffff
push ebx
push ecx
push edx
call sub.MPR.dll_WNetEnumResourceA
mov dword [esp + 0x1c], eax
cmp eax, 0xea
jne 0x100038f0
cmp dword [esp + 0x14], 0
je 0x100038b6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0xffffffff
push eax
push ecx
mov eax, dword [esp + 0x2c]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceA
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
cmp dword [eax], 0
je 0x10003707
mov eax, dword [esp + 0x24]
push eax
call sub.MPR.dll_WNetCloseEnum
cmp dword [esp + 0x14], 0
je 0x1000391c
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret