Function at 0x140169db7
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401f7d00
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, WSASetLastError
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2c8]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
cmp dword [rbp + 0x290], 0
jg 0x1401f7d55
xor eax, eax
jmp 0x1401f82f6
mov ecx, dword [rbp + 0x290]
call fcn.14016ab81
mov qword [rbp + 0x1a8], rax
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [0x1404f7520]
mov rax, qword [0x1404f7520]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140163331
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1401f7d9b
mov rax, qword [rbp + 0x48]
jmp 0x1401f82f6
mov rax, qword [0x1404f7518]
mov qword [rbp + 0x48], rax
mov r8d, 0x244
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.140167e40
mov r9d, dword [rbp + 0x290]
lea r8, [0x1404f32d4]
lea rdx, str.SELECT__party_id____name___exp___item____leader_id____leader_char__FROM___s__WHERE__party_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f7e03
mov eax, dword [0x1404edf5c]
add eax, 0x19
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_party.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor eax, eax
jmp 0x1401f82f6
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401f7e1a
xor eax, eax
jmp 0x1401f82f6
mov rax, qword [rbp + 0x48]
mov ecx, dword [rbp + 0x290]
mov dword [rax], ecx
lea r9, [rbp + 0xa8]
lea r8, [rbp + 0x88]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0xa8]
call fcn.1401fbe90
mov rcx, qword [rbp + 0x48]
add rcx, 4
mov r8, rax
mov rdx, qword [rbp + 0x88]
call fcn.14016526c
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
test eax, eax
je 0x1401f7ea4
mov dword [rbp + 0x264], 1
jmp 0x1401f7eae
mov dword [rbp + 0x264], 0
mov eax, dword [rbp + 0x264]
and eax, 1
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x20]
and ecx, 0xfffffffe
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x48]
mov dword [rcx + 0x20], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 0x264], eax
mov eax, dword [rbp + 0x264]
and eax, 3
shl eax, 1
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0x20]
and ecx, 0xfffffff9
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x48]
mov dword [rcx + 0x20], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 4], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 5
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov dword [rbp + 0x24], eax
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov r9d, dword [rbp + 0x290]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__account_id___char_id___name___base_level___last_map___online___class__FROM___s__WHERE__party_id__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f7fc5
mov eax, dword [0x1404edf5c]
add eax, 0x2b
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_party.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
xor eax, eax
jmp 0x1401f82f6
mov dword [rbp + 0xc4], 0
jmp 0x1401f7fdf
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0xc
jge 0x1401f81fc
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401f81fc
movsxd rax, dword [rbp + 0xc4]
imul rax, rax, 0x2c
mov rcx, qword [rbp + 0x48]
lea rax, [rcx + rax + 0x24]
mov qword [rbp + 0x68], rax
xor r9d, r9d
lea r8, [rbp + 0x88]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov rcx, qword [rbp + 0x68]
mov dword [rcx], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov rcx, qword [rbp + 0x68]
mov dword [rcx + 4], eax
lea r9, [rbp + 0xa8]
lea r8, [rbp + 0x88]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0xa8]
call fcn.1401fbe90
mov rcx, qword [rbp + 0x68]
add rcx, 8
mov r8, rax
mov rdx, qword [rbp + 0x88]
call fcn.14016526c
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov rcx, qword [rbp + 0x68]
mov word [rcx + 0x24], ax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
lea rdx, str.inter_party_fromsql
mov rcx, qword [rbp + 0x88]
call fcn.140162940
mov rcx, qword [rbp + 0x68]
mov word [rcx + 0x22], ax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 5
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
test eax, eax
je 0x1401f8153
mov dword [rbp + 0x264], 1
jmp 0x1401f815d
mov dword [rbp + 0x264], 0
mov eax, dword [rbp + 0x264]
and eax, 1
shl eax, 1
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx + 0x28]
and ecx, 0xfffffffd
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x68]
mov dword [rcx + 0x28], eax
xor r9d, r9d
lea r8, [rbp + 0x88]
mov edx, 6
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x88]
call fcn.140161abd
mov rcx, qword [rbp + 0x68]
mov word [rcx + 0x20], ax
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 4]
cmp dword [rax], ecx
jne 0x1401f81cf
mov rax, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x24]
cmp dword [rax + 4], ecx
jne 0x1401f81cf
mov dword [rbp + 0x264], 1
jmp 0x1401f81d9
mov dword [rbp + 0x264], 0
mov eax, dword [rbp + 0x264]
and eax, 1
mov rcx, qword [rbp + 0x68]
mov ecx, dword [rcx + 0x28]
and ecx, 0xfffffffe
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x68]
mov dword [rcx + 0x28], eax
jmp 0x1401f7fd1
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
cmp dword [0x1404f4e28], 0
je 0x1401f822e
mov rax, qword [rbp + 0x48]
add rax, 4
mov r8, rax
mov edx, dword [rbp + 0x290]
lea rcx, str.Party_loaded___d____s_._n
call fcn.140168c9b
mov eax, dword [0x1404edf5c]
add eax, 0x3f
lea rcx, str.inter_party_fromsql
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea r8, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_party.cpp
mov edx, 0x244
mov ecx, 1
call fcn.14016b11c
mov qword [rbp + 0x48], rax
mov r8d, 0x244
mov rdx, qword [0x1404f7518]
mov rcx, qword [rbp + 0x48]
call fcn.14016526c
mov rcx, qword [rbp + 0x48]
call fcn.1401692d6
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x1f8]
call fcn.140163183
lea rcx, [rbp + 0x1c8]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbp + 0x290]
call fcn.14016ab81
mov qword [rbp + 0x228], rax
lea rax, [rbp + 0x250]
lea rcx, [rbp + 0x1c8]
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 + 0x250]
mov rdx, qword [rbp + 0x228]
mov rcx, qword [0x1404f7520]
mov rax, qword [0x1404f7520]
call qword [rax + gethostname]
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x270]
pop rdi
pop rsi
pop rbp
ret