Function at 0x14017cf00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xe8
xor r14d, r14d
lea r8, [rbp + 0x7f]
mov ebx, r14d
mov qword [rbp - 0x51], r14
xor r9d, r9d
mov qword [rbp - 0x71], rbx
mov r15, rcx
mov qword [rbp + 0x7f], r14
lea edx, [r14 + 0x1b]
call fcn.140187c10
mov dword [rbp + 0x77], eax
mov r12d, eax
test eax, eax
jne 0x14017dc69
mov rbx, qword [rbp + 0x7f]
lea edx, [rax + 1]
movsxd r8, dword [r15 + 0x208]
mov rcx, rbx
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xd8], r13
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm7
call fcn.14012e670
movsxd r8, dword [r15 + 0x1ec]
lea edx, [r14 + 2]
mov rcx, rbx
call fcn.14012e670
movsd xmm7, qword [0x1403171e0]
movsd xmm6, qword [0x140317158]
nop dword [rax + rax]
lea rdi, [0x140317034]
mov esi, r14d
test rbx, rbx
je 0x14017d2e2
cmp qword [rbx], 0
jne 0x14017cfe1
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.140139330
mov eax, 1
jmp 0x14017cfe4
mov eax, r14d
test eax, eax
jne 0x14017d2f3
mov r13, qword [rbx]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14017cffe
call qword [0x14035f540]
mov rcx, rbx
call fcn.1401f8c50
mov edi, eax
cmp eax, 0x11
jne 0x14017d1b4
mov ecx, esi
inc esi
cmp ecx, 0x32
jge 0x14017d1b0
mov r15d, dword [rbx + 0x30]
mov rcx, rbx
call fcn.1401f0dc0
mov r14d, eax
test eax, eax
jne 0x14017d0dc
mov rdi, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14017d047
call qword [0x14035f540]
cmp qword [rbx + 0xb8], 0
jle 0x14017d05c
mov rdx, rbx
mov rcx, rdi
call fcn.140190b10
mov rcx, rbx
call fcn.14020e410
xor r14d, r14d
mov byte [rbx + 0xc7], 1
mov dword [rbx + 0x34], r14d
mov qword [rbx + 0x38], r14
mov dword [rbx + 0x40], r14d
mov qword [rbx + 0x50], r14
mov dword [rbx + 0x30], 0xffffffff
mov word [rbx + 0xc4], 0xff02
mov dword [rbx + 0x2c], 1
cmp byte [rdi + 0x67], r14b
jne 0x14017d09f
test eax, eax
je 0x14017d0a9
mov edx, eax
mov rcx, rdi
call fcn.140152fc0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14017d0b8
call qword [0x14035f550]
test r15d, r15d
js 0x14017d0c4
mov byte [rbx + 0xc5], 0xfe
mov rcx, rbx
call fcn.1401f8c50
mov edi, eax
cmp eax, 0x11
je 0x14017d011
jmp 0x14017d1b0
mov rcx, qword [r13 + 0x190]
test rcx, rcx
jne 0x14017d0ee
xor edi, edi
mov esi, edi
jmp 0x14017d128
movzx edx, word [rcx + 0x14]
mov r8d, 0x202
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x14017d111
cmp byte [rcx + 0x16], 1
jne 0x14017d111
mov rsi, qword [rcx + 8]
jmp 0x14017d126
test dl, 1
je 0x14017d11c
xor edi, edi
mov esi, edi
jmp 0x14017d128
mov dl, 1
call fcn.140223220
mov rsi, rax
xor edi, edi
mov rdx, qword [rbx + 0xa8]
test rdx, rdx
je 0x14017d13c
mov rcx, r13
call fcn.1401c3190
cmp byte [r13 + 0x67], 0
jne 0x14017d19e
test rsi, rsi
jne 0x14017d14d
mov r15, rdi
jmp 0x14017d182
mov rdi, 0xffffffffffffffff
cmp byte [rsi + rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x14017d154
lea rdx, [rdi + 1]
mov rcx, r13
call fcn.1401c3340
mov r15, rax
test rax, rax
je 0x14017d182
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call fcn.14002b6c0
mov edx, r14d
mov qword [rbx + 0xa8], r15
mov rcx, r13
call fcn.140152fc0
mov edi, eax
mov dword [rbx + 0x34], eax
xor r14d, r14d
jmp 0x14017d1b0
xor r14d, r14d
mov edi, 7
mov qword [rbx + 0xa8], r14
mov dword [rbx + 0x34], edi
mov r15, qword [rbp + 0x67]
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x14017d1c3
call qword [0x14035f550]
cmp edi, 0x64
jne 0x14017d316
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d1de
call qword [0x14035f540]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x14017d1f4
cmp r14w, word [rbx + 0xc0]
jb 0x14017d20f
mov rcx, qword [rbx]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1401c6440
lea rcx, [0x14030aec8]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x14017d21c
mov rsi, qword [rcx]
jmp 0x14017d267
test al, 8
je 0x14017d24f
movsd xmm0, qword [rcx]
comisd xmm7, xmm0
jbe 0x14017d236
movabs rsi, 0x8000000000000000
jmp 0x14017d267
comisd xmm0, xmm6
jbe 0x14017d248
movabs rsi, 0x7fffffffffffffff
jmp 0x14017d267
cvttsd2si rsi, xmm0
jmp 0x14017d267
test al, 0x12
je 0x14017d264
cmp qword [rcx + 8], 0
je 0x14017d264
call fcn.14019baa0
mov rsi, rax
jmp 0x14017d267
mov rsi, r14
mov rcx, qword [rbx]
mov edx, dword [rbx + 0x34]
cmp byte [rcx + 0x67], 0
jne 0x14017d27c
test edx, edx
jne 0x14017d27c
mov eax, r14d
jmp 0x14017d281
call fcn.140152fc0
mov dword [rbx + 0x34], eax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d296
call qword [0x14035f550]
cmp dword [r15 + 0x1ec], 0
mov edi, r14d
jle 0x14017d2d7
mov r13, qword [rbp - 0x71]
nop word [rax + rax]
lea r9, [rbp + 0x77]
mov r8d, edi
mov edx, esi
mov rcx, r15
call fcn.14016ebc0
xor r13, rax
inc edi
cmp edi, dword [r15 + 0x1ec]
jl 0x14017d2b0
mov r12d, dword [rbp + 0x77]
mov qword [rbp - 0x71], r13
test r12d, r12d
je 0x14017cfb0
jmp 0x14017d316
lea rdx, str.API_called_with_NULL_prepared_statement
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.140139330
mov r9d, 0x16257
mov qword [rsp + 0x20], rdi
lea r8, str.misuse
mov ecx, reloc.WS2_32.dll_setsockopt
lea rdx, str._s_at_line__d_of___.10s_
call fcn.140139330
test rbx, rbx
jne 0x14017d323
mov ebx, r14d
jmp 0x14017d3aa
mov rdi, qword [rbx]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14017d335
call qword [0x14035f540]
cmp qword [rbx + 0xb8], 0
jle 0x14017d34a
mov rdx, rbx
mov rcx, rdi
call fcn.140190b10
mov rcx, rbx
call fcn.14020e410
mov byte [rbx + 0xc7], 1
mov dword [rbx + 0x30], 0xffffffff
mov dword [rbx + 0x34], r14d
mov word [rbx + 0xc4], 0xff02
mov qword [rbx + 0x38], r14
mov dword [rbx + 0x2c], 1
mov dword [rbx + 0x40], r14d
mov qword [rbx + 0x50], r14
cmp byte [rdi + 0x67], 0
jne 0x14017d38f
test eax, eax
jne 0x14017d38f
mov ebx, r14d
jmp 0x14017d39b
mov edx, eax
mov rcx, rdi
call fcn.140152fc0
mov ebx, eax
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14017d3aa
call qword [0x14035f550]
test r12d, r12d
jne 0x14017dc45
mov r12d, ebx
test ebx, ebx
jne 0x14017dc45
mov rsi, qword [rbp + 0x67]
mov r13, r14
mov qword [rbp - 0x41], r14
mov rax, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x1b8]
mov rcx, qword [rax]
mov qword [rbp - 0x49], rcx
lea rcx, str.SELECT__s
call fcn.14014d770
mov rbx, rax
test rax, rax
jne 0x14017d445
lea r12d, [rax + 7]
lea rdi, [0x140317034]
test r13, r13
je 0x14017dc45
mov rbx, qword [r13]
test rbx, rbx
jne 0x14017dbf3
lea rdx, str.API_called_with_finalized_prepared_statement
lea ecx, [rbx + 0x15]
call fcn.140139330
mov r9d, 0x15f3d
mov qword [rsp + 0x20], rdi
lea r8, str.misuse
lea rdx, str._s_at_line__d_of___.10s_
lea ecx, [rbx + 0x15]
call fcn.140139330
jmp 0x14017dc45
mov rcx, qword [rsi + 0x18]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x30], r14
mov r9d, pe_nt_image_headers64
mov qword [rsp + 0x28], rax
mov r8d, 0xffffffff
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.1401e2b60
cmp dword [reloc.WS2_32.dll_accept], 0
mov r12d, eax
je 0x14017d4c5
mov rcx, qword [0x14036df10]
test rcx, rcx
je 0x14017d48e
call qword [0x14035f540]
mov rcx, rbx
call qword [0x14035f4f8]
dec qword [0x14036dea8]
movsxd rcx, eax
sub qword [0x14036de60], rcx
mov rcx, rbx
call qword [0x14035f4e8]
mov rcx, qword [0x14036df10]
test rcx, rcx
je 0x14017d4ce
call qword [0x14035f550]
jmp 0x14017d4ce
mov rcx, rbx
call qword [0x14035f4e8]
mov r13, qword [rbp - 0x41]
test r12d, r12d
jne 0x14017d3f3
nop dword [rax + rax]
mov edi, r14d
test r13, r13
je 0x14017dbb3
cmp qword [r13], 0
jne 0x14017d50b
lea rdx, str.API_called_with_finalized_prepared_statement
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.140139330
mov eax, 1
jmp 0x14017d50e
mov eax, r14d
test eax, eax
jne 0x14017dbc4
mov r15, qword [r13]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x14017d529
call qword [0x14035f540]
mov rcx, r13
call fcn.1401f8c50
mov ebx, eax
cmp eax, 0x11
jne 0x14017d6e3
nop dword [rax]
mov ecx, edi
inc edi
cmp ecx, 0x32
jge 0x14017d6df
mov esi, dword [r13 + 0x30]
mov rcx, r13
call fcn.1401f0dc0
mov r14d, eax
test eax, eax
jne 0x14017d610
mov rbx, qword [r13]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017d577
call qword [0x14035f540]
cmp qword [r13 + 0xb8], 0
jle 0x14017d58c
mov rdx, r13
mov rcx, rbx
call fcn.140190b10
mov rcx, r13
call fcn.14020e410
xor r14d, r14d
mov byte [r13 + 0xc7], 1
mov dword [r13 + 0x34], r14d
mov qword [r13 + 0x38], r14
mov dword [r13 + 0x40], r14d
mov qword [r13 + 0x50], r14
mov dword [r13 + 0x30], 0xffffffff
mov word [r13 + 0xc4], 0xff02
mov dword [r13 + 0x2c], 1
cmp byte [rbx + 0x67], r14b
jne 0x14017d5d3
test eax, eax
je 0x14017d5dd
mov edx, eax
mov rcx, rbx
call fcn.140152fc0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017d5ec
call qword [0x14035f550]
test esi, esi
js 0x14017d5f8
mov byte [r13 + 0xc5], 0xfe
mov rcx, r13
call fcn.1401f8c50
mov ebx, eax
cmp eax, 0x11
je 0x14017d540
jmp 0x14017d6df
mov rcx, qword [r15 + 0x190]
test rcx, rcx
jne 0x14017d620
xor edi, edi
jmp 0x14017d656
movzx edx, word [rcx + 0x14]
mov r8d, 0x202
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x14017d643
cmp byte [rcx + 0x16], 1
jne 0x14017d643
mov rdi, qword [rcx + 8]
jmp 0x14017d656
test dl, 1
je 0x14017d64c
xor edi, edi
jmp 0x14017d656
mov dl, 1
call fcn.140223220
mov rdi, rax
mov rdx, qword [r13 + 0xa8]
test rdx, rdx
je 0x14017d66a
mov rcx, r15
call fcn.1401c3190
cmp byte [r15 + 0x67], 0
jne 0x14017d6cc
test rdi, rdi
jne 0x14017d67a
xor esi, esi
jmp 0x14017d6af
mov rbx, 0xffffffffffffffff
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14017d681
lea rdx, [rbx + 1]
mov rcx, r15
call fcn.1401c3340
mov rsi, rax
test rax, rax
je 0x14017d6af
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rax
call fcn.14002b6c0
mov edx, r14d
mov qword [r13 + 0xa8], rsi
mov rcx, r15
call fcn.140152fc0
mov ebx, eax
mov dword [r13 + 0x34], eax
xor r14d, r14d
jmp 0x14017d6df
xor r14d, r14d
mov ebx, 7
mov qword [r13 + 0xa8], r14
mov dword [r13 + 0x34], ebx
mov rsi, qword [rbp + 0x67]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x14017d6f2
call qword [0x14035f550]
cmp ebx, 0x64
jne 0x14017d3f3
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d70e
call qword [0x14035f540]
mov rcx, qword [r13 + 0xa0]
test rcx, rcx
je 0x14017d724
cmp r14w, word [r13 + 0xc0]
jb 0x14017d740
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1401c6440
lea rcx, [0x14030aec8]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x14017d751
mov rax, qword [rcx]
mov qword [rbp - 0x61], rax
jmp 0x14017d7aa
test al, 8
je 0x14017d790
movsd xmm0, qword [rcx]
comisd xmm7, xmm0
jbe 0x14017d76f
movabs rax, 0x8000000000000000
mov qword [rbp - 0x61], rax
jmp 0x14017d7aa
comisd xmm0, xmm6
jbe 0x14017d785
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x61], rax
jmp 0x14017d7aa
cvttsd2si rax, xmm0
mov qword [rbp - 0x61], rax
jmp 0x14017d7aa
test al, 0x12
je 0x14017d7a6
cmp qword [rcx + 8], 0
je 0x14017d7a6
call fcn.14019baa0
mov qword [rbp - 0x61], rax
jmp 0x14017d7aa
mov qword [rbp - 0x61], r14
mov rcx, qword [r13]
mov edx, dword [r13 + 0x34]
cmp byte [rcx + 0x67], 0
jne 0x14017d7c1
test edx, edx
jne 0x14017d7c1
mov eax, r14d
jmp 0x14017d7c6
call fcn.140152fc0
mov dword [r13 + 0x34], eax
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d7dd
call qword [0x14035f550]
cmp qword [rsi + 0x58], 0
mov eax, r14d
mov qword [rbp - 0x79], rax
je 0x14017d8e8
mov rax, qword [r13]
mov ebx, dword [rsi + 0x30]
inc ebx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d807
call qword [0x14035f540]
mov rdx, qword [r13 + 0xa0]
test rdx, rdx
je 0x14017d82f
movzx eax, word [r13 + 0xc0]
cmp ebx, eax
jge 0x14017d82f
test ebx, ebx
js 0x14017d82f
movsxd rax, ebx
imul rcx, rax, 0x38
add rcx, rdx
jmp 0x14017d84b
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1401c6440
lea rcx, [0x14030aec8]
movzx eax, word [rcx + 0x14]
test al, 0x24
je 0x14017d85c
mov rax, qword [rcx]
mov qword [rbp - 0x79], rax
jmp 0x14017d8b5
test al, 8
je 0x14017d89b
movsd xmm0, qword [rcx]
comisd xmm7, xmm0
jbe 0x14017d87a
movabs rax, 0x8000000000000000
mov qword [rbp - 0x79], rax
jmp 0x14017d8b5
comisd xmm0, xmm6
jbe 0x14017d890
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x79], rax
jmp 0x14017d8b5
cvttsd2si rax, xmm0
mov qword [rbp - 0x79], rax
jmp 0x14017d8b5
test al, 0x12
je 0x14017d8b1
cmp qword [rcx + 8], 0
je 0x14017d8b1
call fcn.14019baa0
mov qword [rbp - 0x79], rax
jmp 0x14017d8b5
mov qword [rbp - 0x79], r14
mov rcx, qword [r13]
mov edx, dword [r13 + 0x34]
cmp byte [rcx + 0x67], 0
jne 0x14017d8cc
test edx, edx
jne 0x14017d8cc
mov eax, r14d
jmp 0x14017d8d1
call fcn.140152fc0
mov dword [r13 + 0x34], eax
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d8e8
call qword [0x14035f550]
mov rcx, r14
mov r15d, 1
mov qword [rbp - 0x21], rcx
mov dword [rbp - 0x59], r15d
nop dword [rax]
lea eax, [r15 - 1]
mov dword [rbp - 0x31], eax
cmp eax, dword [rsi + 0x30]
jge 0x14017d4e0
mov rax, qword [rsi + 0x40]
cmp byte [rcx + rax], 0
jne 0x14017da52
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d931
call qword [0x14035f540]
mov rdx, qword [r13 + 0xa0]
test rdx, rdx
je 0x14017d960
movzx eax, word [r13 + 0xc0]
cmp r15d, eax
jge 0x14017d960
test r15d, r15d
js 0x14017d960
movsxd rax, r15d
imul rcx, rax, 0x38
add rcx, rdx
jne 0x14017d97c
mov rdi, r14
jmp 0x14017d9b3
mov rcx, qword [r13]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1401c6440
lea rcx, [0x14030aec8]
movzx edx, word [rcx + 0x14]
mov r8d, 0x202
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x14017d99f
cmp byte [rcx + 0x16], 1
jne 0x14017d99f
mov rdi, qword [rcx + 8]
jmp 0x14017d9b3
test dl, 1
je 0x14017d9a9
mov rdi, r14
jmp 0x14017d9b3
mov dl, 1
call fcn.140223220
mov rdi, rax
mov rcx, qword [r13]
mov edx, dword [r13 + 0x34]
cmp byte [rcx + 0x67], 0
jne 0x14017d9ca
test edx, edx
jne 0x14017d9ca
mov eax, r14d
jmp 0x14017d9cf
call fcn.140152fc0
mov dword [r13 + 0x34], eax
mov rax, qword [r13]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14017d9e6
call qword [0x14035f550]
mov rsi, qword [rsi + 0x48]
lea r9, [rbp - 0x69]
mov r8d, 0xffffffff
mov qword [rbp - 0x69], r14
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsi]
call qword [rbx + 0x18]
mov rdi, qword [rbp - 0x79]
test eax, eax
jne 0x14017da6e
mov rcx, qword [rbp - 0x69]
mov qword [rcx], rsi
cmp dword [rbx], 1
jl 0x14017da6e
mov rcx, qword [rbp - 0x69]
mov edx, edi
call qword [rbx + 0x30]
mov r12d, eax
test eax, eax
je 0x14017da6e
mov rcx, qword [rbp - 0x69]
call qword [rbx + 0x20]
mov rcx, r14
mov qword [rbp - 0x69], r14
mov rbx, qword [rbp - 0x49]
test rcx, rcx
je 0x14017da42
call qword [rbx + 0x20]
mov rcx, qword [rbp - 0x21]
cmp r12d, 0x65
mov rsi, qword [rbp + 0x67]
cmove r12d, r14d
inc r15d
inc rcx
mov dword [rbp - 0x59], r15d
mov qword [rbp - 0x21], rcx
test r12d, r12d
je 0x14017d900
jmp 0x14017d3f3
mov rcx, qword [rbp - 0x69]
mov r12d, eax
mov qword [rbp - 0x29], rcx
test eax, eax
jne 0x14017da36
mov rbx, qword [rbp - 0x49]
lea rax, [rbp + 0x77]
mov dword [rbp + 0x7f], r14d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x35]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x35], r14d
lea r8, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x39], r14d
mov dword [rbp + 0x77], r14d
call qword [rbx + 0x28]
mov r12d, eax
test eax, eax
jne 0x14017dba2
mov rax, qword [rbp - 0x61]
movsxd r12, dword [rbp - 0x31]
movsxd r13, dword [rbp + 0x77]
mov esi, dword [rbp + 0x7f]
mov r11, qword [rbp - 0x19]
lea r15, [rax + rax*8]
movsxd rax, edi
add r15, rax
imul rcx, r15, 0x51
add rcx, r12
lea rax, [rcx*8]
add rax, r13
add rcx, rax
test esi, esi
jle 0x14017db15
mov rdx, r11
mov r8d, esi
nop dword [rax]
movsx rax, byte [rdx]
lea rcx, [rcx + rcx*8]
add rcx, rax
lea rdx, [rdx + 1]
sub r8, 1
jne 0x14017db00
xor qword [rbp - 0x51], rcx
mov rdx, qword [rbp + 0x67]
mov rcx, qword [rbp - 0x29]
mov eax, dword [rdx + 0x1ec]
cmp eax, 1
jle 0x14017da81
mov r10, qword [rdx + 0x1f0]
lea edi, [rax - 1]
add r10, 0x28
mov ebx, 1
movsxd rcx, dword [r10]
cmp ecx, esi
jg 0x14017db88
lea r8, [rbx + r15*8]
mov rdx, r14
add r8, r15
mov r9, rcx
lea rax, [r12 + r8*8]
add r8, rax
lea rax, [r8*8]
add rax, r13
add r8, rax
test ecx, ecx
jle 0x14017db84
movsx rcx, byte [rdx + r11]
lea r8, [r8 + r8*8]
add r8, rcx
inc rdx
cmp rdx, r9
jl 0x14017db70
xor qword [rbp - 0x51], r8
inc rbx
add r10, 0x28
sub rdi, 1
jne 0x14017db43
mov rcx, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x79]
jmp 0x14017da7d
mov r13, qword [rbp - 0x41]
mov rcx, qword [rbp - 0x29]
mov r15d, dword [rbp - 0x59]
jmp 0x14017da3a
lea rdx, str.API_called_with_NULL_prepared_statement
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.140139330
lea rdi, [0x140317034]
mov r9d, 0x16257
lea r8, str.misuse
mov qword [rsp + 0x20], rdi
lea rdx, str._s_at_line__d_of___.10s_
mov ecx, reloc.WS2_32.dll_setsockopt
call fcn.140139330
jmp 0x14017d3fa
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14017dc02
call qword [0x14035f540]
cmp qword [r13 + 0xb8], 0
jle 0x14017dc17
mov rdx, r13
mov rcx, rbx
call fcn.140190b10
mov rcx, r13
call fcn.14020e410
mov rcx, r13
mov edi, eax
call fcn.1402008f0
cmp byte [rbx + 0x67], 0
jne 0x14017dc33
test edi, edi
je 0x14017dc3d
mov edx, edi
mov rcx, rbx
call fcn.140152fc0
mov rcx, rbx
call fcn.1401e1900
mov rbx, qword [rbp - 0x71]
movaps xmm6, xmmword [rsp + 0xc0]
mov r13, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xb0]
mov rax, qword [rbp + 0x6f]
mov edi, 0
cmp rbx, qword [rbp - 0x51]
sete dil
mov dword [rax], edi
mov eax, r12d
add rsp, 0xe8
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret