Function at 0x558f90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ba60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push str.Trying_to_bind_socket..._n
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.0054d2a0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x558fdb
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi], 0xffffffff
push ebx
push 1
push 2
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x55902d
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea eax, [ebp - 0x44]
push edi
push str.Error_code___ld_n
push eax
call fcn.005e7bd3
mov ecx, dword [0x6d3650]
add esp, 0xc
push 1
push ecx
mov ecx, esi
call fcn.0054d1d0
lea edx, [ebp - 0x44]
mov ecx, esi
push edx
call fcn.0054d2a0
mov eax, dword [0x6d3650]
jmp 0x55919b
mov eax, dword [esi + 0x184]
cmp eax, ebx
je 0x5590a0
cmp byte [eax + 0x15c], bl
je 0x5590a0
mov eax, dword [eax + 0x140]
lea edx, [ebp + 8]
push 1
push edx
push eax
mov ecx, esi
call fcn.0054d440
cmp eax, ebx
jne 0x5591f0
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x184]
mov dword [ebp - 0x30], eax
mov word [ebp - 0x34], 2
mov edx, dword [ecx + 0x144]
push edx
call sub.WS2_32.dll_htons
mov ecx, dword [edi]
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x34]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
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 4
xor edx, edx
push ebx
mov dword [ebp - 0x24], edx
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
call sub.WS2_32.dll_htonl
push ebx
mov dword [ebp - 0x20], eax
call sub.WS2_32.dll_htons
mov ecx, dword [edi]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x559140
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea edx, [ebp - 0x44]
push edi
push str.Error_code___ld_n
push edx
call fcn.005e7bd3
mov eax, dword [0x6d3648]
add esp, 0xc
mov ecx, esi
push 1
push eax
call fcn.0054d1d0
lea ecx, [ebp - 0x44]
push ecx
mov ecx, esi
call fcn.0054d2a0
mov edx, dword [0x6d3648]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.005559f0
mov eax, dword [esi + 0x31f4]
mov dword [eax + 0x140], edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6d3598]
push 1
push ecx
mov ecx, esi
call fcn.0054d1d0
mov edx, dword [edi]
push 1
push edx
call sub.WS2_32.dll_listen
test eax, eax
jge 0x55908b
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
lea eax, [ebp - 0x64]
push edi
push str.Error_code___ld_n
push eax
call fcn.005e7bd3
mov ecx, dword [0x6d3644]
add esp, 0xc
push 1
push ecx
mov ecx, esi
call fcn.0054d1d0
lea edx, [ebp - 0x64]
mov ecx, esi
push edx
call fcn.0054d2a0
mov eax, dword [0x6d3644]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.005559f0
mov ecx, dword [esi + 0x31f4]
mov eax, edi
mov dword [ecx + 0x140], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4