Function at 0x484080
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4837b8]
call fcn.0040546c
xor eax, eax
push ebp
push 0x4842e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4842b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a1ac4]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
dec eax
test eax, eax
jl 0x4842a9
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0
mov eax, dword [0x4a1ac4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00482874
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x60]
jne 0x48429d
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x2c]
call fcn.00483b64
cmp byte [ebp - 0xc], 0
je 0x484131
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [edi + 0x2c]
call fcn.004838f8
push 0
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.004842f4
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x20]
dec eax
test eax, eax
jl 0x48429d
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00405c00
mov esi, eax
test esi, esi
jl 0x484188
inc esi
xor ebx, ebx
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00482960
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 8]
mov eax, dword [eax + ebx*8 + 4]
call fcn.00404bf0
jne 0x484184
mov dword [ebp - 0x18], ebx
jmp 0x484188
inc ebx
dec esi
jne 0x484163
cmp dword [ebp - 0x18], 0xffffffff
je 0x484199
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov bl, byte [eax + edx*8]
jmp 0x4841a7
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00482960
mov bl, byte [eax + 0x38]
test bl, bl
je 0x484291
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00482960
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x20]
call fcn.00404860
mov eax, dword [edi + 0x74]
mov edx, dword [ebp - 0x14]
call fcn.00482960
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x24]
call fcn.00404860
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x20]
call fcn.00404860
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
call fcn.00404860
mov bl, 1
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00483fb4
test al, al
je 0x484235
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x20
call fcn.004030ac
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x28]
call fcn.00404ca4
mov dword [ebp - 0x40], eax
push 8
push 0
push 0
lea eax, [ebp - 0x54]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete bl
mov byte [ebp - 0x19], 1
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00483fb4
test al, al
je 0x48427c
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x20
call fcn.004030ac
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x2c]
call fcn.00404ca4
mov dword [ebp - 0x40], eax
push 8
push 0
push 0
lea eax, [ebp - 0x54]
push eax
call sub.mpr.dll_WNetAddConnection2A
test eax, eax
sete byte [ebp - 0x19]
or bl, byte [ebp - 0x19]
je 0x484291
push 0
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.004842f4
inc dword [ebp - 0x14]
dec dword [ebp - 0x34]
jne 0x48414b
inc dword [ebp - 0x10]
dec dword [ebp - 0x30]
jne 0x4840e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4842bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4842ed
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004047ec
lea eax, [ebp - 0xc]
mov edx, dword [0x4837b8]
call fcn.0040553c
ret