Function at 0x140163322
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401f1bf0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1a8]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r9d, dword [rbp + 0x170]
lea r8, [0x1404f34d4]
lea rdx, str.SELECT__id___send_name___send_id___dest_name___dest_id___title___message___time___status___zeny___type__FROM___s__WHERE__id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
je 0x1401f1c61
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
je 0x1401f1c98
mov eax, dword [0x1404edf20]
add eax, 7
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
xor al, al
jmp 0x1401f258c
xor r9d, r9d
lea r8, [rbp + 0x78]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rax, qword [rbp + 0x178]
add rax, 8
mov r8d, 0x18
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call fcn.14016b4b9
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 4], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rax, qword [rbp + 0x178]
add rax, 0x24
mov r8d, 0x18
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call fcn.14016b4b9
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 0x20], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 5
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rax, qword [rbp + 0x178]
add rax, 0x3c
mov r8d, 0x28
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call fcn.14016b4b9
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 6
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rax, qword [rbp + 0x178]
add rax, 0x64
mov r8d, 0x1f4
mov rdx, qword [rbp + 0x78]
mov rcx, rax
call fcn.14016b4b9
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 7
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
cdqe
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 0x270], rax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 8
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 0x268], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 9
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 0x278], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 0xa
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
mov rcx, qword [rbp + 0x178]
mov dword [rcx + 0x258], eax
mov rax, qword [rbp + 0x178]
cmp dword [rax + 0x258], 0
jne 0x1401f1eea
cmp dword [0x1404f51a8], 0
jle 0x1401f1eea
imul eax, dword [0x1404f51a8], 0x18
imul eax, eax, 0x3c
imul eax, eax, 0x3c
cdqe
mov rcx, qword [rbp + 0x178]
add rax, qword [rcx + 0x270]
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 0x260], rax
jmp 0x1401f1f42
mov rax, qword [rbp + 0x178]
cmp dword [rax + 0x258], 2
jne 0x1401f1f30
cmp dword [0x1404f51ac], 0
jle 0x1401f1f30
imul eax, dword [0x1404f51ac], 0x18
imul eax, eax, 0x3c
imul eax, eax, 0x3c
cdqe
mov rcx, qword [rbp + 0x178]
add rax, qword [rcx + 0x270]
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 0x260], rax
jmp 0x1401f1f42
mov rax, qword [rbp + 0x178]
mov qword [rax + 0x260], 0
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov eax, dword [0x1404edf20]
add eax, 0x22
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.14016609f
mov eax, dword [0x1404edf20]
add eax, 0x23
lea rcx, str.SELECT__amount___nameid___refine___attribute___identify___unique_id___bound___enchantgrade_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.1401602e4
mov dword [rbp + 0x24], 0
jmp 0x1401f1faf
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jge 0x1401f1fec
mov eax, dword [0x1404edf20]
add eax, 0x25
mov ecx, dword [rbp + 0x24]
mov dword [rsp + 0x28], ecx
lea rcx, str.__card_d_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
jmp 0x1401f1fa7
mov dword [rbp + 0x24], 0
jmp 0x1401f1ffd
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 5
jge 0x1401f20ab
mov eax, dword [0x1404edf20]
add eax, 0x27
mov ecx, dword [rbp + 0x24]
mov dword [rsp + 0x28], ecx
lea rcx, str.___option_id_d_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
mov eax, dword [0x1404edf20]
add eax, 0x28
mov ecx, dword [rbp + 0x24]
mov dword [rsp + 0x28], ecx
lea rcx, str.___option_val_d_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
mov eax, dword [0x1404edf20]
add eax, 0x29
mov ecx, dword [rbp + 0x24]
mov dword [rsp + 0x28], ecx
lea rcx, str.___option_parm_d_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
jmp 0x1401f1ff5
mov eax, dword [0x1404edf20]
add eax, 0x2b
lea rcx, [0x1404f35d4]
mov qword [rsp + 0x28], rcx
lea rcx, str._FROM___s_
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
mov eax, dword [0x1404edf20]
add eax, 0x2c
mov ecx, dword [rbp + 0x170]
mov dword [rsp + 0x28], ecx
lea rcx, str._WHERE__id____d
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
mov eax, dword [0x1404edf20]
add eax, 0x2d
lea rcx, str._ORDER_BY__index__ASC
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.1401602e4
mov eax, dword [0x1404edf20]
add eax, 0x2e
mov dword [rsp + 0x28], 5
lea rcx, str._LIMIT__d
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x48]
lea r8, str.mail_loadmessage
mov edx, eax
lea rcx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
call fcn.140167fe9
lea rcx, [rbp + 0x48]
call fcn.140161c0c
mov rdx, rax
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f21d9
mov eax, dword [0x1404edf20]
add eax, 0x31
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_mail.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
lea rcx, [rbp + 0x48]
call fcn.14016170c
xor al, al
jmp 0x1401f258c
mov rax, qword [rbp + 0x178]
add rax, 0x27c
mov r8d, 0x181
xor edx, edx
mov rcx, rax
call fcn.140167e40
mov dword [rbp + 4], 0
jmp 0x1401f2207
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 5
jge 0x1401f2575
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401f2575
xor r9d, r9d
lea r8, [rbp + 0x78]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov word [rdx + rcx + 0x284], ax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x78]
call fcn.1401622dd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov dword [rdx + rcx + 0x280], eax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx + 0x28b], al
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 3
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx + 0x28c], al
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 4
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx + 0x28a], al
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 5
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x78]
call fcn.140164d7b
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov qword [rdx + rcx + 0x2bc], rax
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 6
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx + 0x2bb], al
xor r9d, r9d
lea r8, [rbp + 0x78]
mov edx, 7
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
mov byte [rdx + rcx + 0x2c8], al
movsxd rax, dword [rbp + 4]
imul rax, rax, 0x4d
mov rcx, qword [rbp + 0x178]
mov dword [rcx + rax + 0x2b6], 0
mov dword [rbp + 0x24], 0
jmp 0x1401f2417
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jge 0x1401f246d
mov eax, dword [rbp + 0x24]
add eax, 8
cdqe
xor r9d, r9d
lea r8, [rbp + 0x78]
mov rdx, rax
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x78]
call fcn.1401622dd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx + rcx + 0x27c]
movsxd rdx, dword [rbp + 0x24]
mov dword [rcx + rdx*4 + 0x11], eax
jmp 0x1401f240f
mov dword [rbp + 0x24], 0
jmp 0x1401f247e
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 5
jge 0x1401f2570
imul eax, dword [rbp + 0x24], 3
add eax, 0xc
cdqe
xor r9d, r9d
lea r8, [rbp + 0x78]
mov rdx, rax
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx + rcx + 0x27c]
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 5
mov word [rcx + rdx + 0x21], ax
imul eax, dword [rbp + 0x24], 3
add eax, 0xd
cdqe
xor r9d, r9d
lea r8, [rbp + 0x78]
mov rdx, rax
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx + rcx + 0x27c]
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 5
mov word [rcx + rdx + 0x23], ax
imul eax, dword [rbp + 0x24], 3
add eax, 0xe
cdqe
xor r9d, r9d
lea r8, [rbp + 0x78]
mov rdx, rax
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x78]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x4d
mov rdx, qword [rbp + 0x178]
lea rcx, [rdx + rcx + 0x27c]
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 5
mov byte [rcx + rdx + 0x25], al
jmp 0x1401f2476
jmp 0x1401f21ff
lea rcx, [rbp + 0x48]
call fcn.14016170c
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret