Function at 0x416fc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c09ff
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x503040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x870], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x878], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x874], eax
mov eax, dword [0x50c5d4]
mov dword [ebp - 0x87c], edi
mov dword [ebp - 0x884], ebx
test eax, eax
jne 0x41702e
xor al, al
jmp 0x4174f0
mov byte [ebp - 0x85e], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x41704d
cmp byte [ebx], 0
je 0x41704d
mov dword [ebp - 0x86c], ebx
jmp 0x41706f
mov esi, dword [ebp + 0x10]
push 0x4d8924
push esi
push 3
push str.GGetUDPDataToBuf_IP_empty_or_nullptr____Port_d_IP_use_default__s__now
mov dword [ebp - 0x86c], 0x4d8924
call fcn.0045ac10
add esp, 0x10
mov eax, dword [ebp + 0x24]
mov esi, eax
test eax, eax
je 0x4170b0
test edi, edi
je 0x417097
cmp eax, 0x3e8
jge 0x417097
mov eax, dword [edi + 0x28ac]
cmp eax, 2
jle 0x417097
add eax, 0xfffffffe
imul esi, eax, 0x3e8
cmp esi, 0xea60
jle 0x4170a6
mov esi, 0xea60
jmp 0x4170b0
mov eax, 0x3e8
cmp esi, eax
cmovl esi, eax
lea ecx, [ebp - 0x85c]
call fcn.0045ea20
mov byte [ebp - 4], 1
test edi, edi
je 0x4171ec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x10]
lea ecx, [edi + 0x2870]
push ecx
mov dword [ebp - 0x868], eax
lea ecx, [edi + 0x68]
lea eax, [ebp - 0x864]
mov dword [ebp - 0x864], 0
push eax
mov eax, dword [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x86c]
push esi
push dword [ebp - 0x874]
push dword [ebp - 0x878]
push dword [ebp + 0x18]
push eax
call fcn.0043c2c0
mov cl, al
add esp, 0x20
mov eax, dword [ebp - 0x864]
mov byte [ebp - 0x85d], cl
mov dword [edi + 0x64], eax
mov byte [ebp - 0x85e], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x868]
cmp byte [ebp - 0x85d], 0
mov dword [ebp - 0x868], eax
jne 0x417335
cmp dword [edi + 0x2884], 0x10
lea eax, [edi + 0x2870]
mov dword [ebp - 0x864], eax
jb 0x41716a
mov eax, dword [eax]
mov dword [ebp - 0x864], eax
cmp dword [ebp - 0x848], 0x10
lea esi, [ebp - 0x85c]
mov edx, dword [edi + 0x68]
mov ecx, edx
cmovae esi, dword [ebp - 0x85c]
shr ecx, 0x10
call fcn.0043c250
push dword [ebp - 0x864]
push dword [edi + 0x64]
push dword [ebp - 0x868]
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x86c]
push eax
movzx eax, dx
push eax
lea eax, [ebp - 0x414]
push str.GGetUDPDataToBuf_Failed_Setp_d_Error_s_ip_s_port_d_stime_s_dtime_d_ErrorCode_d_Message_s
push eax
call fcn.0040ddf0
mov eax, dword [0x50d5cc]
add esp, 0x28
test al, 1
jne 0x4171dc
or eax, 1
mov ecx, 0x50d5d0
mov dword [0x50d5cc], eax
xor al, al
xchg byte [ecx], al
xor al, al
xchg byte [ecx], al
lea ecx, [ebp - 0x414]
call fcn.00437030
jmp 0x417338
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x830], 0xf
mov dword [ebp - 0x834], 0
mov byte [ebp - 0x844], 0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x868]
push eax
mov eax, dword [ebp - 0x870]
push esi
push dword [ebp - 0x874]
mov esi, dword [ebp + 0x10]
mov edx, esi
push dword [ebp - 0x878]
push dword [ebp + 0x18]
push eax
call fcn.0043c2c0
add esp, 0x20
mov byte [ebp - 0x85d], al
mov byte [ebp - 0x85e], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [ebp - 0x864]
cmp byte [ebp - 0x85d], 0
jne 0x41731b
cmp dword [ebp - 0x830], 0x10
lea ecx, [ebp - 0x844]
lea eax, [ebp - 0x85c]
cmovae ecx, dword [ebp - 0x844]
cmp dword [ebp - 0x848], 0x10
push ecx
push dword [ebp - 0x880]
cmovae eax, dword [ebp - 0x85c]
push edx
mov edx, dword [ebp - 0x868]
mov ecx, edx
push eax
push esi
push dword [ebp - 0x86c]
shr ecx, 0x10
call fcn.0043c250
push eax
movzx eax, dx
push eax
lea eax, [ebp - 0x414]
push str.GGetUDPDataToBuf_2__Failed_Setp_d_Error_s_ip_s_port_d_stime_s_dtime_d_ErrorCode_d_Message_s
push eax
call fcn.0040ddf0
mov eax, dword [0x50d5cc]
add esp, 0x28
test al, 1
jne 0x417310
or eax, 1
mov ecx, 0x50d5d0
mov dword [0x50d5cc], eax
xor al, al
xchg byte [ecx], al
xor al, al
xchg byte [ecx], al
lea ecx, [ebp - 0x414]
call fcn.00437030
cmp dword [ebp - 0x830], 0x10
jb 0x417338
push dword [ebp - 0x844]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x417338
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x848], 0x10
jb 0x4173b3
push dword [ebp - 0x85c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x4173b3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x50d6e0]
test al, 1
jne 0x4173ff
or eax, 1
mov dword [0x50d6e0], eax
push 0x57c
push 0
push 0x50d6f0
mov dword [ebp - 4], 4
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004574c0
push 0x4d0fa0
call fcn.004b7531
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x50da64], 0
je 0x4174ea
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x82c], 0
push dword [ebp + 0x24]
cmp byte [ebp - 0x85d], 1
mov ecx, str.FALSE
push esi
push ebx
push edi
mov eax, str.TRUE
mov dword [ebp - 4], 5
cmovne eax, ecx
push eax
lea eax, [ebp - 0x814]
push str.GGetUDPDataToBuf_ret_s_obj0x_x_host_s:_d_timeout_d_tel
push eax
call fcn.0040ddf0
add esp, 0x1c
cmp byte [ebp - 0x814], 0
jne 0x41746a
xor ecx, ecx
jmp 0x41747c
lea ecx, [ebp - 0x814]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417473
sub ecx, edx
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.0040f4f0
mov edx, dword [ebp - 0x870]
cmp byte [edx], 0
jne 0x41749e
xor ecx, ecx
jmp 0x4174ac
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4174a3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x82c]
call fcn.0040f0e0
cmp dword [ebp - 0x818], 0x10
lea ecx, [ebp - 0x82c]
cmovae ecx, dword [ebp - 0x82c]
call fcn.004378d0
cmp dword [ebp - 0x818], 0x10
jb 0x4174ea
push dword [ebp - 0x82c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, byte [ebp - 0x85d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b73db
mov esp, ebp
pop ebp
ret 0x20