Function at 0x41b260
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x616870]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x11e0], 0xffffffff
je 0x41b2b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x11e0]
push ecx
push str.____Fail_to_Connect_to_Server._Another_SocketId__d__Exists___n
call fcn.0054b370
add esp, 8
or eax, 0xffffffff
jmp 0x41b539
mov ecx, dword [ebp - 0xc]
call fcn.0041ae40
cmp eax, 0xffffffff
jne 0x41b2d5
mov ecx, dword [ebp - 0xc]
call fcn.0041b180
or eax, 0xffffffff
jmp 0x41b539
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00544880
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x11e0], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x11e0], 0xffffffff
jne 0x41b33f
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x11e0]
push eax
push str.____Fail_to_Create_Socket__d__socket__return__1._errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
mov ecx, dword [ebp - 0xc]
call fcn.0041b180
or eax, 0xffffffff
jmp 0x41b539
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x24], 4
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x11e0]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00544880
cmp eax, 0xffffffff
jne 0x41b3bd
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x11e0]
push eax
push str.____Fail_to_Create_Socket__d__setsockopt__return__1._errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
mov ecx, dword [ebp - 0xc]
call fcn.0041b180
or eax, 0xffffffff
jmp 0x41b539
push 0x10
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00545490
add esp, 0xc
mov eax, 2
mov word [ebp - 0x3c], ax
mov esi, esp
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00544880
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xdc], 0
jne 0x41b462
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp esi, esp
call fcn.00544880
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xdc], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xdc], 0
jne 0x41b462
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x11e0]
push eax
push str.____Fail_to_Create_Socket__d__gethostbyname__return__1._errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
mov ecx, dword [ebp - 0xc]
call fcn.0041b180
or eax, 0xffffffff
jmp 0x41b539
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00545f40
add esp, 0xc
mov esi, esp
push 0x10
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x11e0]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.00544880
cmp eax, 0xffffffff
jne 0x41b4f4
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x11e0]
push edx
push str.____Fail_to_Create_Socket__d__connect_IP:_s_PORT:_d___return__1._errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x18
mov ecx, dword [ebp - 0xc]
call fcn.0041b180
or eax, 0xffffffff
jmp 0x41b539
push 0x40
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x9c
push eax
call fcn.00545490
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x5c158c
mov ecx, dword [ebp - 0xc]
add ecx, 0x9c
push ecx
call fcn.00544ff0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x98], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x11e0]
push edx
mov ecx, ebp
push eax
lea edx, [0x41b56c]
call fcn.005448b0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544870
add esp, 0x100
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret 8