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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3edf
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x506040]
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 [0x50f7f0]
mov dword [ebp - 0x87c], edi
mov dword [ebp - 0x884], ebx
test eax, eax
jne 0x41899e
xor al, al
jmp 0x418e60
mov byte [ebp - 0x85e], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4189bd
cmp byte [ebx], 0
je 0x4189bd
mov dword [ebp - 0x86c], ebx
jmp 0x4189df
mov esi, dword [ebp + 0x10]
push 0x4db96c
push esi
push 3
push str.GGetUDPDataToBuf_IP_empty_or_nullptr____Port_d_IP_use_default__s__now
mov dword [ebp - 0x86c], 0x4db96c
call fcn.0045deb0
add esp, 0x10
mov eax, dword [ebp + 0x24]
mov esi, eax
test eax, eax
je 0x418a20
test edi, edi
je 0x418a07
cmp eax, 0x3e8
jge 0x418a07
mov eax, dword [edi + 0x28ac]
cmp eax, 2
jle 0x418a07
add eax, 0xfffffffe
imul esi, eax, 0x3e8
cmp esi, 0xea60
jle 0x418a16
mov esi, 0xea60
jmp 0x418a20
mov eax, 0x3e8
cmp esi, eax
cmovl esi, eax
lea ecx, [ebp - 0x85c]
call fcn.00461d20
mov byte [ebp - 4], 1
test edi, edi
je 0x418b5c
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.0043f0b0
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 0x418ca5
cmp dword [edi + 0x2884], 0x10
lea eax, [edi + 0x2870]
mov dword [ebp - 0x864], eax
jb 0x418ada
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.0043f040
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.0040e000
mov eax, dword [0x5107f8]
add esp, 0x28
test al, 1
jne 0x418b4c
or eax, 1
mov ecx, 0x5107fc
mov dword [0x5107f8], eax
xor al, al
xchg byte [ecx], al
xor al, al
xchg byte [ecx], al
lea ecx, [ebp - 0x414]
call fcn.004395d0
jmp 0x418ca8
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.0043f0b0
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 0x418c8b
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.0043f040
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.0040e000
mov eax, dword [0x5107f8]
add esp, 0x28
test al, 1
jne 0x418c80
or eax, 1
mov ecx, 0x5107fc
mov dword [0x5107f8], eax
xor al, al
xchg byte [ecx], al
xor al, al
xchg byte [ecx], al
lea ecx, [ebp - 0x414]
call fcn.004395d0
cmp dword [ebp - 0x830], 0x10
jb 0x418ca8
push dword [ebp - 0x844]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x418ca8
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x848], 0x10
jb 0x418d23
push dword [ebp - 0x85c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x418d23
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x510930]
test al, 1
jne 0x418d6f
or eax, 1
mov dword [0x510930], eax
push 0x57c
push 0
push 0x510940
mov dword [ebp - 4], 4
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.0045a500
push 0x4d4740
call fcn.004ba7c1
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x510cb4], 0
je 0x418e5a
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.0040e000
add esp, 0x1c
cmp byte [ebp - 0x814], 0
jne 0x418dda
xor ecx, ecx
jmp 0x418dec
lea ecx, [ebp - 0x814]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418de3
sub ecx, edx
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.0040f700
mov edx, dword [ebp - 0x870]
cmp byte [edx], 0
jne 0x418e0e
xor ecx, ecx
jmp 0x418e1c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418e13
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x82c]
call fcn.0040f2f0
cmp dword [ebp - 0x818], 0x10
lea ecx, [ebp - 0x82c]
cmovae ecx, dword [ebp - 0x82c]
call fcn.00439e70
cmp dword [ebp - 0x818], 0x10
jb 0x418e5a
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.004ba66b
mov esp, ebp
pop ebp
ret 0x20