Function at 0x14013a5f8
Capabilities:
Reference sql statements

Disassembly:
jmp 0x1401682d0
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x168]
lea rcx, reloc.WS2_32.dll_accept
call fcn.14013aa58
mov dword [rbp + 4], 0
movzx eax, byte [0x14044adf2]
test eax, eax
jne 0x140168323
xor eax, eax
jmp 0x1401683dc
xor edx, edx
mov ecx, dword [rbp + 0x130]
call fcn.140138ef1
mov qword [rbp + 0xf8], rax
mov rax, qword [0x14044ae78]
mov qword [rbp + 0x100], rax
mov eax, dword [rbp + 0x138]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xf8]
lea r8, str.loginlog
lea rdx, str.SELECT_count___FROM___s__WHERE__ip____s_AND___rcode___0_OR__rcode___1__AND__time____NOW_____INTERVAL__d_MINUTE
mov rcx, qword [rbp + 0x100]
call fcn.14013670a
cmp eax, 0xffffffff
jne 0x140168394
mov eax, dword [0x140447340]
add eax, 8
mov r8d, eax
lea rdx, str.C:Users_rafae_repos_rathena_srcloginloginlog.cpp
mov rcx, qword [0x14044ae78]
call fcn.140136372
mov rcx, qword [0x14044ae78]
call fcn.14013402c
test eax, eax
jne 0x1401683d9
xor r9d, r9d
lea r8, [rbp + 0x28]
xor edx, edx
mov rcx, qword [0x14044ae78]
call fcn.140134b30
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.140134923
mov dword [rbp + 4], eax
mov rcx, qword [0x14044ae78]
call fcn.140133abe
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401394d7
mov rax, rdi
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x14013a9d6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140179ad0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x130
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, setsockopt
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x140447638]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.14013aa58
lea rax, [rbp + 8]
lea rcx, str.0123456789abcdef
mov rdi, rax
mov rsi, rcx
mov ecx, setsockopt
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0x38], 0
jmp 0x140179b51
mov rax, qword [rbp + 0x38]
inc rax
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x140]
cmp qword [rbp + 0x38], rax
jae 0x140179bd8
mov rax, qword [rbp + 0x138]
movzx eax, byte [rax]
and eax, 0xf0
sar eax, 4
cdqe
mov rcx, qword [rbp + 0x130]
movzx eax, byte [rbp + rax + 8]
mov byte [rcx], al
mov rax, qword [rbp + 0x130]
inc rax
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x138]
movzx eax, byte [rax]
and eax, 0xf
sar eax, 0
cdqe
mov rcx, qword [rbp + 0x130]
movzx eax, byte [rbp + rax + 8]
mov byte [rcx], al
mov rax, qword [rbp + 0x130]
inc rax
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x138]
inc rax
mov qword [rbp + 0x138], rax
jmp 0x140179b46
mov rax, qword [rbp + 0x130]
mov byte [rax], 0
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401394d7
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.140136af2
lea rsp, [rbp + 0x110]
pop rdi
pop rsi
pop rbp
ret