Function at 0x140163124
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401a2040
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x298]
mov rax, qword [0x1404ee780]
xor rax, rbp
mov qword [rbp + 0x220], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14016a9fb
movsxd rax, dword [rbp + 0x250]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax]
and al, 1
movzx eax, al
test eax, eax
je 0x1401a20b2
mov qword [rbp + 0x218], 0
jmp 0x1401a20e8
movsxd rax, dword [rbp + 0x250]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x250]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rax + 0x28]
sub rax, rcx
mov qword [rbp + 0x218], rax
cmp qword [rbp + 0x218], 7
jae 0x1401a20fe
xor eax, eax
jmp 0x1401a2391
movsxd rax, dword [rbp + 0x250]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x250]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
mov eax, dword [rax + rcx + 2]
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x250]
lea rcx, [0x14050db40]
mov rax, qword [rcx + rax*8]
movsxd rcx, dword [rbp + 0x250]
lea rdx, [0x14050db40]
mov rcx, qword [rdx + rcx*8]
mov rax, qword [rax + 8]
mov rcx, qword [rcx + 0x38]
movzx eax, byte [rax + rcx + 6]
mov dword [rbp + 0x44], eax
mov edx, 7
mov ecx, dword [rbp + 0x250]
call fcn.14016642d
cmp dword [rbp + 0x24], 0
jle 0x1401a2368
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 0
call fcn.140165de3
mov qword [rbp + 0xe8], rax
mov ecx, dword [rbp + 0x24]
call fcn.14016ab81
mov qword [rbp + 0x208], rax
mov rdx, qword [rbp + 0x208]
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rbp + 0xe8]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.140163331
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
je 0x1401a21f6
mov rax, qword [rbp + 0x108]
mov ecx, dword [rbp + 0x44]
mov dword [rax + 0x14], ecx
mov rcx, qword [0x1404f6de0]
call fcn.140162f67
mov qword [rbp + 0x128], rax
mov r9d, dword [rbp + 0x24]
lea r8, [0x1404f20d4]
lea rdx, str.SELECT__char_id____class____guild_id__FROM___s__WHERE__account_id____d
mov rcx, qword [rbp + 0x128]
call fcn.140163142
cmp eax, 0xffffffff
je 0x1401a223c
mov rcx, qword [rbp + 0x128]
call fcn.14016069f
test eax, eax
je 0x1401a2267
mov eax, dword [0x1404ed0a4]
add eax, 0x16
mov r8d, eax
lea rdx, str.C:GAMES_ro_offline_2022_20231219T050943Z_00201_emulator4cram_4th_jobs_srccharchar_logif.cpp
mov rcx, qword [rbp + 0x128]
call fcn.14016608b
mov rcx, qword [rbp + 0x128]
call fcn.14016ac8f
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x84]
mov r8d, reloc.WS2_32.dll_inet_addr
xor edx, edx
mov rcx, qword [rbp + 0x128]
call fcn.14016a127
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, 0xa
mov edx, 1
mov rcx, qword [rbp + 0x128]
call fcn.14016a127
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xc4]
mov r8d, reloc.WS2_32.dll_inet_addr
mov edx, 2
mov rcx, qword [rbp + 0x128]
call fcn.14016a127
mov byte [rbp + 0x64], 0
jmp 0x1401a231e
movzx eax, byte [rbp + 0x64]
inc al
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0xf
jge 0x1401a235c
mov rcx, qword [rbp + 0x128]
call fcn.14016ac7b
test eax, eax
jne 0x1401a235c
mov eax, dword [rbp + 0xc4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xa4]
mov r8d, dword [rbp + 0x84]
mov edx, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x44]
call fcn.14016640f
jmp 0x1401a2315
mov rcx, qword [rbp + 0x128]
call fcn.14016ac8f
mov eax, 0x2b0d
mov word [rbp + 4], ax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 6], eax
movzx eax, byte [rbp + 0x44]
mov byte [rbp + 0xa], al
mov edx, 7
lea rcx, [rbp + 4]
call fcn.140160a19
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140168bb0
mov rax, rdi
mov rcx, qword [rbp + 0x220]
xor rcx, rbp
call fcn.140165226
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret