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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3e7f
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
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 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 [0x50f7f0]
mov dword [ebp - 0xc80], ebx
mov dword [ebp - 0xc78], esi
mov dword [ebp - 0xc7c], esi
test eax, eax
je 0x41862b
mov byte [ebp - 0xc5e], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x418467
cmp byte [esi], 0
je 0x418467
mov dword [ebp - 0xc70], esi
jmp 0x418488
push 0x4db96c
push dword [ebp + 0x10]
mov dword [ebp - 0xc70], 0x4db96c
push 3
push str.GGetUDPData_IP_empty_or_nullptr____Port_d_IP_use_default__s__now
call fcn.0045deb0
add esp, 0x10
test ebx, ebx
je 0x41849d
mov eax, dword [ebx + 0x28ac]
add eax, 0xfffffffe
imul edi, eax, 0x3e8
jmp 0x4184aa
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.00461d20
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4185c1
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.0043e980
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 0x418787
cmp dword [ebx + 0x2884], 0x10
lea eax, [ebx + 0x2870]
mov dword [ebp - 0xc6c], eax
jb 0x41853a
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.0043f040
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.0041b580
mov eax, dword [0x5107f8]
add esp, 0x2c
test al, 1
jne 0x4185b1
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 - 0xc14]
call fcn.004395d0
jmp 0x418781
mov eax, dword [0x511014]
test al, 1
jne 0x4185ec
or eax, 1
mov dword [0x511014], eax
mov byte [ebp - 4], 2
call fcn.00474da0
push 0x4d4a10
call fcn.004ba7c1
add esp, 4
mov byte [ebp - 4], 1
push ecx
push 0x2800
mov ecx, 0x510f30
call fcn.00475a00
mov dword [ebp - 0xc88], eax
test eax, eax
jne 0x418632
lea edx, [eax + 3]
mov ecx, str.GGetUDPData_2__getCharBuffer_Failed
call fcn.0045dd70
cmp dword [ebp - 0xc18], 0x10
jb 0x41862b
push dword [ebp - 0xc2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x418905
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.0043f370
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 0x418757
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.0043f040
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.0041b580
add esp, 0x2c
call fcn.00438a60
lea ecx, [ebp - 0xc14]
call fcn.004395d0
call fcn.004759a0
push dword [ebp - 0xc88]
mov ecx, eax
call fcn.00475db0
cmp dword [ebp - 0xc48], 0x10
jb 0x418781
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 0x418802
push dword [ebp - 0xc2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x418802
mov dword [ebp - 4], 0xffffffff
call fcn.0045c270
cmp dword [eax + 0x374], 0
je 0x4188ff
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.0040e000
add esp, 0x20
cmp byte [ebp - 0x414], 0
jne 0x41887f
xor ecx, ecx
jmp 0x418891
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418888
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc44]
call fcn.0040f700
mov edx, dword [ebp - 0xc74]
cmp byte [edx], 0
jne 0x4188b3
xor ecx, ecx
jmp 0x4188c1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4188b8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xc44]
call fcn.0040f2f0
cmp dword [ebp - 0xc30], 0x10
lea ecx, [ebp - 0xc44]
cmovae ecx, dword [ebp - 0xc44]
call fcn.00439e70
cmp dword [ebp - 0xc30], 0x10
jb 0x4188ff
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.004ba66b
mov esp, ebp
pop ebp
ret 0x1c