Function at 0x21040e36
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 0x10]
mov word [eax], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x21093934
lea edx, [ebp - 0x20c]
push edx
call fcn.2105e37e
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0x28
call fcn.21047e88
add esp, 0x1c
cmp dword [ebp - 4], 0
jne 0x21040ebf
xor eax, eax
jmp 0x21041289
mov ecx, dword [ebp - 4]
push ecx
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x214], edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x214]
push eax
push 2
lea ecx, [ebp - 0x20c]
push ecx
push 0x28
call fcn.21047e88
add esp, 0x1c
mov dword [ebp - 0x220], 0
jmp 0x21040f21
mov edx, dword [ebp - 0x220]
add edx, 1
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
cmp eax, dword [ebp - 0x21c]
jae 0x21040f7d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x220]
imul edx, edx, 0x54
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + edx + 8]
push ecx
call fcn.2105e86f
add esp, 8
test eax, eax
jne 0x21040f7b
push 0
mov edx, dword [ebp - 0x220]
imul edx, edx, 0x54
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + edx + 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.21003492
add esp, 0x10
jmp 0x21040f7d
jmp 0x21040f12
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ecx]
test edx, edx
jne 0x2104122e
mov dword [ebp - 0x248], 0x4000
push 0x20
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.2105e780
add esp, 0xc
mov dword [ebp - 0x240], 2
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 2
mov dword [ebp - 0x230], 0x2109c9d8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], 0x2109c9dc
mov dword [ebp - 0x224], 0x2109c9e0
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x21041029
jmp 0x21041287
mov dword [ebp - 0x250], 1
cmp dword [ebp - 0x250], 0
je 0x2104122e
cmp dword [ebp - 0x218], 0
jne 0x21041078
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.2106e07d
add esp, 4
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x218], edx
cmp dword [ebp - 0x218], 0
jne 0x21041078
jmp 0x21041285
mov dword [ebp - 0x244], 0xffffffff
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x210]
push eax
call sub.MPR.dll_WNetEnumResourceW
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x270], ecx
cmp dword [ebp - 0x270], 0
je 0x210410e3
cmp dword [ebp - 0x270], 0xea
je 0x210411f4
cmp dword [ebp - 0x270], 0x103
je 0x2104121b
jmp 0x21041227
mov dword [ebp - 0x24c], 0
jmp 0x210410fe
mov edx, dword [ebp - 0x24c]
add edx, 1
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
cmp eax, dword [ebp - 0x244]
jae 0x210411f2
mov ecx, dword [ebp - 0x24c]
shl ecx, 5
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + ecx + 0xc]
and eax, 2
test eax, eax
je 0x2104112c
jmp 0x210410ef
mov ecx, dword [ebp - 0x24c]
shl ecx, 5
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + ecx + 4]
and eax, 2
test eax, eax
jne 0x21041148
jmp 0x210410ef
mov ecx, dword [ebp - 0x24c]
shl ecx, 5
mov edx, dword [ebp - 0x218]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.2105504c
add esp, 4
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x2104118e
mov ecx, dword [ebp - 0x258]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x2104118e
mov dword [ebp - 0x274], 0
jmp 0x21041198
mov dword [ebp - 0x274], 1
cmp dword [ebp - 0x274], 0
je 0x210411a6
jmp 0x210410ef
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.2105e86f
add esp, 8
test eax, eax
je 0x210411c2
jmp 0x210410ef
push 0
mov edx, dword [ebp - 0x24c]
shl edx, 5
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + edx + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.21003492
add esp, 0x10
mov dword [ebp - 0x250], 0
jmp 0x21041229
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.2106e0a6
add esp, 4
mov dword [ebp - 0x218], 0
jmp 0x21041229
mov dword [ebp - 0x250], 0
jmp 0x21041229
jmp 0x21041283
jmp 0x21041033
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.2106e0a6
add esp, 4
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x26c]
push eax
call fcn.2106e0a6
add esp, 4
cmp dword [ebp - 0x210], 0
je 0x21041279
mov ecx, dword [ebp - 0x210]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx]
jmp 0x21041289
jmp 0x2104122e
jmp 0x2104122e
jmp 0x2104122e
mov esp, ebp
pop ebp
ret