Function at 0x42f27f
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x506732
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0x16c], eax
push esi
push edi
mov eax, dword [0x54b3f0]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov esi, ebx
call fcn.0042f576
push 6
xor edi, edi
inc edi
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f30b
cmp dword [0x5500d4], 0
je 0x42f304
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___socket__create_failed___err__d_
call fcn.00427581
add esp, 0xc
xor al, al
jmp 0x42f551
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42f35a
cmp dword [0x5500d4], 0
je 0x42f351
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__ioctl_failed__ret__d___err__d_
mov ecx, dword [0x5500d4]
call fcn.00427581
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x42f304
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [esp + 0x14], eax
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
push 0x10
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edi, edi
cmp dword [esp + 0x10], edi
jge 0x42f3e9
cmp eax, 0x2733
je 0x42f3e9
cmp dword [0x5500d4], edi
je 0x42f304
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___socket__connect_failed__ip__s___ret__d___err__d_
call fcn.00427581
add esp, 0x14
jmp 0x42f304
push 5
pop eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push edi
lea eax, [esp + 0x74]
push eax
push edi
push edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x42f427
dec dword [esp + 0x10]
jne 0x42f3f8
cmp dword [esp + 0x6c], edi
jne 0x42f455
cmp dword [0x5500d4], edi
je 0x42f351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__ip__s___fd_count_0__err__d_
jmp 0x42f343
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42f4a7
cmp dword [0x5500d4], edi
je 0x42f351
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___socket__ioctl_failed__ip__s___ret__d___err__d_
call fcn.00427581
add esp, 0x14
jmp 0x42f351
mov eax, dword [ebp + 8]
push dword [esp + 0x14]
lea ecx, [esp + 0x38]
mov dword [ebx + 4], esi
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0xc], 1
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.004023da
lea ecx, [esp + 0x34]
lea esi, [esp + 0x50]
mov dword [esp + 0x188], edi
call fcn.0042817f
lea edi, [ebx + 0x20]
mov esi, eax
mov byte [esp + 0x188], 1
call fcn.0040ec7b
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x58]
call fcn.00403da4
or dword [esp + 0x188], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x3c]
call fcn.0040241d
mov ax, word [ebp + 0xc]
mov word [ebx + 0x18], ax
mov dword [ebx + 0x1c], 5
cmp dword [0x5500d4], esi
je 0x42f54f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___socket__connect_ok__ip__s_
call fcn.00427581
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.004d574b
mov esp, ebp
pop ebp
ret 8