Function at 0x4032f0
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
sub esp, 0x54
mov eax, dword [0x4f5608]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea edx, [esp + 0x54]
mov ecx, 0x4f1bbc
mov esi, 4
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
test al, al
je 0x403323
sub esi, 1
jne 0x403312
jmp 0x403327
test esi, esi
jne 0x403337
mov byte [edx], 0
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403330
mov ecx, dword [0x4ff8d4]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x4fdad4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 2
test eax, eax
jne 0x40337f
push eax
call fcn.00401a10
mov dword [0x4fdad4], eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
push edx
push ebx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
je 0x4034b0
cmp esi, 0x2afb
je 0x40343c
cmp esi, 0x2afa
je 0x40343c
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0x400
push 0x4ffb40
push 0x400
push esi
push 0
push 0x12ff
call edi
push esi
push 0x4ffb40
push ebx
push str.Error_resolving__s:__s___d__n
call fcn.0040b3ff
add eax, 0x40
push eax
call fcn.0040c7c0
add esp, 0x14
push 0
push 0x400
push 0x4ffb40
push 0x400
push esi
push 0
push 0x12ff
call edi
push esi
push 0x4ffb40
push ebx
push str.Cant_find_host__s:__s___d_
push 3
call fcn.00405890
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0040a326
add esp, 0x54
ret
mov edi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0x400
push 0x4ffb40
push 0x400
push esi
push 0
push 0x12ff
call edi
push esi
push 0x4ffb40
push str.Exiting__name_server_cannot_be_used:__s___d_
call fcn.0040b3ff
add eax, 0x40
push eax
call fcn.0040c7c0
add esp, 0x10
push 0
push 0x400
push 0x4ffb40
push 0x400
push esi
push 0
push 0x12ff
call edi
push esi
push 0x4ffb40
push str.name_server_cannot_be_used:__s___d_
push 3
call fcn.00405890
add esp, 0x10
push 1
call fcn.0040ec6c
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4035ce
mov ebx, dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4034d0
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x10]
cmp eax, 0x1c
ja 0x4035f9
push eax
mov eax, dword [edi + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0040f1c0
movzx edx, word [esp + 0x44]
add esp, 0xc
push 0
push 2
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4035bf
mov eax, 2
sub ax, word [esp + 0x38]
lea edx, [esp + 0x38]
movzx ecx, ax
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
test eax, eax
je 0x403550
call ebp
jmp 0x4035bf
call ebp
push 0x110
push 0
call fcn.0040d8b2
add esp, 8
mov esi, eax
push 0x110
test esi, esi
je 0x403618
push 0
push esi
call fcn.004151d0
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
add esp, 0xc
push eax
push ecx
lea edx, [esi + 4]
push edx
call fcn.0040f1c0
mov eax, dword [0x4fde38]
mov ecx, dword [0x4ffa0c]
inc eax
add esp, 0xc
mov dword [0x4fde38], eax
mov dword [esi + 0x3c], eax
test ecx, ecx
jne 0x4035af
mov dword [0x4ffa0c], esi
jmp 0x4035bf
mov eax, dword [ecx]
test eax, eax
je 0x4035bd
mov ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x4035b5
mov dword [ecx], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4034d0
mov edi, dword [esp + 0x14]
mov eax, dword [0x4fdad8]
test eax, eax
jne 0x4035e3
push 2
call fcn.00401a10
mov dword [0x4fdad8], eax
push edi
call eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a326
add esp, 0x54
ret
push str.ptr__ai_addrlen___sizeof_addr_
push 2
push 0x576
push str........._ntpdate_ntpdate.c
call dword [0x4fb0ec]
add esp, 0x10
call fcn.004101fb
push str.fatal_out_of_memory___lu_bytes_
push 3
mov dword [0x4fde64], 1
call fcn.00405890
add esp, 0xc
push 1
call fcn.0040ec6c
int3