Function at 0x140165a2d
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401ff010
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1c8]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x150], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov qword [rbp + 8], 0
cmp qword [rbp + 0x188], 0
jne 0x1401ff075
xor eax, eax
jmp 0x1401ff3fa
mov rcx, qword [0x1404f6de0]
call fcn.140162f67
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x1401ff0bc
mov eax, dword [0x1404edf90]
add eax, 0xa
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_quest.cpp
mov rcx, qword [rbp + 0x58]
call fcn.14016608b
mov rax, qword [rbp + 0x188]
mov dword [rax], 0
xor eax, eax
jmp 0x1401ff3fa
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140167e40
lea r8, [0x1404f39d4]
lea rdx, str.SELECT__quest_id____state____time____count1____count2____count3__FROM___s__WHERE__char_id__
mov rcx, qword [rbp + 0x58]
call fcn.140163142
cmp eax, 0xffffffff
je 0x1401ff2ad
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x180]
mov r8d, reloc.WS2_32.dll_inet_addr
xor edx, edx
mov rcx, qword [rbp + 0x58]
call fcn.14016acfd
cmp eax, 0xffffffff
je 0x1401ff2ad
mov rcx, qword [rbp + 0x58]
call fcn.14016069f
cmp eax, 0xffffffff
je 0x1401ff2ad
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8d, reloc.WS2_32.dll_inet_addr
xor edx, edx
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401ff2ad
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3c]
mov r8d, reloc.WS2_32.dll_inet_addr
mov edx, 1
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401ff2ad
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x2c]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 2
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401ff2ad
mov eax, 4
imul rax, rax, 0
lea rax, [rbp + rax + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, reloc.WS2_32.dll_inet_addr
mov edx, 3
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401ff2ad
mov eax, 4
imul rax, rax, 1
lea rax, [rbp + rax + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, reloc.WS2_32.dll_inet_addr
mov edx, 4
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
je 0x1401ff2ad
mov eax, 4
imul rax, rax, 2
lea rax, [rbp + rax + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8d, reloc.WS2_32.dll_inet_addr
mov edx, 5
mov rcx, qword [rbp + 0x58]
call fcn.14016a127
cmp eax, 0xffffffff
jne 0x1401ff2e6
mov eax, dword [0x1404edf90]
add eax, 0x1b
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_quest.cpp
mov rcx, qword [rbp + 0x58]
call fcn.14016608b
mov rcx, qword [rbp + 0x58]
call fcn.14016ac8f
mov rax, qword [rbp + 0x188]
mov dword [rax], 0
xor eax, eax
jmp 0x1401ff3fa
mov rcx, qword [rbp + 0x58]
call fcn.1401637c8
mov rcx, qword [rbp + 0x188]
mov dword [rcx], eax
mov rax, qword [rbp + 0x188]
cmp dword [rax], 0
jle 0x1401ff3ed
mov dword [rbp + 0x74], 0
mov eax, dword [0x1404edf90]
add eax, 0x25
mov rcx, qword [rbp + 0x188]
movsxd rcx, dword [rcx]
lea rdx, str.mapif_quests_fromsql
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_quest.cpp
mov edx, 0x18
call fcn.14016b11c
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x58]
call fcn.14016ac7b
test eax, eax
jne 0x1401ff39c
mov rax, qword [rbp + 0x188]
mov eax, dword [rax]
cmp dword [rbp + 0x74], eax
jl 0x1401ff363
jmp 0x1401ff39c
movsxd rax, dword [rbp + 0x74]
imul rax, rax, 0x18
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov eax, dword [rbp + 0x74]
inc eax
mov dword [rbp + 0x74], eax
mov r8d, 0x18
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x148]
call fcn.14016526c
jmp 0x1401ff346
mov rax, qword [rbp + 0x188]
mov eax, dword [rax]
cmp dword [rbp + 0x74], eax
jge 0x1401ff3ed
mov rax, qword [rbp + 0x188]
mov ecx, dword [rbp + 0x74]
mov dword [rax], ecx
mov eax, dword [0x1404edf90]
add eax, 0x2e
movsxd rcx, dword [rbp + 0x74]
imul rcx, rcx, 0x18
lea rdx, str.mapif_quests_fromsql
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharint_quest.cpp
mov rdx, rcx
mov rcx, qword [rbp + 8]
call fcn.140160eb5
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x58]
call fcn.14016ac8f
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret