Function at 0x411cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x411d47
call fcn.00401ff0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x411d3e
push 4
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411d3e
push str.socket_err_n
push 0x1a7
push 0x5edf24
push 4
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x411ce6
jmp 0x411eec
call fcn.00401ff0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x411db0
push 2
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411db0
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
push str.Send_HostName___s__to_port___u__n
push 0x1ab
push 0x5edf60
push 2
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x20
xor eax, eax
jne 0x411d47
mov ecx, 2
mov word [ebp - 0x1c], cx
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x411e5f
call fcn.00401ff0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x411e56
push 4
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411e56
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 0x70]
push eax
push str.connect_to___d__err_n
push 0x1b4
push 0x5edf9c
push 4
call fcn.00405d70
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x1c
xor eax, eax
jne 0x411df6
jmp 0x411eec
push 0
mov ecx, dword [ebp + 8]
call sym.GNTKProProxy.exe_public:_class_gloox::Tag_const____thiscall_gloox::Error::appError_void_const
push eax
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
call fcn.00401ff0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x411edc
push 2
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411edc
mov edx, dword [ebp - 4]
push edx
push str.Send___u__bytes_n
push 0x1b9
push str..GNServiceHandler.cpp
push 2
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [edx + 0x10]
call ecx
add esp, 0x1c
xor edx, edx
jne 0x411e80
mov eax, dword [ebp - 0x20]
push eax
call fcn.0058db40
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret 4