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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c099f
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
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 esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc74], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc68], eax
mov eax, dword [0x50c5d4]
mov dword [ebp - 0xc80], ebx
mov dword [ebp - 0xc78], esi
mov dword [ebp - 0xc7c], esi
test eax, eax
je 0x416cbb
mov byte [ebp - 0xc5e], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x416af7
cmp byte [esi], 0
je 0x416af7
mov dword [ebp - 0xc70], esi
jmp 0x416b18
push 0x4d8924
push dword [ebp + 0x10]
mov dword [ebp - 0xc70], 0x4d8924
push 3
push str.GGetUDPData_IP_empty_or_nullptr____Port_d_IP_use_default__s__now
call fcn.0045ac10
add esp, 0x10
test ebx, ebx
je 0x416b2d
mov eax, dword [ebx + 0x28ac]
add eax, 0xfffffffe
imul edi, eax, 0x3e8
jmp 0x416b3a
mov edi, dword [ebp + 0x20]
mov eax, 0x3e8
cmp edi, eax
cmovl edi, eax
lea ecx, [ebp - 0xc2c]
mov dword [ebp + 0x20], edi
call fcn.0045ea20
mov byte [ebp - 4], 1
test ebx, ebx
je 0x416c51
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xc74]
push edi
push dword [ebp - 0xc68]
mov dword [ebp - 0xc64], eax
push dword [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebx + 8]
push dword [ebp - 0xc70]
call fcn.0043bb90
mov byte [ebp - 0xc5d], al
mov byte [ebp - 0xc5e], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc64]
cmp byte [ebp - 0xc5d], 0
mov dword [ebp - 0xc64], eax
jne 0x416e17
cmp dword [ebx + 0x2884], 0x10
lea eax, [ebx + 0x2870]
mov dword [ebp - 0xc6c], eax
jb 0x416bca
mov eax, dword [eax]
mov dword [ebp - 0xc6c], eax
cmp dword [ebp - 0xc18], 0x10
lea esi, [ebp - 0xc2c]
mov edx, dword [ebx + 0x68]
mov ecx, edx
cmovae esi, dword [ebp - 0xc2c]
shr ecx, 0x10
call fcn.0043c250
push dword [ebp - 0xc68]
push dword [ebp - 0xc6c]
push dword [ebx + 0x64]
push dword [ebp - 0xc64]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0xc70]
push eax
movzx eax, dx
push eax
lea eax, [ebp - 0xc14]
push str.GGetUDPData_Failed_Setp_d_Error_s_ip_s_port_d_stime_s_dtime_d_ErrorCode_d_Message_s_filename_s
push eax
call fcn.00419720
mov eax, dword [0x50d5cc]
add esp, 0x2c
test al, 1
jne 0x416c41
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 - 0xc14]
call fcn.00437030
jmp 0x416e11
mov eax, dword [0x50ddc4]
test al, 1
jne 0x416c7c
or eax, 1
mov dword [0x50ddc4], eax
mov byte [ebp - 4], 2
call fcn.00471a20
push 0x4d1270
call fcn.004b7531
add esp, 4
mov byte [ebp - 4], 1
push ecx
push 0x2800
mov ecx, 0x50dce0
call fcn.00472680
mov dword [ebp - 0xc88], eax
test eax, eax
jne 0x416cc2
lea edx, [eax + 3]
mov ecx, str.GGetUDPData_2__getCharBuffer_Failed
call fcn.0045aad0
cmp dword [ebp - 0xc18], 0x10
jb 0x416cbb
push dword [ebp - 0xc2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x416f95
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc8c], eax
mov dword [ebp - 0xc64], 0
mov dword [ebp - 0xc6c], 0
mov dword [ebp - 0xc48], 0xf
mov dword [ebp - 0xc4c], 0
mov byte [ebp - 0xc5c], 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xc74]
mov dword [ebp - 0xc84], eax
lea eax, [ebp - 0xc5c]
push eax
lea eax, [ebp - 0xc6c]
push eax
lea eax, [ebp - 0xc64]
push eax
lea eax, [ebp - 0xc8c]
push eax
push esi
mov esi, dword [ebp + 0x10]
mov edx, esi
push edi
push dword [ebp - 0xc68]
push dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp - 0xc70]
call fcn.0043c580
add esp, 0x24
mov byte [ebp - 0xc5d], al
mov byte [ebp - 0xc5e], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [ebp - 0xc84]
cmp byte [ebp - 0xc5d], 0
jne 0x416de7
push dword [ebp - 0xc68]
cmp dword [ebp - 0xc48], 0x10
lea ecx, [ebp - 0xc5c]
lea eax, [ebp - 0xc2c]
cmovae ecx, dword [ebp - 0xc5c]
cmp dword [ebp - 0xc18], 0x10
push ecx
push dword [ebp - 0xc6c]
cmovae eax, dword [ebp - 0xc2c]
push edx
mov edx, dword [ebp - 0xc64]
mov ecx, edx
push eax
push esi
push dword [ebp - 0xc70]
shr ecx, 0x10
call fcn.0043c250
push eax
movzx eax, dx
push eax
lea eax, [ebp - 0xc14]
push str.GGetUDPData_2__Failed_Setp_d_Error_s_ip_s_port_d_stime_s_dtime_d_ErrorCode_d_Message_s_filename_s
push eax
call fcn.00419720
add esp, 0x2c
call fcn.004364b0
lea ecx, [ebp - 0xc14]
call fcn.00437030
call fcn.00472620
push dword [ebp - 0xc88]
mov ecx, eax
call fcn.00472a30
cmp dword [ebp - 0xc48], 0x10
jb 0x416e11
push dword [ebp - 0xc5c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0xc78]
cmp dword [ebp - 0xc18], 0x10
jb 0x416e92
push dword [ebp - 0xc2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x416e92
mov dword [ebp - 4], 0xffffffff
call fcn.00459220
cmp dword [eax + 0x374], 0
je 0x416f8f
mov dword [ebp - 0xc30], 0xf
mov dword [ebp - 0xc34], 0
mov byte [ebp - 0xc44], 0
push dword [ebp - 0xc68]
cmp byte [ebp - 0xc5d], 1
mov ecx, str.FALSE
push edi
push dword [ebp + 0x10]
mov eax, str.TRUE
mov dword [ebp - 4], 5
push esi
push ebx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x414]
push str.GGetUDPData_ret_s_obj0x_x_host_s:_d_timeout_d_savefile_s_tel
push eax
call fcn.0040ddf0
add esp, 0x20
cmp byte [ebp - 0x414], 0
jne 0x416f0f
xor ecx, ecx
jmp 0x416f21
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416f18
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc44]
call fcn.0040f4f0
mov edx, dword [ebp - 0xc74]
cmp byte [edx], 0
jne 0x416f43
xor ecx, ecx
jmp 0x416f51
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416f48
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xc44]
call fcn.0040f0e0
cmp dword [ebp - 0xc30], 0x10
lea ecx, [ebp - 0xc44]
cmovae ecx, dword [ebp - 0xc44]
call fcn.004378d0
cmp dword [ebp - 0xc30], 0x10
jb 0x416f8f
push dword [ebp - 0xc44]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, byte [ebp - 0xc5d]
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 0x1c