Function at 0x4a84c0
Capabilities:
Connect network resource
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x54]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.004a8f10
mov ebx, dword [sym.imp.MPR.dll_WNetAddConnection2W]
xorps xmm0, xmm0
xor dl, dl
movq qword [esp + 0x6c], xmm0
mov byte [esp + 0x70], dl
mov ecx, dword [esi + 0x50]
test ecx, ecx
jne 0x4a8511
xor edi, edi
jmp 0x4a85a7
cmp byte [ecx + 0x10], 0
mov eax, dword [ecx]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x80], eax
je 0x4a8541
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x84], eax
jmp 0x4a854c
mov dword [esp + 0x84], 0
cmp byte [ecx + 0x11], 0
je 0x4a855e
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x88], eax
jmp 0x4a8569
mov dword [esp + 0x88], 0
cmp byte [ecx + 0x12], 0
je 0x4a857b
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x8c], eax
jmp 0x4a8586
mov dword [esp + 0x8c], 0
cmp byte [ecx + 0x13], 0
je 0x4a8598
mov eax, dword [ecx + 0x38]
mov dword [esp + 0x90], eax
jmp 0x4a85a3
mov dword [esp + 0x90], 0
lea edi, [esp + 0x74]
test dl, dl
je 0x4a85bc
push dword [esp + 0x6c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
test eax, eax
setne byte [esp + 0x70]
lea eax, [esp + 0x6c]
push eax
push edi
push 0
push 1
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
mov edi, eax
test edi, edi
sete byte [esp + 0x70]
test edi, edi
je 0x4a86a8
cmp edi, 5
jne 0x4a8831
cmp dword [esi + 0x50], 0
je 0x4a8831
cmp byte [esi + 0x1c], 0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x80], eax
je 0x4a8623
mov eax, dword [esi + 0x20]
mov dword [esp + 0x84], eax
jmp 0x4a862e
mov dword [esp + 0x84], 0
cmp byte [esi + 0x1d], 0
je 0x4a8640
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x88], eax
jmp 0x4a864b
mov dword [esp + 0x88], 0
cmp byte [esi + 0x1e], 0
je 0x4a865d
mov eax, dword [esi + 0x38]
mov dword [esp + 0x8c], eax
jmp 0x4a8668
mov dword [esp + 0x8c], 0
cmp byte [esi + 0x1f], 0
je 0x4a867a
mov eax, dword [esi + 0x44]
mov dword [esp + 0x90], eax
jmp 0x4a8685
mov dword [esp + 0x90], 0
push 8
push 0
push 0
lea eax, [esp + 0x80]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x4a8831
mov dl, byte [esp + 0x70]
jmp 0x4a8503
lea ecx, [esp + 0x18]
call fcn.004a7fc0
push 8
mov dword [esp + 0x60], 0
call fcn.004df9b3
add esp, 4
test eax, eax
je 0x4a885b
mov ebx, dword [esp + 0x14]
nop
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 3
mov word [eax], cx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
call fcn.0041ca50
mov edi, eax
test edi, edi
jne 0x4a87eb
cmp byte [esp + 0x29], al
jne 0x4a8715
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
call fcn.004128e0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
call fcn.004128e0
mov esi, dword [esp + 0x60]
test esi, esi
je 0x4a877e
mov edx, dword [esp + 0x5c]
lea eax, [esi - 1]
movzx ecx, word [edx + eax*2]
lea eax, [edx + eax*2]
cmp ecx, 0x5c
je 0x4a8756
mov edi, edi
cmp cx, 0x2f
je 0x4a8756
cmp eax, edx
je 0x4a877e
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
jne 0x4a8740
sub eax, edx
sar eax, 1
js 0x4a877e
lea edi, [eax + 1]
test edi, edi
je 0x4a877e
sub esi, edi
lea eax, [esi*2 + 2]
push eax
lea eax, [edx + edi*2]
push eax
push edx
call fcn.004dfa50
add esp, 0xc
sub dword [esp + 0x60], edi
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004a8e00
push dword [esp + 0x5c]
call fcn.004df97b
add esp, 4
push dword [esp + 0x50]
call fcn.004df97b
add esp, 4
push dword [esp + 0x44]
call fcn.004df97b
add esp, 4
push dword [esp + 0x38]
call fcn.004df97b
add esp, 4
push dword [esp + 0x2c]
call fcn.004df97b
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004a7fc0
push 8
mov dword [esp + 0x60], 0
call fcn.004df9b3
add esp, 4
test eax, eax
jne 0x4a86d0
jmp 0x4a885b
push dword [esp + 0x5c]
call fcn.004df97b
add esp, 4
push dword [esp + 0x50]
call fcn.004df97b
add esp, 4
push dword [esp + 0x44]
call fcn.004df97b
add esp, 4
push dword [esp + 0x38]
call fcn.004df97b
add esp, 4
push dword [esp + 0x2c]
call fcn.004df97b
add esp, 4
cmp edi, 0x103
jne 0x4a8831
xor edi, edi
cmp byte [esp + 0x70], 0
je 0x4a8842
push dword [esp + 0x6c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x94]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004df96c
mov esp, ebp
pop ebp
ret 4
push 0x51c2c8
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 0
push eax
call fcn.004ea58e
int3