Function at 0x10067730
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
mov dword [esp + 0x28], eax
add esp, 4
test ebx, ebx
je 0x10067778
mov dword [ebx], 0xffffffff
jmp 0x1006777e
xor ebx, ebx
mov dword [esp + 0x24], ebx
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x100679a8
push dword [ebp + 0x10]
mov ecx, ebx
push esi
call fcn.100674b0
test eax, eax
jne 0x100677d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx]
mov esi, eax
cmp ecx, 0xffffffff
je 0x100677c0
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0xffffffff
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push esi
jmp 0x100679a2
push 0x30
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov byte [esp + 0x38], 0x1b
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call sym.HncFoundation.dll_public:_void___thiscall_CHncNtpTime::constructor_struct__SYSTEMTIME_const__
push dword [esp + 0x14]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
push dword [esp + 0x10]
mov edi, eax
call esi
push 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x3c]
push 0x30
push eax
push dword [ebx]
mov dword [esp + 0x70], edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10067847
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, ebx
mov esi, eax
call fcn.100679d0
push esi
jmp 0x100679a2
mov eax, dword [esp + 0x20]
mov ecx, ebx
push dword [eax]
lea eax, [esp + 0x24]
push eax
call fcn.10067690
test eax, eax
je 0x10067995
cmp dword [esp + 0x20], 0
je 0x10067995
lea eax, [esp + 0x10]
push eax
call sym.HncFoundation.dll_public:_static_class_CHncNtpTime___cdecl_CHncNtpTime::GetTickCount_void_
mov esi, dword [esp + 0x20]
add esp, 4
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
mov eax, dword [eax + 4]
push 0x44
mov dword [esi + 0x24], eax
lea eax, [esp + 0x6c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x68]
push 0
push 0x44
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10067831
movzx eax, byte [esp + 0x69]
lea ecx, [esp + 0x10]
mov dword [esi + 4], eax
movzx eax, byte [esp + 0x68]
shr eax, 6
mov dword [esi], eax
lea eax, [esp + 0x80]
push eax
call sym.HncFoundation.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov eax, dword [esp + 0x10]
lea ebx, [esi + 8]
mov dword [ebx], eax
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
lea eax, [esp + 0x88]
push eax
call sym.HncFoundation.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov eax, dword [esp + 0x10]
lea edi, [esi + 0x10]
mov dword [edi], eax
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
lea eax, [esp + 0x90]
push eax
call sym.HncFoundation.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov ecx, dword [esp + 0x1c]
add esi, 0x18
mov eax, dword [esp + 0x10]
push ebx
mov dword [esi], eax
lea ecx, [ecx + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
call sym.HncFoundation.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fstp qword [esp + 0x10]
push esi
mov ecx, edi
call sym.HncFoundation.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fsubr qword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, edi
push ebx
fstp qword [eax + 0x28]
call sym.HncFoundation.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
mov ebx, dword [esp + 0x1c]
mov ecx, esi
fstp qword [esp + 0x10]
lea eax, [ebx + 0x20]
push eax
call sym.HncFoundation.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fadd qword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x28]
fmul qword [0x100c6648]
fstp qword [ebx + 0x30]
call fcn.100679d0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
push ecx
mov ecx, ebx
call fcn.100679d0
push 0x274c
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xb4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc