Function at 0x558620
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62aa90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x31f4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax + 0x244], ebx
je 0x558690
mov ecx, dword [0x6d25c8]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
mov edx, dword [esi + 0x31f4]
mov eax, 0x755a
mov dword [edx + 0x140], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x3a30]
mov ecx, esi
push edi
mov dword [esi + 0x322c], ebx
call fcn.005581e0
cmp eax, ebx
jne 0x5588c4
mov eax, dword [esi + 0x184]
cmp eax, ebx
je 0x5586d3
mov cl, byte [eax + 0x15c]
test cl, cl
je 0x5586d3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x38]
push eax
mov ebx, 0x10
push ecx
push edx
mov dword [ebp - 0x14], ebx
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x55872b
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_closesocket
push ebx
lea ecx, [ebp - 0x78]
push str.Error_code___ld_n
push ecx
mov dword [edi], 0xffffffff
call fcn.005e6db3
mov edx, dword [0x6d25d4]
add esp, 0xc
mov ecx, esi
push 1
push edx
call fcn.0054c420
lea eax, [ebp - 0x78]
jmp 0x558780
mov edx, dword [esi + 0x31e4]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x28]
push eax
push ecx
push edx
mov dword [ebp - 0x14], ebx
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x5587b9
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_closesocket
push ebx
lea ecx, [ebp - 0x58]
push str.Error_code___ld_n
push ecx
mov dword [edi], 0xffffffff
call fcn.005e6db3
mov edx, dword [0x6d25d4]
add esp, 0xc
mov ecx, esi
push 1
push edx
call fcn.0054c420
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.0054c4f0
mov ecx, dword [0x6d25d4]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554c40
mov edx, dword [esi + 0x31f4]
mov eax, ebx
mov dword [edx + 0x140], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x35]
mov ecx, dword [ebp - 0x36]
mov edx, dword [ebp - 0x21]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [ebp - 0x22]
and edx, 0xff
push ecx
mov ecx, dword [ebp - 0x23]
push edx
mov edx, dword [ebp - 0x24]
and eax, 0xff
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
lea eax, [ebp - 0x18c]
push str.PORT__d__d__d__d__d__d_r_n
push eax
call fcn.005e6db3
mov ecx, dword [0x6d2524]
add esp, 0x20
push 1
push ecx
mov ecx, esi
call fcn.0054c420
lea edi, [ebp - 0x18c]
or ecx, 0xffffffff
xor eax, eax
push str.send___PORT
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31e4]
push 0
not ecx
dec ecx
lea edx, [ebp - 0x18c]
push ecx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054c5b0
test eax, eax
je 0x55886b
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 6
lea ecx, [esi + 0x31d8]
call fcn.0059cdb0
mov ecx, esi
call fcn.0054e940
mov dword [esi + 0x8c], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret