Function at 0x140150e10
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_select
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14013ce09
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x68]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x120]
add rax, 0x119
mov r9d, dword [rbp + 0x130]
mov r8, rax
lea rdx, str.SELECT__account_id___userid___user_pass___sex___email___group_id___state___unban_time___expiration_time___logincount___lastlogin___last_ip___birthdate___character_slots___pincode____pincode_change__FROM___s__WHERE__account_id____d
mov rcx, qword [rbp + 8]
call fcn.1401388d6
cmp eax, 0xffffffff
jne 0x140150eb0
mov eax, dword [0x140450028]
add eax, 0xd
mov r8d, eax
lea rdx, str.C:UsershagonDesktop_rAthena20240420_rAthena_srclogin_account.cpp
mov rcx, qword [rbp + 8]
call fcn.140138520
xor al, al
jmp 0x14015126d
mov rcx, qword [rbp + 8]
call fcn.140136072
test eax, eax
je 0x140150ecd
mov rcx, qword [rbp + 8]
call fcn.140135aff
xor al, al
jmp 0x14015126d
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.1401363e2
mov rcx, qword [rbp + 0x128]
mov dword [rcx], eax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rax, qword [rbp + 0x128]
add rax, 4
mov r8d, 0x18
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rax, qword [rbp + 0x128]
add rax, 0x1c
mov r8d, 0x21
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 3
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov rdx, qword [rbp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rcx + 0x3d], al
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 4
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rax, qword [rbp + 0x128]
add rax, 0x3e
mov r8d, 0x28
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 5
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.1401363e2
mov rcx, qword [rbp + 0x128]
mov dword [rcx + 0x68], eax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 6
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1401369a5
mov rcx, qword [rbp + 0x128]
mov dword [rcx + 0x70], eax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 7
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.14013ab27
cdqe
mov rcx, qword [rbp + 0x128]
mov qword [rcx + 0x78], rax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 8
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.14013ab27
cdqe
mov rcx, qword [rbp + 0x128]
mov qword [rcx + 0x80], rax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 9
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1401369a5
mov rcx, qword [rbp + 0x128]
mov dword [rcx + 0x88], eax
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 0xa
mov rcx, qword [rbp + 8]
call fcn.140136bd5
cmp qword [rbp + 0x28], 0
jne 0x1401510c7
lea rax, [0x1403c01ca]
mov qword [rbp + 0xf8], rax
jmp 0x1401510d2
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x128]
add rax, 0x8c
mov r8d, 0x18
mov rdx, qword [rbp + 0xf8]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rax, qword [rbp + 0x128]
add rax, 0xa4
mov r8d, reloc.WS2_32.dll_recv
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rbp + 8]
call fcn.140136bd5
cmp qword [rbp + 0x28], 0
jne 0x140151154
lea rax, [0x1403c01ca]
mov qword [rbp + 0xf8], rax
jmp 0x14015115f
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x128]
add rax, 0xb4
mov r8d, reloc.WS2_32.dll_inet_addr
mov rdx, qword [rbp + 0xf8]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.1401363e2
mov rcx, qword [rbp + 0x128]
mov byte [rcx + 0x6c], al
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_ntohl
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rax, qword [rbp + 0x128]
add rax, 0xbf
mov r8d, 5
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013d5b6
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 8]
call fcn.140136bd5
mov rcx, qword [rbp + 0x28]
call fcn.14013ab27
cdqe
mov rcx, qword [rbp + 0x128]
mov qword [rcx + 0xc8], rax
mov rcx, qword [rbp + 8]
call fcn.140135aff
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov byte [rcx + rax + 0xd0], 0
mov rax, qword [rbp + 0x128]
movzx eax, byte [rax + 0x6c]
cmp eax, 0xf
jle 0x14015126b
mov rax, qword [rbp + 0x128]
add rax, 4
mov rcx, qword [rbp + 0x128]
mov r8d, dword [rcx]
mov rdx, rax
lea rcx, str.Account__s__AID_u__exceeds_MAX_CHARS._Capping..._n
call fcn.14013884f
mov rax, qword [rbp + 0x128]
mov byte [rax + 0x6c], reloc.WS2_32.dll_ntohs
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14013b80b
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret