Function at 0x140059e34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rcx
mov rbp, r8
mov rcx, qword [rcx + 0x180]
test rcx, rcx
je 0x14005a17e
cmp qword [r8 + 8], 0
jne 0x14005a17e
lea r8, [rsp + 0x30]
mov rdx, rbp
call fcn.140059d70
mov rsi, rax
test rax, rax
je 0x14005a17e
mov rdx, qword [rax + 0x18]
or r13d, 0xffffffff
mov rdi, qword [r14]
mov rcx, r14
mov dword [rsp + 0x80], r13d
test rdx, rdx
je 0x140059eb4
mov r8, qword [rax]
call fcn.14000a098
mov eax, 2
jmp 0x14005a180
mov rdx, rbp
call fcn.140059d48
test eax, eax
jne 0x140059eaa
lea edx, [rax + 0x78]
mov rcx, rdi
call fcn.14000778c
mov r15, rax
test rax, rax
je 0x140059eaa
mov rbx, qword [rsi + 0x20]
test rbx, rbx
jne 0x140059f18
lea edx, [rbx + 0x14]
mov rcx, rdi
call fcn.14000778c
mov qword [rsi + 0x20], rax
mov rbx, rax
test rax, rax
je 0x140059ff3
mov r8, rax
lea rdx, [fcn.140007594]
mov rcx, r14
call fcn.1400542b8
test rax, rax
je 0x140059ff3
mov cl, byte [rsi + 0x28]
mov byte [rbx + 0x12], cl
mov qword [rbp + 0x20], r15
mov r12d, 1
mov dword [r15 + 0x3c], r12d
mov rcx, rdi
mov rdx, qword [rsi]
call fcn.1400079bc
or dword [r15 + 0x40], 0x4200
xor r8d, r8d
mov qword [r15], rax
mov rcx, rdi
mov word [r15 + 0x44], r13w
mov word [r15 + 0x4a], 0xc8
mov rdx, qword [rsi + 0x10]
call fcn.1400364dc
mov qword [rbp + 0x28], rax
cmp byte [rdi + 0x63], 0
jne 0x140059eaa
bts dword [rbp + 0x40], 7
lea edi, [r12 + 1]
mov qword [rbp + 0x68], rbx
add dword [rbx], r12d
cmp dword [rbx], edi
jl 0x140059f84
cmp byte [rbx + 0x12], r12b
jne 0x140059f84
mov byte [rbx + 0x12], 0
mov rbx, qword [rbp + 0x28]
mov edx, 0x2000
mov rbp, rbx
mov cl, byte [rbx]
lea eax, [rcx + 0x7b]
cmp al, r12b
jbe 0x14005a003
and dword [rsp + 0x98], 0
mov r12, qword [rsp + 0x30]
lea rax, str.circular_reference:__s
mov qword [rsi + 0x18], rax
mov r13, qword [r14 + 0x180]
mov qword [r14 + 0x180], r12
test dword [rbx + 4], edx
je 0x14005a0c1
mov rax, qword [rbx + 0x68]
mov rdx, rbp
mov rcx, qword [rsp + 0x88]
mov qword [rbp + 0x68], rax
call fcn.140032620
and qword [rbp + 0x68], 0
mov rbp, qword [rsp + 0x88]
jmp 0x14005a0d4
mov rdx, r15
mov rcx, rdi
call fcn.140007594
jmp 0x140059eaa
mov dword [rsp + 0x98], r12d
mov al, cl
cmp al, cl
jne 0x140059fa2
mov r13, qword [rbp + 0x28]
xor r12d, r12d
cmp dword [r13], r12d
jle 0x14005a091
lea r11, [r13 + 0x18]
cmp qword [r11 - 8], 0
jne 0x14005a082
mov rcx, qword [r11]
test rcx, rcx
je 0x14005a082
mov rdx, qword [rsi]
call fcn.14000a1d0
mov edx, 0x2000
test eax, eax
jne 0x14005a082
mov qword [r11 + 0x10], r15
inc dword [r15 + 0x3c]
or dword [r11 + 0x30], 0x20
mov eax, dword [rbp + 4]
test edx, eax
jne 0x14005a0a8
or eax, edx
mov dword [rbp + 4], eax
mov eax, dword [rsp + 0x80]
test eax, eax
jns 0x14005a07e
mov eax, dword [r14 + 0x34]
mov dword [rsp + 0x80], eax
inc eax
mov dword [r14 + 0x34], eax
mov eax, dword [rsp + 0x80]
mov dword [r11 + 0x34], eax
inc r12d
add r11, 0x70
cmp r12d, dword [r13]
jl 0x14005a022
mov cl, byte [rbx]
test dword [rbp + 4], edx
je 0x140059fa2
mov rax, qword [rbp + 0x50]
mov rbp, rax
mov al, byte [rax]
jmp 0x14005a00d
mov r8, qword [rsi]
lea rdx, str.multiple_references_to_recursive_table:__s
mov rcx, r14
call fcn.14000a098
mov eax, edi
jmp 0x14005a180
mov rbp, qword [rsp + 0x88]
mov rdx, rbx
mov rcx, rbp
call fcn.140032620
mov qword [r14 + 0x180], r12
mov rdx, rbx
mov rax, qword [rbx + 0x50]
jmp 0x14005a0eb
mov rdx, rax
mov rax, qword [rax + 0x50]
test rax, rax
jne 0x14005a0e4
mov rax, qword [rsi + 8]
mov rdx, qword [rdx + 0x20]
test rax, rax
je 0x14005a126
test rdx, rdx
je 0x14005a123
mov ecx, dword [rax]
cmp dword [rdx], ecx
je 0x14005a123
mov r9d, dword [rdx]
lea rdx, str.table__s_has__d_values_for__d_columns
mov r8, qword [rsi]
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.14000a098
jmp 0x14005a172
mov rdx, rax
lea r9, [r15 + 8]
mov rcx, r14
lea r8, [r15 + 0x46]
call fcn.140056b90
cmp dword [rsp + 0x98], 0
je 0x14005a168
test dword [rbx + 4], 0x2000
lea rcx, str.recursive_reference_in_a_subquery:__s
lea rax, str.multiple_recursive_references:__s
mov rdx, rbx
cmove rax, rcx
mov rcx, rbp
mov qword [rsi + 0x18], rax
call fcn.140032620
and qword [rsi + 0x18], 0
mov edi, 1
mov qword [r14 + 0x180], r13
jmp 0x14005a0ba
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret