Function at 0x1401608c0
Capabilities:
Reference sql statements

Disassembly:
jmp 0x14019a740
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov eax, 0x2a30
call fcn.140161e46
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x900
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2a58]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x29f0], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax]
and al, 1
movzx eax, al
test eax, eax
je 0x14019a7c3
mov qword [rbp + 0x29e8], 0
jmp 0x14019a7f9
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a20]
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 + 0x29e8], rax
cmp qword [rbp + 0x29e8], 3
jae 0x14019a80a
xor eax, eax
jmp 0x14019b300
cmp qword [rbp + 0x2a28], 0
je 0x14019a822
mov rax, qword [rbp + 0x2a28]
movzx eax, byte [rax]
test eax, eax
jne 0x14019a839
mov edx, 3
mov ecx, dword [rbp + 0x2a20]
call fcn.14016642d
xor eax, eax
jmp 0x14019b300
call fcn.140165de3
mov qword [rbp + 0x2258], rax
call fcn.140163a61
mov qword [rbp + 0x2278], rax
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a20]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
movzx eax, byte [rax + rcx + 2]
mov dword [rbp + 0x2294], eax
mov edx, 3
mov ecx, dword [rbp + 0x2a20]
call fcn.14016642d
mov dword [rbp + 0x2234], 0
jmp 0x14019a8b2
mov eax, dword [rbp + 0x2234]
inc eax
mov dword [rbp + 0x2234], eax
movsxd rax, dword [rbp + 0x2234]
cmp rax, 2
jae 0x14019a90a
movsxd rax, dword [rbp + 0x2234]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
mov ecx, dword [rcx + rax]
call fcn.140168075
movzx eax, al
test eax, eax
je 0x14019a908
movsxd rax, dword [rbp + 0x2234]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
lea rax, [rcx + rax + 0x10]
mov rcx, rax
call fcn.140169c9f
movzx eax, al
test eax, eax
jne 0x14019a908
jmp 0x14019a90a
jmp 0x14019a8a4
xor eax, eax
test eax, eax
jne 0x14019a898
movsxd rax, dword [rbp + 0x2234]
cmp rax, 2
jne 0x14019aa3d
cmp dword [rbp + 0x2a20], 0
je 0x14019a96c
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0x30]
add rax, 0x18
movsxd rcx, dword [rbp + 0x2a20]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
cmp rax, qword [rcx + 0x20]
jbe 0x14019a96c
mov edx, 0x18
mov ecx, dword [rbp + 0x2a20]
call fcn.14016782d
xor eax, eax
test eax, eax
jne 0x14019a921
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a20]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x840
mov word [rax + rcx], dx
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a20]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
mov edx, 0x18
mov word [rax + rcx + 2], dx
movsxd rax, dword [rbp + 0x2a20]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x2a20]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rcx + 0x30]
lea rax, [rax + rcx + 4]
mov r8d, setsockopt
lea rdx, [0x140450d34]
mov rcx, rax
call fcn.140162a94
mov edx, 0x18
mov ecx, dword [rbp + 0x2a20]
call fcn.14016a799
mov eax, 1
jmp 0x14019b300
mov eax, dword [rbp + 0x2294]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x2a28]
mov r9d, dword [rax + 4]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id__FROM___s__WHERE__account_id__d_AND__char_num__d_AND__delete_date___0
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
test eax, eax
jne 0x14019aa9c
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x14019aa9c
xor r9d, r9d
lea r8, [rbp + 0x2198]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
test eax, eax
je 0x14019aade
mov eax, dword [0x1404ed098]
add eax, 0x1f
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_clif.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor edx, edx
mov ecx, dword [rbp + 0x2a20]
call fcn.1401670a8
mov eax, 1
jmp 0x14019b300
mov rcx, qword [rbp + 0x2198]
call fcn.140161abd
mov dword [rbp + 0x21b4], eax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov rax, qword [rbp + 0x2a28]
movzx eax, byte [rax + 0x184]
and eax, 1
test eax, eax
je 0x14019ab28
xor edx, edx
mov ecx, dword [rbp + 0x2a20]
call fcn.1401670a8
mov eax, 1
jmp 0x14019b300
movsxd rax, dword [rbp + 0x2294]
mov rcx, qword [rbp + 0x2a28]
mov edx, dword [rbp + 0x21b4]
cmp dword [rcx + rax*4 + 0x14], edx
jne 0x14019ab86
movsxd rax, dword [rbp + 0x2294]
mov qword [rbp + 0x29e8], rax
xor ecx, ecx
call fcn.14019f840
mov rcx, qword [rbp + 0x2a28]
mov rdx, qword [rbp + 0x29e8]
cmp qword [rcx + rdx*8 + 0x108], rax
jle 0x14019ab86
xor edx, edx
mov ecx, dword [rbp + 0x2a20]
call fcn.1401670a8
mov eax, 1
jmp 0x14019b300
mov rax, qword [rbp + 0x2a28]
mov r8d, dword [rax + 4]
mov edx, dword [rbp + 0x21b4]
mov ecx, 0xfffffffe
call fcn.140166801
mov r8b, 1
lea rdx, [rbp + 0x10]
mov ecx, dword [rbp + 0x21b4]
call fcn.1401685c0
test eax, eax
jne 0x14019abe3
mov rax, qword [rbp + 0x2a28]
mov edx, dword [rax + 4]
mov ecx, dword [rbp + 0x21b4]
call fcn.140168d77
xor edx, edx
mov ecx, dword [rbp + 0x2a20]
call fcn.1401670a8
mov eax, 1
jmp 0x14019b300
mov ecx, dword [rbp + 0x21b4]
call fcn.14016ab81
mov qword [rbp + 0x2928], rax
mov rdx, qword [rbp + 0x2928]
mov rcx, qword [rbp + 0x2278]
mov rax, qword [rbp + 0x2278]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140163331
mov qword [rbp + 0x2178], rax
cmp dword [0x1404f4e2c], 0
je 0x14019acb6
mov edx, 0x18
lea rcx, [rbp + 0xb8]
call fcn.1401612cf
mov r9, rax
lea r8, [rbp + 0xb8]
lea rdx, [rbp + 0x22b8]
mov rcx, qword [0x1404f6de0]
call fcn.140167314
lea rax, [rbp + 0x22b8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x2294]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x2a28]
mov r9d, dword [rax + 4]
lea r8, [0x1404f25d4]
lea rdx, str.INSERT_INTO___s___time____account_id___char_num___name___VALUES__NOW_____d___d___s_
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x14019acb6
mov eax, dword [0x1404ed098]
add eax, 0x46
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_clif.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
lea r9, [rbp + 0xb8]
mov r8d, dword [rbp + 0x2294]
mov rax, qword [rbp + 0x2a28]
mov edx, dword [rax + 4]
lea rcx, str.Selected_char:__Account__d:__d____s__n
call fcn.140168c9b
mov r8w, 0xffff
mov edx, 0xffffffff
mov rax, qword [rbp + 0x2178]
movzx ecx, word [rax + 0xea]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019ad1c
mov rax, qword [rbp + 0x2178]
movzx eax, word [rax + 0xea]
test eax, eax
jne 0x14019b0e1
xor eax, eax
mov word [rbp + 0x2304], ax
jmp 0x14019ad38
movzx eax, word [rbp + 0x2304]
inc ax
mov word [rbp + 0x2304], ax
movzx eax, word [rbp + 0x2304]
cmp rax, 2
jae 0x14019ad90
movzx eax, word [rbp + 0x2304]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
mov ecx, dword [rcx + rax]
call fcn.140168075
movzx eax, al
test eax, eax
je 0x14019ad8e
movzx eax, word [rbp + 0x2304]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
lea rax, [rcx + rax + 0x10]
mov rcx, rax
call fcn.140169c9f
movzx eax, al
test eax, eax
jne 0x14019ad8e
jmp 0x14019ad90
jmp 0x14019ad27
xor eax, eax
test eax, eax
jne 0x14019ad1c
movzx eax, word [rbp + 0x2304]
cmp rax, 2
jne 0x14019adc6
lea rcx, str.Connection_Closed._No_map_servers_available._n
call fcn.140168c9b
mov dl, 1
mov ecx, dword [rbp + 0x2a20]
call fcn.14016b66c
mov eax, 1
jmp 0x14019b300
lea rdx, str.chclif_parse_charselect
lea rcx, str.prontera
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019ae30
mov eax, 0x111
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, 0x162
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
lea rcx, str.geffen
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019ae9a
mov eax, 0x78
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, 0x64
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
lea rcx, str.morocc
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019af04
mov eax, 0xa0
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, 0x5e
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
lea rcx, str.alberta
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019af6e
mov eax, reloc.WS2_32.dll_WSACleanup
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, reloc.WS2_32.dll_gethostname
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
lea rcx, str.payon
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019afd8
mov eax, 0x57
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, 0x75
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
lea rcx, str.izlude
call fcn.140162940
mov word [rbp + 0x2304], ax
mov r8w, 0xffff
mov edx, 0xffffffff
movzx ecx, word [rbp + 0x2304]
call fcn.140165b22
mov dword [rbp + 0x21f4], eax
cmp dword [rbp + 0x21f4], 0
jl 0x14019b03f
mov eax, 0x5e
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xec], ax
mov eax, 0x67
mov rcx, qword [rbp + 0x2178]
mov word [rcx + 0xee], ax
jmp 0x14019b07f
lea rdx, str.chclif_parse_charselect
mov rax, qword [rbp + 0x2178]
movzx ecx, word [rax + 0xea]
call fcn.14016a0af
mov rdx, rax
lea rcx, str.Connection_Closed._No_map_server_available_that_has_a_major_city__and_unable_to_find_map_server_for__s._n
call fcn.140168c9b
mov dl, 1
mov ecx, dword [rbp + 0x2a20]
call fcn.14016b66c
mov eax, 1
jmp 0x14019b300
lea rdx, str.chclif_parse_charselect
movzx ecx, word [rbp + 0x2304]
call fcn.14016a0af
mov qword [rbp + 0x29e8], rax
lea rdx, str.chclif_parse_charselect
mov rcx, qword [rbp + 0x2178]
movzx ecx, word [rcx + 0xea]
call fcn.14016a0af
mov rcx, qword [rbp + 0x29e8]
mov r8, rcx
mov rdx, rax
lea rcx, str.Unable_to_find_map_server_for__s__sending_to_major_city__s._n
call fcn.140160af5
mov rax, qword [rbp + 0x2178]
movzx ecx, word [rbp + 0x2304]
mov word [rax + 0xea], cx
movsxd rax, dword [rbp + 0x21f4]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
mov eax, dword [rcx + rax]
mov dword [rbp + 0x2214], eax
cmp dword [rbp + 0x2214], 1
jl 0x14019b11a
movsxd rax, dword [rbp + 0x2214]
lea rcx, [0x14050db40]
cmp qword [rcx + rax*8], 0
jne 0x14019b18b
mov r8d, dword [rbp + 0x21f4]
mov edx, dword [rbp + 0x2214]
lea rcx, str.parse_char:_Attempting_to_write_to_invalid_session__d__Map_Server__d_disconnected._n
call fcn.140164be6
movsxd rax, dword [rbp + 0x21f4]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
mov dword [rcx + rax], 0xffffffff
movsxd rax, dword [rbp + 0x21f4]
imul rax, rax, 0x28
lea rcx, [0x1404f5660]
add rcx, rax
mov rax, rcx
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call fcn.140167e40
mov dl, 1
mov ecx, dword [rbp + 0x2a20]
call fcn.14016b66c
mov eax, 1
jmp 0x14019b300
mov r9d, dword [rbp + 0x21f4]
mov r8d, dword [rbp + 0x2a30]
mov rdx, qword [rbp + 0x2178]
mov ecx, dword [rbp + 0x2a20]
call fcn.140163e8f
mov eax, dword [0x1404ed098]
add eax, 0x80
lea rcx, str.chclif_parse_charselect
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea r8, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_clif.cpp
mov edx, gethostbyname
mov ecx, 1
call fcn.14016b11c
mov qword [rbp + 0x21d8], rax
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov ecx, dword [rcx + 4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2178]
mov ecx, dword [rcx]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov ecx, dword [rcx + 8]
mov dword [rax + 8], ecx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov ecx, dword [rcx + 0xc]
mov dword [rax + 0xc], ecx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov ecx, dword [rcx + 0x10]
mov dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov rcx, qword [rcx + 0x78]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x21d8]
mov rcx, qword [rbp + 0x2a28]
mov ecx, dword [rcx + 0x80]
mov dword [rax + 0x20], ecx
mov rax, qword [rbp + 0x21d8]
mov ecx, dword [rbp + 0x2a30]
mov dword [rax + 0x10], ecx
mov rdx, qword [rbp + 0x21d8]
lea rcx, [rbp + 0x2978]
call fcn.140163183
lea rcx, [rbp + 0x2948]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x2a28]
mov ecx, dword [rax + 4]
call fcn.14016ab81
mov qword [rbp + 0x29a8], rax
lea rax, [rbp + 0x29d0]
lea rcx, [rbp + 0x2948]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
xor r9d, r9d
lea r8, [rbp + 0x29d0]
mov rdx, qword [rbp + 0x29a8]
mov rcx, qword [rbp + 0x2258]
mov rax, qword [rbp + 0x2258]
call qword [rax + gethostname]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x29f0]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x2a00]
pop rdi
pop rsi
pop rbp
ret