Function at 0x14016298b
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401a6340
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x798
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x146
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x7b8]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x740], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax]
and al, 1
movzx eax, al
test eax, eax
je 0x1401a63b2
mov qword [rbp + 0x738], 0
jmp 0x1401a63e8
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rax + 0x28]
sub rax, rcx
mov qword [rbp + 0x738], rax
cmp qword [rbp + 0x738], 6
jae 0x1401a63fe
xor eax, eax
jmp 0x1401a690c
mov byte [rbp + 4], 0
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 2]
mov dword [rbp + 0x24], eax
mov rcx, qword [0x1404f6de0]
call fcn.140162f67
mov qword [rbp + 0x278], rax
mov edx, 6
mov ecx, dword [rbp + 0x770]
call fcn.14016642d
mov dword [rsp + 0x20], gethostname
mov r9d, dword [rbp + 0x24]
lea r8, [0x1404f3fd4]
lea rdx, str.SELECT__script____tick____flag____type____icon__FROM___s__WHERE__char_id____d_LIMIT__d
mov rcx, qword [rbp + 0x278]
call fcn.140163142
cmp eax, 0xffffffff
je 0x1401a65d4
mov rcx, qword [rbp + 0x278]
call fcn.14016069f
cmp eax, 0xffffffff
je 0x1401a65d4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x200
lea r9, [rbp + 0x50]
mov r8d, reloc.WS2_32.dll_setsockopt
xor edx, edx
mov rcx, qword [rbp + 0x278]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401a65d4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x250]
mov r8d, 4
mov edx, 1
mov rcx, qword [rbp + 0x278]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401a65d4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x258]
mov r8d, 6
mov edx, 2
mov rcx, qword [rbp + 0x278]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401a65d4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x25c]
mov r8d, 5
mov edx, 3
mov rcx, qword [rbp + 0x278]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401a65d4
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x25a]
mov r8d, 2
mov edx, 4
mov rcx, qword [rbp + 0x278]
call fcn.14016a127
cmp eax, 0xffffffff
jne 0x1401a6609
mov eax, dword [0x1404ed0d4]
add eax, 0x16
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_mapif.cpp
mov rcx, qword [rbp + 0x278]
call fcn.14016608b
mov rcx, qword [rbp + 0x278]
call fcn.14016ac8f
mov eax, 1
jmp 0x1401a690c
mov rcx, qword [rbp + 0x278]
call fcn.1401637c8
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
test eax, eax
jle 0x1401a68fb
movzx eax, byte [rbp + 4]
imul rax, rax, 0x210
add rax, 9
mov dword [rbp + 0x2b4], eax
cmp dword [rbp + 0x770], 0
je 0x1401a668c
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rbp + 0x2b4]
add rcx, qword [rax + 0x30]
mov rax, rcx
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x1401a668c
mov eax, dword [rbp + 0x2b4]
mov edx, eax
mov ecx, dword [rbp + 0x770]
call fcn.14016782d
xor eax, eax
test eax, eax
jne 0x1401a6639
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x2b2f
mov word [rax + rcx], dx
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
movzx edx, word [rbp + 0x2b4]
mov word [rax + rcx + 2], dx
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, dword [rbp + 0x24]
mov dword [rax + rcx + 4], edx
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
movzx edx, byte [rbp + 4]
mov byte [rax + rcx + 8], dl
mov byte [rbp + 0x294], 0
jmp 0x1401a677e
movzx eax, byte [rbp + 0x294]
inc al
mov byte [rbp + 0x294], al
movzx eax, byte [rbp + 0x294]
movzx ecx, byte [rbp + 4]
cmp eax, ecx
jge 0x1401a687c
mov rcx, qword [rbp + 0x278]
call fcn.14016ac7b
test eax, eax
jne 0x1401a687c
mov r8d, 0x210
xor edx, edx
lea rcx, [rbp + 0x2e0]
call fcn.140167e40
mov r8d, 0x200
xor edx, edx
lea rcx, [rbp + 0x2e0]
call fcn.140167e40
lea rcx, [rbp + 0x50]
call fcn.140164c31
inc rax
mov r8, rax
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x2e0]
call fcn.14016b4b9
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x4e0], rax
movzx eax, word [rbp + 0x258]
mov word [rbp + 0x4e8], ax
movzx eax, byte [rbp + 0x25c]
mov byte [rbp + 0x4ec], al
movzx eax, word [rbp + 0x25a]
mov word [rbp + 0x4ea], ax
movsxd rax, dword [rbp + 0x770]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x770]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
add rax, qword [rcx + 0x30]
movzx ecx, byte [rbp + 0x294]
imul rcx, rcx, 0x210
lea rax, [rax + rcx + 9]
mov r8d, 0x210
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call fcn.14016526c
jmp 0x1401a676f
mov eax, dword [rbp + 0x2b4]
mov edx, eax
mov ecx, dword [rbp + 0x770]
call fcn.14016a799
movzx eax, byte [rbp + 0x294]
mov r8d, eax
mov edx, dword [rbp + 0x24]
lea rcx, str.Bonus_Script_loaded_for_CID_d._Total:__d._n
call fcn.140168c9b
mov r9d, dword [rbp + 0x24]
lea r8, [0x1404f3fd4]
lea rdx, str.DELETE_FROM___s__WHERE__char_id__d
mov rcx, qword [rbp + 0x278]
call fcn.140163142
cmp eax, 0xffffffff
je 0x1401a68dc
mov rcx, qword [rbp + 0x278]
call fcn.14016069f
cmp eax, 0xffffffff
jne 0x1401a68fb
mov eax, dword [0x1404ed0d4]
add eax, 0x38
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_mapif.cpp
mov rcx, qword [rbp + 0x278]
call fcn.14016608b
mov rcx, qword [rbp + 0x278]
call fcn.14016ac8f
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x740]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x758]
pop rdi
pop rbp
ret