Function at 0x4ed120
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b615f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 2
test esi, esi
je 0x4ed160
mov dword [esi], 0x57
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
cmp dword [eax - 4], 1
jle 0x4ed19a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00499650
mov eax, dword [ebp + 8]
push 4
push dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test esi, esi
je 0x4ed1c5
mov dword [esi], edi
test edi, edi
je 0x4ed33a
cmp edi, 0x55
je 0x4ed33a
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8adb], 0
jne 0x4ed235
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ed22a
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8adb
sub esp, 0xc
push 0x15c
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x50
call fcn.00516700
jmp 0x4ed22c
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x7bb3b4], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3b4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3b4]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4ed3ca
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004990b0
test al, al
jne 0x4ed291
push esi
lea ecx, [ebp - 0x14]
call fcn.00498590
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x14]
push edi
push esi
push str.Connection_to___s__failed_with___lu_
push dword [0x7bb3b4]
call dword [ebp - 0x18]
add esp, 0x10
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ed2c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, dword [0x7bb3b4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3b4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov edx, dword [ebp + 8]
mov dword [ebx], 0
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ed30d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ed32b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 9
jmp 0x4ed3a4
push 0xc
call fcn.00669f3d
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.004ed3e0
mov edx, dword [ebp + 8]
mov dword [ebx], eax
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0xb
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ed379
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ed397
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xd
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ed3b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00490960
int3