Function at 0x436940
Capabilities:
Reference sql statements

Disassembly:
lea r12, [rsp - 0x4d8]
cmp r12, qword [r14 + 0x10]
jbe 0x436df7
sub rsp, 0x558
mov qword [rsp + 0x550], rbp
lea rbp, [rsp + 0x550]
cmp qword [r14 + 0x30], rax
je 0x436de5
mov rcx, rax
xor eax, eax
mov edx, 1
lock cmpxchg dword [rcx + 0x330], edx
sete dl
test dl, dl
je 0x436d6b
mov qword [rsp + 0x548], rcx
lea rax, [rcx + 0x308]
mov qword [rsp + 0x538], rax
nop
call dbg.runtime.lock2
mov rcx, qword [rsp + 0x548]
cmp qword [rcx + 0x310], 0
jne 0x4369fb
nop
nop
mov rax, qword [rsp + 0x538]
call dbg.runtime.unlock2
xor ecx, ecx
mov rdx, qword [rsp + 0x548]
xchg dword [rdx + 0x330], ecx
mov ecx, 1
lock xadd dword [rdx + 0x300], ecx
mov rbp, qword [rsp + 0x550]
add rsp, 0x558
ret
mov qword [rsp + 0x48], 0
mov rax, qword [sym.DuplicateHandle]
mov rdx, qword [rcx + 0x310]
lea rbx, [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 8], 0xffffffffffffffff
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0xffffffffffffffff
mov qword [rsp + 0x20], rbx
movups xmmword [rsp + 0x28], xmm15
mov qword [rsp + 0x38], 2
call dbg.runtime.stdcall7
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x40], 0
je 0x436d88
nop
nop
mov rax, qword [rsp + 0x538]
call dbg.runtime.unlock2
movups xmmword [rsp + 0x59], xmm15
lea rdi, [rsp + 0x68]
mov ecx, 0x9a
xor eax, eax
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x68]
and rcx, 0xfffffffffffffff0
mov qword [rsp + 0x540], rcx
mov dword [rcx + 0x30], 0x100001
nop
nop
lea rax, [0x00cc4078]
call dbg.runtime.lock2
mov rcx, qword [rsp + 0x48]
mov rdx, qword [sym.SuspendThread]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call dbg.runtime.stdcall1
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x10]
cmp ecx, 0xffffffff
je 0x436d02
mov rax, qword [rsp + 0x48]
mov rcx, qword [sym.GetThreadContext]
mov rdx, qword [rsp + 0x540]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rdx
call dbg.runtime.stdcall2
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
nop
nop
lea rax, [0x00cc4078]
call dbg.runtime.unlock2
mov rax, qword [rsp + 0x540]
mov rcx, qword [rax + 0x98]
mov rdx, qword [rsp + 0x548]
mov rbx, qword [rdx]
test rbx, rbx
je 0x436b66
cmp qword [rbx], rcx
jae 0x436b66
nop
cmp qword [rbx + 8], rcx
ja 0x436ba0
mov rsi, qword [rdx + 0x50]
test rsi, rsi
je 0x436b7f
cmp qword [rsi], rcx
jae 0x436b7f
cmp qword [rsi + 8], rcx
jbe 0x436b7f
mov rbx, rsi
jmp 0x436ba0
mov rsi, qword [rdx + 0x90]
test rsi, rsi
je 0x436b9b
cmp qword [rsi], rcx
jae 0x436b9b
cmp qword [rsi + 8], rcx
jbe 0x436b9b
mov rbx, rsi
jmp 0x436ba0
xor ebx, ebx
nop dword [rax]
test rbx, rbx
je 0x436be6
cmp byte [rbx + 0xb1], 0
jne 0x436bc9
mov rsi, qword [rbx + 0x30]
mov rsi, qword [rsi + 0xa0]
test rsi, rsi
je 0x436be2
test byte [rsi], al
cmp byte [rsi + 0x22c8], 0
je 0x436bdc
mov esi, dword [rbx + 0x90]
btr esi, 0xc
cmp esi, 2
sete sil
jmp 0x436be8
xor esi, esi
nop
jmp 0x436be8
xor esi, esi
jmp 0x436be8
xor esi, esi
test sil, sil
je 0x436c81
mov rdx, qword [rax + 0xf8]
mov rcx, qword [rax + 0x98]
xor edi, edi
mov rax, rbx
mov rbx, rdx
call dbg.runtime.isAsyncSafePoint
test al, al
je 0x436c79
mov rax, qword [rsp + 0x540]
mov rcx, qword [rax + 0x98]
add rcx, 0xfffffffffffffff8
mov rdx, rcx
lea rsi, [0x00468280]
nop
mov qword [rcx], rbx
nop
mov qword [rax + 0x98], rdx
nop
mov qword [rax + 0xf8], rsi
mov rcx, qword [rsp + 0x48]
mov rdx, qword [sym.SetThreadContext]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
nop dword [rax + rax]
call dbg.runtime.stdcall2
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x548]
xor eax, eax
xchg dword [rdx + 0x330], eax
mov eax, 1
lock xadd dword [rdx + 0x300], eax
mov rax, qword [rsp + 0x48]
mov rcx, qword [sym.ResumeThread]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call dbg.runtime.stdcall1
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x48]
mov rcx, qword [sym.CloseHandle]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call dbg.runtime.stdcall1
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rbp, qword [rsp + 0x550]
add rsp, 0x558
ret
nop
nop
lea rax, [0x00cc4078]
call dbg.runtime.unlock2
mov rcx, qword [rsp + 0x48]
mov rdx, qword [sym.CloseHandle]
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
call dbg.runtime.stdcall1
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
xor ecx, ecx
mov rdx, qword [rsp + 0x548]
xchg dword [rdx + 0x330], ecx
mov ecx, 1
lock xadd dword [rdx + 0x300], ecx
mov rbp, qword [rsp + 0x550]
add rsp, 0x558
ret
mov eax, 1
lock xadd dword [rcx + 0x300], eax
mov rbp, qword [rsp + 0x550]
add rsp, 0x558
ret
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x50], rax
call dbg.runtime.printlock
lea rax, [0x009812e2]
mov ebx, 0x30
call dbg.runtime.printstring
mov rax, qword [rsp + 0x50]
call dbg.runtime.printuint
call dbg.runtime.printnl
call fcn.0043ada0
lea rax, [0x0097d8b3]
mov ebx, 0x28
nop
call dbg.runtime.throw
lea rax, [0x0096cb5b]
mov ebx, 0xc
call dbg.runtime.throw
nop
mov qword [rsp + 8], rax
nop dword [rax]
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
jmp dbg.runtime.preemptM