Function at 0x1c013420
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, 0xa4
mov eax, dword [0x1c03c020]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 4
mov dword [esp + 0x20], ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x1c01345f
mov dword [eax], 0xffffffff
mov esi, eax
jmp 0x1c013461
xor esi, esi
push 0
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1c01366e
mov eax, dword [ebp + 0x10]
push eax
push esi
mov ecx, ebx
call fcn.1c013200
test eax, eax
jne 0x1c0134b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1c0134a2
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi], 0xffffffff
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
jmp 0x1c013668
push 0x30
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.1c02b4b0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x34], 0x1b
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call sym.HncBM90.dll_public:_void___thiscall_CHncNtpTime::constructor_struct__SYSTEMTIME_const__
mov ecx, dword [esp + 0x14]
push ecx
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x10]
push edx
mov ebx, eax
call sub.WS2_32.dll_htonl
mov ecx, dword [esi]
push 0
mov dword [esp + 0x60], eax
push 0x30
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x68], ebx
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x1c013527
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1c013690
push edi
jmp 0x1c013668
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.1c013390
test eax, eax
je 0x1c01365e
cmp dword [esp + 0x1c], 0
je 0x1c01365e
lea ecx, [esp + 0x10]
push ecx
call sym.HncBM90.dll_public:_static_class_CHncNtpTime___cdecl_CHncNtpTime::GetTickCount_void_
mov edx, dword [eax]
add esp, 4
push 0x44
mov dword [edi + 0x20], edx
mov eax, dword [eax + 4]
lea ecx, [esp + 0x64]
push 0
push ecx
mov dword [edi + 0x24], eax
call fcn.1c02b4b0
mov eax, dword [esi]
add esp, 0xc
push 0
push 0x44
lea edx, [esp + 0x68]
push edx
push eax
call sub.WS2_32.dll_recv
test eax, eax
je 0x1c013514
movzx ecx, byte [esp + 0x61]
movzx edx, byte [esp + 0x60]
lea eax, [esp + 0x78]
mov dword [edi + 4], ecx
shr edx, 6
push eax
lea ecx, [esp + 0x14]
mov dword [edi], edx
call sym.HncBM90.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea ebx, [edi + 8]
lea eax, [esp + 0x80]
mov dword [ebx], ecx
push eax
lea ecx, [esp + 0x14]
mov dword [ebx + 4], edx
call sym.HncBM90.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x88]
mov dword [edi + 0x10], ecx
push eax
lea ecx, [esp + 0x14]
mov dword [edi + 0x14], edx
call sym.HncBM90.dll_public:_void___thiscall_CHncNtpTime::constructor_struct_CHncNtpTimePacket__
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi + 0x18], ecx
push ebx
lea ecx, [edi + 0x20]
mov dword [edi + 0x1c], edx
call sym.HncBM90.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fstp qword [esp + 0x10]
lea eax, [edi + 0x18]
push eax
lea ecx, [edi + 0x10]
call sym.HncBM90.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fsubr qword [esp + 0x10]
push ebx
lea ecx, [edi + 0x10]
fstp qword [edi + 0x28]
call sym.HncBM90.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
lea eax, [edi + 0x20]
fstp qword [esp + 0x10]
push eax
lea ecx, [edi + 0x18]
call sym.HncBM90.dll_public:_double___thiscall_CHncNtpTime::operator__class_CHncNtpTime_const__const
fadd qword [esp + 0x10]
fmul qword [0x1c037dd0]
fstp qword [edi + 0x30]
call fcn.1c013690
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 0xc
call fcn.1c013690
push 0x274c
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 0xc