Function at 0x140164961
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401f1800
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x178]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r8d, 0x7808
xor edx, edx
mov rcx, qword [rbp + 0x148]
call fcn.140167e40
xor eax, eax
mov rcx, qword [rbp + 0x148]
mov word [rcx], ax
mov rax, qword [rbp + 0x148]
mov byte [rax + 2], 0
mov dword [rsp + 0x20], 0x1f
mov r9d, dword [rbp + 0x140]
lea r8, [0x1404f34d4]
lea rdx, str.SELECT__id__FROM___s__WHERE__dest_id__d_AND__status____3_ORDER_BY__id__LIMIT__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f18ba
mov eax, dword [0x1404edf18]
add eax, 0xa
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
xor eax, eax
jmp 0x1401f1afb
mov rcx, qword [0x1404f6de0]
call fcn.1401655e1
cmp rax, 0x1e
jbe 0x1401f18d8
mov dword [rbp + 0x114], 1
jmp 0x1401f18e2
mov dword [rbp + 0x114], 0
mov rax, qword [rbp + 0x148]
movzx ecx, byte [rbp + 0x114]
mov byte [rax + 2], cl
mov dword [rbp + 4], 0
jmp 0x1401f1904
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x1e
jge 0x1401f1950
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x1401f1950
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x400
mov rdx, qword [rbp + 0x148]
mov dword [rdx + rcx + 8], eax
jmp 0x1401f18fc
mov rax, qword [rbp + 0x148]
movzx ecx, word [rbp + 4]
mov word [rax], cx
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
mov dword [rbp + 4], 0
jmp 0x1401f197b
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x148]
movsx eax, word [rax]
cmp dword [rbp + 4], eax
jge 0x1401f19cf
movsxd rax, dword [rbp + 4]
imul rax, rax, 0x400
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax + 8]
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x400
mov rdx, rax
mov rax, qword [rbp + 0x148]
mov ecx, dword [rax + rcx + 8]
call fcn.140163322
movzx eax, al
test eax, eax
jne 0x1401f19cd
xor eax, eax
jmp 0x1401f1afb
jmp 0x1401f1973
xor eax, eax
mov rcx, qword [rbp + 0x148]
mov word [rcx + 4], ax
xor eax, eax
mov rcx, qword [rbp + 0x148]
mov word [rcx + 6], ax
mov dword [rbp + 4], 0
jmp 0x1401f19fa
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x148]
movsx eax, word [rax]
cmp dword [rbp + 4], eax
jge 0x1401f1ad7
movsxd rax, dword [rbp + 4]
imul rax, rax, 0x400
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax + 8]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax + 0x268], 0
jne 0x1401f1aac
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov r9d, 1
lea r8, [0x1404f34d4]
lea rdx, str.UPDATE___s__SET__status____d_WHERE__id____d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x1401f1a83
mov eax, dword [0x1404edf18]
add eax, 0x27
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 rax, qword [rbp + 0x48]
mov dword [rax + 0x268], 1
mov rax, qword [rbp + 0x148]
movzx eax, word [rax + 4]
inc ax
mov rcx, qword [rbp + 0x148]
mov word [rcx + 4], ax
jmp 0x1401f1ad2
mov rax, qword [rbp + 0x48]
cmp dword [rax + 0x268], 1
jne 0x1401f1ad2
mov rax, qword [rbp + 0x148]
movzx eax, word [rax + 6]
inc ax
mov rcx, qword [rbp + 0x148]
mov word [rcx + 6], ax
jmp 0x1401f19f2
mov rax, qword [rbp + 0x148]
movsx eax, word [rax]
mov r8d, eax
mov edx, dword [rbp + 0x140]
lea rcx, str.mail_load_complete_from_DB___id:__d__total:__d__n
call fcn.140168c9b
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret