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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
dec dword [rcx + 0x44]
mov eax, dword [r8 + 0x1c]
mov rbp, qword [rsp + 0xd0]
movzx r14d, byte [rbp]
mov rsi, qword [r8]
mov rbx, qword [rcx + 0x10]
mov dword [rsp + 0x3c], eax
mov eax, dword [rcx + 0x44]
mov r15d, r9d
mov dword [rsp + 0x40], eax
xor eax, eax
mov r12, rdx
mov r13d, eax
mov eax, dword [rbp + 4]
lea r9, [0x180144af4]
mov dword [rsp + 0xb8], eax
mov rax, qword [rdx + 0x20]
mov rdi, rcx
add rax, 8
cmp dword [r8 + 8], r13d
lea r8, str.USE_TEMP_B_TREE_FOR__sORDER_BY
mov qword [rsp + 0x50], rax
lea rax, str.RIGHT_PART_OF
mov dword [rsp + 0x48], r14d
cmovg r9, rax
xor edx, edx
call fcn.180035b70
mov rax, qword [rsp + 0xc0]
mov r9d, dword [rax + 0x14]
test r9d, r9d
je 0x18008b16f
mov r8d, dword [rax + 0x10]
mov edx, 0xa
mov rcx, rbx
mov dword [rsp + 0x20], r13d
call fcn.180035470
mov edx, dword [rsp + 0x3c]
mov rcx, rbx
call fcn.180035590
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rax + 0x14]
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
not edx
jns 0x18008b157
mov r8d, edx
mov rdx, rbx
call fcn.180035ec0
jmp 0x18008b167
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov rax, qword [rsp + 0xc0]
mov r11d, dword [rax + 0xc]
mov dword [rsp + 0x30], r11d
cmp r14d, 9
je 0x18008b205
cmp r14d, 0xd
je 0x18008b205
cmp r14d, 0xa
je 0x18008b20b
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18008b19f
inc dword [rdi + 0x38]
mov r10d, dword [rdi + 0x38]
jmp 0x18008b1af
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r10d, dword [rdi + rax*4 + 0xe0]
mov dword [rsp + 0xc8], r10d
cmp r14d, 0xc
je 0x18008b1d6
cmp r14d, 0xe
je 0x18008b1d6
mov edx, r15d
mov rcx, rdi
call fcn.18005bcb0
xor r8d, r8d
mov r14d, eax
jmp 0x18008b253
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18008b1ed
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
xor r8d, r8d
mov r15d, r8d
jmp 0x18008b253
dec al
xor r8d, r8d
movzx eax, al
mov r15d, r8d
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xe0]
jmp 0x18008b253
cmp r14d, 0xa
jne 0x18008b244
cmp dword [r12 + 0xc], r13d
je 0x18008b244
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x18008b2d0
xor r8d, r8d
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0x4b]
mov dword [rsp + 0x20], r13d
call fcn.180035350
mov r11d, dword [rsp + 0x30]
xor r8d, r8d
mov r14d, dword [rbp + 0xc]
mov dword [rsp + 0xc8], r8d
mov rcx, qword [rsp + 0xc0]
mov ebp, dword [rsi]
sub ebp, dword [rcx + 8]
test byte [rcx + 0x24], 1
je 0x18008b361
mov r12d, dword [rdi + 0x34]
inc dword [rdi + 0x38]
mov esi, dword [rdi + 0x38]
lea eax, [r12 + 1]
mov dword [rsp + 0x38], r12d
mov dword [rdi + 0x34], eax
cmp dword [rcx + 0x14], r13d
je 0x18008b297
mov edx, 0xf
mov rcx, rbx
call fcn.180035400
mov r13d, eax
lea ecx, [rbp + r15 + 1]
mov r9d, esi
mov r8d, r12d
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov edx, 0x79
call fcn.180035470
test r13d, r13d
je 0x18008b317
mov rcx, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rcx + 0x67], 0
je 0x18008b302
lea rax, [0x180181dc0]
jmp 0x18008b314
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r8d, r8d
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov qword [rax + rcx*8], 0x4b
jmp 0x18008b247
movsxd rax, r13d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r13d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x3c]
xor eax, eax
lea edx, [rax + 0x22]
mov rcx, rbx
mov r8d, r13d
mov dword [rsp + 0x20], eax
call fcn.180035470
mov r9d, esi
inc eax
mov r8d, r13d
mov edx, 0x85
mov rcx, rbx
mov dword [rsp + 0x20], r12d
mov dword [rsp + 0x34], eax
call fcn.180035470
xor r9d, r9d
mov r13d, r12d
mov esi, r9d
jmp 0x18008b3e5
mov r9d, dword [rsp + 0x3c]
mov dword [rsp + 0x20], r8d
mov edx, 0x23
mov r8d, r11d
mov rcx, rbx
call fcn.180035470
mov r8d, dword [r12 + 0xc]
mov esi, 1
inc eax
mov dword [rsp + 0x34], eax
test r8d, r8d
jle 0x18008b3a4
mov r9d, dword [rsp + 0x40]
lea edx, [rsi + 0x3a]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.180035470
cmp dword [r12 + 0xc], 0
mov r13d, dword [rsp + 0x30]
mov dword [rsp + 0x38], r13d
jle 0x18008b3e2
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [r12 + 8]
cmp dword [rbx + 0x94], ecx
jg 0x18008b445
xor eax, eax
mov r8d, edx
or r9d, 0xffffffff
lea edx, [rax + 0x56]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.180035350
xor r9d, r9d
mov r8, qword [rsp + 0x50]
lea edx, [rsi + rbp]
lea esi, [rdx - 1]
mov dword [rsp + 0x44], edx
test r15d, r15d
jle 0x18008b411
lea rax, [r8 + 0x18]
mov ecx, r15d
cmp word [rax], 0
jne 0x18008b408
inc esi
add rax, 0x20
dec rcx
jne 0x18008b400
lea eax, [r15 - 1]
movsxd rbp, eax
test eax, eax
js 0x18008b4fc
mov edi, dword [rsp + 0x38]
lea r12d, [rax + r14]
mov rax, rbp
shl rax, 5
lea r13, [rax + r8 + 0x18]
movzx eax, word [r13]
test ax, ax
je 0x18008b47e
movzx edx, ax
dec edx
jmp 0x18008b482
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor r9d, r9d
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], 0xffffffff
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x56
jmp 0x18008b3e5
mov edx, esi
dec esi
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008b4ae
mov r9d, edx
mov r8d, edi
mov rcx, rbx
mov edx, 0x5e
mov dword [rsp + 0x20], r12d
call fcn.180035350
xor r9d, r9d
jmp 0x18008b4db
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x5e
dec r12d
sub r13, 0x20
dec rbp
jns 0x18008b434
mov rdi, qword [rsp + 0xb0]
mov r13d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
mov r12d, dword [rsp + 0x48]
mov ecx, r12d
sub ecx, 0xa
je 0x18008b566
dec ecx
je 0x18008b8c7
dec ecx
je 0x18008b777
sub ecx, 2
je 0x18008b777
dec ecx
mov rsi, qword [rsp + 0xd0]
je 0x18008b623
movsxd rcx, dword [rbx + 0x90]
cmp r12d, 9
jne 0x18008b5d2
mov edx, dword [rsi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x18008b5a2
mov dword [rsp + 0x20], r9d
mov r8d, edx
mov r9d, r15d
lea edx, [r12 + 0x4b]
mov rcx, rbx
call fcn.180035350
mov ebp, dword [rsp + 0xc8]
xor esi, esi
test ebp, ebp
je 0x18008ba4b
cmp r12d, 0xb
jne 0x18008ba1b
cmp r15d, 1
je 0x18008ba1b
cmp r15d, dword [rdi + 0x28]
jle 0x18008ba36
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r14d
jmp 0x18008ba36
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x54
jmp 0x18008b566
mov edx, dword [rsi + 4]
cmp dword [rbx + 0x94], ecx
jg 0x18008b5f1
mov dword [rsp + 0x20], r9d
xor r9d, r9d
mov r8d, edx
lea edx, [r9 + 0xc]
jmp 0x18008b55e
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0xc
jmp 0x18008b566
movzx eax, byte [rdi + 0x1f]
mov ebp, dword [rsi + 8]
test al, al
jne 0x18008b636
inc dword [rdi + 0x38]
mov esi, dword [rdi + 0x38]
jmp 0x18008b645
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov esi, dword [rdi + rax*4 + 0xe0]
movsxd rcx, dword [rbx + 0x90]
mov eax, r9d
test ebp, ebp
sets al
mov edx, r15d
sub edx, eax
lea r8d, [rax + r14]
cmp dword [rbx + 0x94], ecx
jg 0x18008b67e
mov r9d, edx
mov rcx, rbx
mov edx, 0x61
mov dword [rsp + 0x20], esi
call fcn.180035350
xor r9d, r9d
jmp 0x18008b6ab
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x61
movsxd rcx, dword [rbx + 0x90]
test ebp, ebp
jns 0x18008b711
cmp dword [rbx + 0x94], ecx
jg 0x18008b6d8
mov r8d, dword [rsp + 0xb8]
mov dword [rsp + 0x20], r14d
mov r9d, esi
mov edx, pe_nt_image_headers64
jmp 0x18008b55e
mov edx, dword [rsp + 0xb8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], pe_nt_image_headers64
jmp 0x18008b566
cmp dword [rbx + 0x94], ecx
jg 0x18008b73f
mov r8d, dword [rsp + 0xb8]
mov r9d, esi
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r14d
call fcn.1800353b0
jmp 0x18008b566
mov edx, dword [rsp + 0xb8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r14d
mov dword [rax + rcx*8 + 0x10], ebp
mov dword [rax + rcx*8], 0xfd8a
jmp 0x18008b566
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008b7a3
mov r9d, edx
mov r8d, r13d
mov rcx, rbx
mov edx, 0x5e
mov dword [rsp + 0x20], r14d
call fcn.180035350
xor r9d, r9d
jmp 0x18008b7d1
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r13d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x5e
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0xb8]
cmp dword [rbx + 0x94], ecx
jg 0x18008b816
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0xc8]
mov edx, 0x7f
mov rcx, rbx
call fcn.180035350
mov edx, dword [rsp + 0xc8]
mov r8d, dword [rsp + 0xb8]
xor r9d, r9d
jmp 0x18008b84b
mov edx, dword [rsp + 0xc8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x7f
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008b870
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov rcx, rbx
mov edx, pe_nt_image_headers64
call fcn.180035350
jmp 0x18008b89e
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], pe_nt_image_headers64
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x18008b566
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov edx, 8
mov word [rax + rcx*8 - 0x16], dx
jmp 0x18008b566
mov rsi, qword [rsp + 0xd0]
movsxd rdx, dword [rbx + 0x90]
mov ebp, dword [rsp + 0xc8]
mov rsi, qword [rsi + 0x18]
cmp dword [rbx + 0x94], edx
jg 0x18008b904
mov r9d, r15d
mov r8d, r14d
mov edx, 0x61
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.180035350
mov edx, eax
jmp 0x18008b932
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov dword [rax + rcx*8], 0x61
mov rcx, qword [rbx]
cmp byte [rcx + 0x67], 0
je 0x18008b94e
cmp r15d, 0xfffffff5
je 0x18008b9ac
mov r8, rsi
mov edx, r15d
call fcn.180036520
jmp 0x18008b9ac
test edx, edx
jns 0x18008b95a
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
test r15d, r15d
jns 0x18008b99e
cmp byte [rdx + 1], 0
jne 0x18008b99e
cmp r15d, 0xfffffffd
jne 0x18008b986
mov dword [rdx + 0x10], esi
mov byte [rdx + 1], r15b
jmp 0x18008b9ac
test rsi, rsi
je 0x18008b9ac
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], r15b
cmp r15d, 0xfffffff5
jne 0x18008b9ac
inc dword [rsi + 0x18]
jmp 0x18008b9ac
mov r9d, r15d
mov r8, rsi
mov rcx, rbx
call fcn.180036750
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008b9e2
mov r8d, dword [rsp + 0xb8]
mov r9d, ebp
mov edx, 0x8a
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call fcn.1800353b0
jmp 0x18008b56d
mov edx, dword [rsp + 0xb8]
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r14d
mov dword [rax + rcx*8 + 0x10], r15d
mov dword [rax + rcx*8], 0xfd8a
jmp 0x18008b56d
test r14d, r14d
je 0x18008ba36
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18008ba36
movzx eax, al
mov dword [rdi + rax*4 + 0xe0], r14d
inc byte [rdi + 0x1f]
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18008ba4b
movzx eax, al
mov dword [rdi + rax*4 + 0xe0], ebp
inc byte [rdi + 0x1f]
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x40]
mov eax, dword [rcx + 0x48]
not edx
add eax, dword [rcx + 0x44]
jns 0x18008ba6a
mov r8d, edx
mov rdx, rbx
call fcn.180035ec0
jmp 0x18008ba7a
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
mov rdi, qword [rsp + 0xc0]
movsxd rcx, dword [rbx + 0x90]
test byte [rdi + 0x24], 1
je 0x18008bad1
cmp dword [rbx + 0x94], ecx
jg 0x18008bab4
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov edx, 0x25
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.180035350
jmp 0x18008bb2a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x25
jmp 0x18008bb11
cmp dword [rbx + 0x94], ecx
jg 0x18008baf6
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov edx, 0x27
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.180035350
jmp 0x18008bb2a
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x27
mov edx, dword [rsp + 0x30]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x34]
mov qword [rax + rcx*8 + 0x10], rsi
mov dword [rax + rcx*8 + 0xc], esi
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x18008bb85
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008bb58
xor r9d, r9d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x43]
mov dword [rsp + 0x20], esi
call fcn.180035350
jmp 0x18008bb85
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], rsi
mov dword [rax + rcx*8], 0x43
mov rcx, qword [rbx + 0x18]
mov edx, dword [rsp + 0x3c]
mov eax, dword [rcx + 0x48]
not edx
add eax, dword [rcx + 0x44]
jns 0x18008bba4
mov r8d, edx
mov rdx, rbx
call fcn.180035ec0
jmp 0x18008bbb4
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret