Function at 0x14016121b
Capabilities:
Reference sql statements

Disassembly:
jmp 0x140191990
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
mov r8d, 0x140
xor edx, edx
lea rcx, [0x1404f51c0]
call fcn.140167e40
mov r8d, 0x140
xor edx, edx
lea rcx, [0x1404f5300]
call fcn.140167e40
mov r8d, 0x140
xor edx, edx
lea rcx, [0x1404f5440]
call fcn.140167e40
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 0x109d
mov dword [rsp + 0x40], 0x1004
mov dword [rsp + 0x38], 0xfe0
mov dword [rsp + 0x30], 0xfda
mov dword [rsp + 0x28], 0xfc1
mov dword [rsp + 0x20], 0xfab
mov r9d, 0xa
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id___fame___name__FROM___s__WHERE__fame__0_AND___class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d__ORDER_BY__fame__DESC_LIMIT_0__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140191a76
mov eax, dword [0x1404ed068]
add eax, 0xb
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov dword [rbp + 4], 0
jmp 0x140191a87
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
cmp dword [rbp + 4], eax
jge 0x140191b5b
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x140191b5b
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, 0x20
lea rdx, [0x1404f51c0]
mov dword [rdx + rcx], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f51c0]
mov dword [rdx + rcx + 4], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0x48]
call fcn.140195250
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f51c0]
lea rcx, [rdx + rcx + 8]
mov r8, rax
mov rdx, qword [rbp + 0x28]
call fcn.14016526c
jmp 0x140191a7f
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], 0x10a3
mov dword [rsp + 0x40], 0x100b
mov dword [rsp + 0x38], 0xfee
mov dword [rsp + 0x30], 0xfe7
mov dword [rsp + 0x28], 0xfc9
mov dword [rsp + 0x20], 0xfb3
mov r9d, reloc.WS2_32.dll_select
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id___fame___name__FROM___s__WHERE__fame__0_AND___class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d_OR__class__d__ORDER_BY__fame__DESC_LIMIT_0__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140191bd9
mov eax, dword [0x1404ed068]
add eax, 0x1a
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov dword [rbp + 4], 0
jmp 0x140191bea
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
cmp dword [rbp + 4], eax
jge 0x140191cbe
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x140191cbe
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, 0x20
lea rdx, [0x1404f5300]
mov dword [rdx + rcx], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f5300]
mov dword [rdx + rcx + 4], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0x48]
call fcn.140195250
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f5300]
lea rcx, [rdx + rcx + 8]
mov r8, rax
mov rdx, qword [rbp + 0x28]
call fcn.14016526c
jmp 0x140191be2
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x1081
mov r9d, 0xfce
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id___fame___name__FROM___s__WHERE__fame__0_AND___class__d_OR__class__d__ORDER_BY__fame__DESC_LIMIT_0__d
mov rcx, qword [0x1404f6de0]
call fcn.140164cae
cmp eax, 0xffffffff
jne 0x140191d14
mov eax, dword [0x1404ed068]
add eax, 0x29
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar.cpp
mov rcx, qword [0x1404f6de0]
call fcn.1401647b8
mov dword [rbp + 4], 0
jmp 0x140191d25
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [reloc.WS2_32.dll_ioctlsocket]
cmp dword [rbp + 4], eax
jge 0x140191df9
mov rcx, qword [0x1404f6de0]
call fcn.140161626
test eax, eax
jne 0x140191df9
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, 0x20
lea rdx, [0x1404f5440]
mov dword [rdx + rcx], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov rcx, qword [rbp + 0x28]
call fcn.140161abd
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f5440]
mov dword [rdx + rcx + 4], eax
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [0x1404f6de0]
call fcn.140162594
mov edx, 0x18
mov rcx, qword [rbp + 0x48]
call fcn.140195250
movsxd rcx, dword [rbp + 4]
imul rcx, rcx, 0x20
lea rdx, [0x1404f5440]
lea rcx, [rdx + rcx + 8]
mov r8, rax
mov rdx, qword [rbp + 0x28]
call fcn.14016526c
jmp 0x140191d1d
mov rcx, qword [0x1404f6de0]
call fcn.140160e74
lea rcx, [rbp - 0x60]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140168bb0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret