Function at 0x14014b670
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.14013aa58
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 0x68]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x120]
add rax, 0x1473
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.14013670a
cmp eax, 0xffffffff
jne 0x14014b710
mov eax, dword [0x140447024]
add eax, 0xd
mov r8d, eax
lea rdx, str.C:Users_rafae_repos_rathena_srclogin_account.cpp
mov rcx, qword [rbp + 8]
call fcn.140136372
xor al, al
jmp 0x14014bacd
mov rcx, qword [rbp + 8]
call fcn.14013402c
test eax, eax
je 0x14014b72d
mov rcx, qword [rbp + 8]
call fcn.140133abe
xor al, al
jmp 0x14014bacd
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.140134374
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.140134b30
mov rax, qword [rbp + 0x128]
add rax, 4
mov r8d, 0x18
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 2
mov rcx, qword [rbp + 8]
call fcn.140134b30
mov rax, qword [rbp + 0x128]
add rax, 0x1c
mov r8d, 0x21
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 3
mov rcx, qword [rbp + 8]
call fcn.140134b30
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.140134b30
mov rax, qword [rbp + 0x128]
add rax, 0x3e
mov r8d, 0x28
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, 5
mov rcx, qword [rbp + 8]
call fcn.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.140134374
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.140134b30
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.140134923
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.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.14013883e
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.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.14013883e
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.140134b30
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.140134923
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.140134b30
cmp qword [rbp + 0x28], 0
jne 0x14014b927
lea rax, [0x1403b6b7a]
mov qword [rbp + 0xf8], rax
jmp 0x14014b932
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.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, qword [rbp + 8]
call fcn.140134b30
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.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_inet_ntoa
mov rcx, qword [rbp + 8]
call fcn.140134b30
cmp qword [rbp + 0x28], 0
jne 0x14014b9b4
lea rax, [0x1403b6b7a]
mov qword [rbp + 0xf8], rax
jmp 0x14014b9bf
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.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 8]
call fcn.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.140134374
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.140134b30
mov rax, qword [rbp + 0x128]
add rax, 0xbf
mov r8d, 5
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14013b1c4
xor r9d, r9d
lea r8, [rbp + 0x28]
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rbp + 8]
call fcn.140134b30
mov rcx, qword [rbp + 0x28]
call fcn.14013883e
cdqe
mov rcx, qword [rbp + 0x128]
mov qword [rcx + 0xc8], rax
mov rcx, qword [rbp + 8]
call fcn.140133abe
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 0x14014bacb
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.140136688
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.1401394d7
mov rax, rdi
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret