Function at 0x43cf80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ccc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1f8], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x2040]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x2030
push edx
lea ecx, [ebp - 0x30]
call dword [0x614444]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0x60], eax
push 1
lea ecx, [ebp - 0xe0]
call fcn.00409eb0
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
sub ecx, 4
call fcn.004016e0
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 0x10
push 0
lea ecx, [ebp - 0x54]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, 2
mov word [ebp - 0x54], dx
movzx eax, word [ebp - 0x58]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x52], ax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x43d0ef
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x43d0d2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x201c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push str.err_address_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 4
mov byte [ebp - 0xe1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0xe1]
jmp 0x43d388
mov ecx, dword [ebp - 0x5c]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x50]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x43d146
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x201c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 0xe2], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0xe2]
jmp 0x43d388
push 0x10
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x43d1fe
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x2030
push ecx
push str.Socket_Connect_Failed___s:_d_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0xc
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0xe8], eax
push 1
lea ecx, [ebp - 0x168]
call fcn.00409eb0
mov dword [ebp - 0x204], eax
lea ecx, [ebp - 0x11c]
call fcn.00409fa0
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x201c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [ebp - 0x169], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x169]
jmp 0x43d388
mov dword [ebp - 0x38], 0x204c
push 0x204c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x2028], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x2028], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 0x2020], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x201c]
mov dword [eax + 0x2020], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x201c], ecx
mov edx, dword [ebp - 0x40]
add edx, 0x1c
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x14], 0x2000
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2024]
mov dword [edx + 0x2024], ecx
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x2044], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x2048], eax
push 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x34], 0
push 0x14
push 0
mov edx, dword [ebp - 0x40]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x14], 0x2000
push 0
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x43d36b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x43d36b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x170], eax
push 1
lea ecx, [ebp - 0x1f0]
call fcn.00409eb0
mov dword [ebp - 0x210], eax
lea ecx, [ebp - 0x1a4]
call fcn.00409fa0
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0043c870
add esp, 4
mov byte [ebp - 0x1f1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x1f1]
jmp 0x43d388
mov byte [ebp - 0x1f2], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x1f2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret