Function at 0x10005786
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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
push edi
mov esi, str.time.nist.gov
lea edi, [ebp - 0x148]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x13a]
mov esi, str.time_a.nist.gov
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [ebp - 0x128]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x118]
mov edx, str.time_b.nist.gov
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, edx
lea edi, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0xf8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, str.time_nw.nist.gov
lea edi, [ebp - 0xe8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0xd7]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
mov esi, str.nist1.nyc.certifiedtime.com
pop ecx
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0xac]
stosd dword es:[edi], eax
mov esi, edx
lea edi, [ebp - 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x98]
and byte [ebp - 0x34], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 1
push 2
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x10005938
lea eax, [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [ebp - 0x1f4]
cmp eax, edi
mov dword [ebp - 4], ecx
je 0x10005938
cmp eax, 1
jne 0x1000588b
mov edx, dword [ebp - 0x1a0]
add ecx, edx
mov dword [ebp - 4], ecx
cmp eax, 2
jne 0x10005899
add ecx, dword [ebp - 0x14c]
mov dword [ebp - 4], ecx
fld qword [0x10007240]
push ecx
push ecx
fstp qword [esp]
fild dword [ebp - 4]
push ecx
push ecx
fstp qword [esp]
call sub.MSVCRT.dll_fmod
add esp, 0x10
and dword [ebp - 4], 0
fstp st(0)
lea esi, [ebp - 0x148]
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.1000573b
pop ecx
lea eax, [ebp - 0x34]
pop ecx
mov word [ebp - 0x24], 2
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xd
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x10005908
inc dword [ebp - 4]
add esi, 0x20
cmp dword [ebp - 4], 6
jb 0x100058c0
push 0x28
lea eax, [ebp - 0x88]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push 0
push 0x28
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x1000593c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x100059b5
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov edi, 0x1000b098
lea eax, [ebp - 0x88]
push edi
push eax
call esi
lea ebx, [eax + 1]
push edi
push ebx
call esi
inc eax
push edi
push eax
call esi
and byte [eax], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str._d__d__d__d:_d:_d
push ebx
call dword [sym.imp.MSVCRT.dll_sscanf]
push 0x24
lea eax, [ebp - 0x60]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 8]
add esp, 0x44
add eax, 0x64
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll_mktime]
pop ecx
pop edi
pop esi
pop ebx
leave
ret