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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
dec dword [rcx + 0x44]
mov eax, dword [r8 + 0x1c]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [r8]
mov dword [rsp + 0x34], eax
mov eax, dword [rcx + 0x44]
movzx r14d, byte [rbp]
mov rdi, rcx
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp + 4]
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rdx + 0x20]
mov r15d, r9d
add rax, 8
cmp dword [r8 + 8], ecx
mov r12, r8
mov qword [rsp + 0x48], rax
lea rax, str.RIGHT_PART_OF
mov r13, rdx
mov dword [rsp + 0x38], ecx
lea r9, [0x180109eb2]
lea r8, str.USE_TEMP_B_TREE_FOR__sORDER_BY
cmovg r9, rax
mov rcx, rdi
xor edx, edx
mov dword [rsp + 0x40], r14d
call fcn.180085410
mov r9d, dword [r12 + 0x14]
xor edx, edx
test r9d, r9d
je 0x1800bd12f
mov r8d, dword [r12 + 0x10]
mov dword [rsp + 0x20], edx
mov rcx, rsi
mov edx, 0xa
call fcn.180085048
mov r9d, dword [rsp + 0x34]
xor r11d, r11d
lea edx, [r11 + 9]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], r11d
call fcn.180085048
mov edx, dword [r12 + 0x14]
mov rcx, rsi
call fcn.180085668
xor edx, edx
mov r11d, dword [r12 + 0xc]
mov dword [rsp + 0xa8], r11d
cmp r14d, 9
je 0x1800bd1bd
cmp r14d, 0xd
je 0x1800bd1bd
cmp r14d, 0xa
je 0x1800bd1c3
mov al, byte [rdi + 0x1f]
test al, al
jne 0x1800bd15e
inc dword [rdi + 0x38]
mov r10d, dword [rdi + 0x38]
jmp 0x1800bd16e
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r10d, dword [rdi + rax*4 + 0xe0]
mov dword [rsp + 0xa0], r10d
cmp r14d, 0xc
je 0x1800bd194
cmp r14d, 0xe
je 0x1800bd194
mov edx, r15d
mov rcx, rdi
call fcn.18009e114
xor edx, edx
mov r12d, eax
jmp 0x1800bd1f5
mov al, byte [rdi + 0x1f]
test al, al
jne 0x1800bd1a4
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x1800bd1b4
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xe0]
mov dword [rsp + 0xb8], edx
jmp 0x1800bd1f5
cmp r14d, 0xa
jne 0x1800bd1ea
cmp dword [r13 + 0xc], edx
je 0x1800bd1ea
mov r9d, dword [rbp + 0xc]
xor r8d, r8d
mov dword [rsp + 0x20], edx
lea edx, [r8 + 0x4b]
mov rcx, rsi
call fcn.180085048
mov r11d, dword [rsp + 0xa8]
xor edx, edx
mov r12d, dword [rbp + 0xc]
mov dword [rsp + 0xa0], edx
mov rcx, qword [rsp + 0xb0]
mov ebp, dword [rbx]
sub ebp, dword [rcx + 8]
test byte [rcx + 0x24], 1
je 0x1800bd2bf
mov r15d, dword [rdi + 0x34]
inc dword [rdi + 0x38]
mov ebx, dword [rdi + 0x38]
lea eax, [r15 + 1]
mov dword [rdi + 0x34], eax
cmp dword [rcx + 0x14], edx
je 0x1800bd23d
xor r9d, r9d
mov dword [rsp + 0x20], edx
xor r8d, r8d
lea edx, [r9 + 0xf]
mov rcx, rsi
call fcn.180085048
mov r13d, eax
jmp 0x1800bd242
mov r13d, dword [rsp + 0x38]
mov eax, dword [rsp + 0xb8]
mov r9d, ebx
mov r8d, r15d
lea ecx, [rbp + rax + 1]
mov edx, 0x79
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.180085048
xor r10d, r10d
test r13d, r13d
je 0x1800bd277
mov edx, r13d
mov rcx, rsi
call fcn.180085860
mov r13d, dword [rsp + 0xa8]
mov r9d, dword [rsp + 0x34]
mov edx, 0x22
mov rcx, rsi
mov r8d, r13d
mov dword [rsp + 0x20], r10d
call fcn.180085048
mov r9d, ebx
mov r8d, r13d
inc eax
mov edx, 0x85
mov rcx, rsi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], r15d
call fcn.180085048
xor r9d, r9d
mov ebx, r9d
jmp 0x1800bd335
mov r9d, dword [rsp + 0x34]
mov dword [rsp + 0x20], edx
mov r8d, r11d
mov edx, 0x23
mov rcx, rsi
call fcn.180085048
mov r8d, dword [r13 + 0xc]
xor r9d, r9d
inc eax
mov dword [rsp + 0x38], eax
test r8d, r8d
jle 0x1800bd307
mov r9d, dword [rsp + 0x3c]
mov edx, 0x3b
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.180085048
xor r9d, r9d
mov r15d, dword [rsp + 0xa8]
mov ebx, 1
cmp dword [r13 + 0xc], r9d
jle 0x1800bd335
mov r8d, dword [r13 + 8]
mov dword [rsp + 0x20], r9d
lea edx, [rbx + 0x55]
or r9d, 0xffffffff
mov rcx, rsi
call fcn.180085048
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea edx, [rbx + rbp]
movsxd rbp, dword [rsp + 0xb8]
mov dword [rsp + 0x44], edx
lea r13d, [rdx - 1]
mov rcx, rbp
test ebp, ebp
jle 0x1800bd36a
lea rax, [r8 + 0x18]
cmp word [rax], r9w
jne 0x1800bd361
inc r13d
add rax, 0x20
dec rcx
jne 0x1800bd358
lea eax, [rbp - 1]
movsxd rbx, eax
test eax, eax
js 0x1800bd3cf
lea r14d, [rax + r12]
mov rax, rbx
shl rax, 5
lea rbp, [rax + r8 + 0x18]
cmp word [rbp], r9w
je 0x1800bd395
movzx r9d, word [rbp]
dec r9d
jmp 0x1800bd39b
mov r9d, r13d
dec r13d
mov r8d, r15d
mov edx, 0x5e
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.180085048
dec r14d
sub rbp, 0x20
xor r9d, r9d
dec rbx
jns 0x1800bd384
mov r14d, dword [rsp + 0x40]
mov edx, dword [rsp + 0x44]
mov ebp, dword [rsp + 0xb8]
mov ecx, r14d
sub ecx, 0xa
je 0x1800bd41a
dec ecx
je 0x1800bd574
dec ecx
je 0x1800bd4ef
sub ecx, 2
je 0x1800bd4ef
dec ecx
mov rbx, qword [rsp + 0xc0]
je 0x1800bd463
mov dword [rsp + 0x20], r9d
mov rcx, rsi
cmp r14d, 9
jne 0x1800bd456
mov r8d, dword [rbx + 0xc]
mov r9d, ebp
lea edx, [r14 + 0x4b]
call fcn.180085048
mov r15d, dword [rsp + 0xa0]
mov r13d, dword [rsp + 0xb8]
mov r9d, 8
test r15d, r15d
je 0x1800bd602
cmp r14d, 0xb
jne 0x1800bd5d3
mov r8d, r13d
mov edx, r12d
mov rcx, rdi
call fcn.18009e168
jmp 0x1800bd5ed
mov r8d, dword [rbx + 4]
xor r9d, r9d
lea edx, [r9 + 0xc]
jmp 0x1800bd415
mov al, byte [rdi + 0x1f]
mov ebp, dword [rbx + 8]
test al, al
jne 0x1800bd475
inc dword [rdi + 0x38]
mov ebx, dword [rdi + 0x38]
jmp 0x1800bd484
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0xe0]
mov r13d, dword [rsp + 0xb8]
mov eax, r9d
test ebp, ebp
sets al
mov r9d, r13d
mov edx, 0x61
lea r8d, [rax + r12]
mov rcx, rsi
sub r9d, eax
mov dword [rsp + 0x20], ebx
call fcn.180085048
mov r8d, dword [rsp + 0x30]
mov r9d, ebx
mov rcx, rsi
test ebp, ebp
jns 0x1800bd4da
mov edx, 0x80
mov dword [rsp + 0x20], r12d
call fcn.180085048
mov r15d, dword [rsp + 0xa0]
jmp 0x1800bd42a
mov edx, 0x8a
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.1800850c4
jmp 0x1800bd4cd
mov r9d, edx
mov r8d, r15d
mov rcx, rsi
mov edx, 0x5e
mov dword [rsp + 0x20], r12d
call fcn.180085048
mov r15d, dword [rsp + 0xa0]
mov ebx, dword [rsp + 0x30]
xor ebp, ebp
mov r9d, r15d
mov r8d, ebx
lea edx, [rbp + 0x7f]
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.180085048
mov r9d, r12d
mov r8d, ebx
mov edx, 0x80
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.180085048
movsxd r11, dword [rsi + 0x90]
test r11d, r11d
jle 0x1800bd422
mov rax, qword [rsi + 0x88]
mov r13d, dword [rsp + 0xb8]
lea rcx, [r11 + r11*2]
lea r9d, [rbp + 8]
mov word [rax + rcx*8 - 0x16], r9w
jmp 0x1800bd430
mov rbx, qword [rsp + 0xc0]
mov r15d, dword [rsp + 0xa0]
mov r9d, ebp
mov rbx, qword [rbx + 0x18]
mov r8d, r12d
mov edx, 0x61
mov rcx, rsi
mov dword [rsp + 0x20], r15d
call fcn.180085048
mov r9d, ebp
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.180085b5c
mov r8d, dword [rsp + 0x30]
mov r9d, r15d
mov edx, 0x8a
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
call fcn.1800850c4
jmp 0x1800bd422
test r12d, r12d
je 0x1800bd5ed
cmp byte [rdi + 0x1f], r9b
jae 0x1800bd602
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xe0], r12d
inc byte [rdi + 0x1f]
cmp byte [rdi + 0x1f], r9b
jae 0x1800bd602
movzx eax, byte [rdi + 0x1f]
mov dword [rdi + rax*4 + 0xe0], r15d
inc byte [rdi + 0x1f]
mov edx, dword [rsp + 0x3c]
mov rcx, rsi
call fcn.180085668
mov rbx, qword [rsp + 0xb0]
mov r9d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0xa8]
xor r11d, r11d
test byte [rbx + 0x24], 1
mov rcx, rsi
mov dword [rsp + 0x20], r11d
lea edx, [r11 + 0x25]
jne 0x1800bd63c
lea edx, [r11 + 0x27]
call fcn.180085048
mov r8d, dword [rbx + 0x10]
xor eax, eax
test r8d, r8d
je 0x1800bd65e
lea edx, [rax + 0x43]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.180085048
mov edx, dword [rsp + 0x34]
mov rcx, rsi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.180085668