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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r13, qword [rcx]
mov rsi, rcx
mov r14, qword [rcx + 8]
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r14
mov rax, qword [r13]
mov rdi, qword [r13 + 0x10]
mov qword [rsp + 0x98], rax
movzx eax, byte [rcx + 0x42]
mov r12d, eax
sub r12, 1
lea r15d, [rax - 1]
mov dword [rsp + 0x80], r15d
js 0x18006b177
lea rax, [r12 + r12*2]
shl rax, 5
lea rbx, [rcx + 0x3d4]
add rbx, rax
cmp byte [rbx - 7], 0xaa
mov r13, qword [rbx + 0x14]
je 0x18006af51
xor r14d, r14d
cmp byte [rsi + 0x47], 2
jne 0x18006aec4
movzx eax, byte [rsi + 0x42]
dec eax
cmp r15d, eax
jne 0x18006aec4
test dword [r13 + 0x28], 0x200
je 0x18006aec4
mov rax, qword [r13 + 0x20]
test byte [rax + 0x64], 0x80
je 0x18006aec4
movzx ebp, word [r13 + 0x1e]
test ebp, ebp
je 0x18006aec4
mov rax, qword [rax + 0x10]
cmp word [rax + rbp*2], 0x24
jl 0x18006aec4
mov rax, qword [rsp + 0x88]
mov r15d, dword [rax + 0x38]
inc r15d
mov r8d, dword [rbx - 0x34]
lea eax, [r14 + r15]
mov r9d, r14d
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rdi
call fcn.180022394
inc r14d
cmp r14d, ebp
jl 0x18006ae43
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r15d
mov ecx, dword [rdx + 0x38]
inc ecx
add ecx, ebp
mov dword [rdx + 0x38], ecx
mov edx, 0x19
cmp byte [rbx - 7], 4
mov rcx, rdi
mov r8d, dword [rbx - 0x34]
lea eax, [rdx - 3]
cmove edx, eax
xor r9d, r9d
call fcn.1800226cc
and dword [rsp + 0x20], 0
mov edx, 0xb
mov r9d, dword [rbx]
mov rcx, rdi
mov r14d, eax
lea r8d, [rdx - 0xa]
call fcn.180022394
mov r15d, dword [rsp + 0x80]
mov edx, dword [rbx - 0x24]
mov rcx, rdi
call fcn.1800227b0
movzx ecx, byte [rbx - 6]
movzx edx, byte [rbx - 7]
mov r9d, dword [rbx]
mov r8d, dword [rbx - 4]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.180022394
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x18006af09
movzx edx, byte [rbx - 5]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp dword [rbx - 0x18], 0
je 0x18006af36
mov edx, dword [rbx - 0x14]
mov rcx, rdi
call fcn.1800227b0
mov r9d, dword [rbx]
mov edx, 0x31
and dword [rsp + 0x20], 0
dec r9d
mov r8d, dword [rbx - 0x18]
mov rcx, rdi
call fcn.180022394
test r14d, r14d
je 0x18006af5c
mov edx, r14d
mov rcx, rdi
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
jmp 0x18006af5c
mov edx, dword [rbx - 0x24]
mov rcx, rdi
call fcn.1800227b0
test dword [r13 + 0x28], 0x800
je 0x18006b028
cmp dword [rbx + 4], 0
jle 0x18006b028
mov edx, dword [rbx - 0x2c]
mov rcx, rdi
call fcn.1800227b0
mov ebp, dword [rbx + 4]
lea eax, [rbp - 1]
movsxd rcx, eax
mov rax, qword [rbx + 0xc]
lea rdx, [rcx + rcx*4]
lea r14, [rax + rdx*4]
jmp 0x18006b020
mov edx, dword [r14 + 4]
mov rcx, rdi
inc edx
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov al, byte [r14 + 0x10]
cmp al, 0xaa
je 0x18006b003
mov ecx, dword [r14 + 0xc]
test ecx, ecx
je 0x18006afec
mov r9d, dword [rdi + 0x90]
mov edx, 0x1a
mov eax, dword [r14 + 8]
add r9d, 2
mov r8d, dword [rbx - 0x34]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1800226cc
mov al, byte [r14 + 0x10]
and dword [rsp + 0x20], 0
mov rcx, rdi
mov r9d, dword [r14 + 4]
mov r8d, dword [r14]
movzx edx, al
call fcn.180022394
mov edx, dword [r14 + 4]
mov rcx, rdi
dec edx
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
dec ebp
sub r14, 0x14
mov dword [rax + 8], ecx
test ebp, ebp
jg 0x18006af99
mov edx, dword [rbx - 0x30]
mov rcx, rdi
call fcn.1800227b0
mov r9d, dword [rbx - 0x28]
test r9d, r9d
je 0x18006b07b
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0xb]
call fcn.180022394
mov edx, dword [rbx - 0x28]
mov rcx, rdi
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov rcx, rdi
mov edx, dword [rbx - 0x28]
sub edx, 2
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov r9d, dword [rbx - 0xc]
test r9d, r9d
je 0x18006b09d
mov r8d, dword [rbx - 0x10]
mov edx, 0x31
and dword [rsp + 0x20], 0
mov rcx, rdi
shr r8d, 1
call fcn.180022394
mov r8d, dword [rbx - 0x3c]
test r8d, r8d
je 0x18006b14e
mov ebp, dword [r13 + 0x28]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x2f]
call fcn.180022394
mov r14d, eax
test bpl, 0x40
jne 0x18006b0e4
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x38]
mov edx, 0x81
mov rcx, rdi
call fcn.180022394
bt ebp, 9
jb 0x18006b0f7
bt ebp, 0xd
jae 0x18006b110
cmp qword [rbx + 4], 0
je 0x18006b110
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x34]
mov edx, 0x81
mov rcx, rdi
call fcn.180022394
mov al, byte [rbx - 7]
cmp al, 0x42
jne 0x18006b11d
mov r8d, dword [rbx - 4]
jmp 0x18006b120
xor r8d, r8d
mov r9d, dword [rbx - 0x20]
sub al, 0x42
neg al
mov rcx, rdi
sbb edx, edx
and dword [rsp + 0x20], 0
add edx, 0xc
call fcn.180022394
mov edx, r14d
mov rcx, rdi
call fcn.180022da0
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
dec r15d
sub rbx, 0x60
sub r12, 1
mov dword [rsp + 0x80], r15d
jns 0x18006add2
mov r13, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov edx, dword [rsi + 0x38]
mov rcx, rdi
call fcn.1800227b0
mov r12, qword [rsp + 0x98]
xor ebp, ebp
cmp byte [rsi + 0x42], bpl
jbe 0x18006b2ec
lea rbx, [rsi + 0x3e8]
movzx eax, byte [rbx - 0x1c]
imul rcx, rax, 0x70
mov rax, qword [rbx]
test byte [rcx + r14 + 0x48], 0x10
mov r15, qword [rcx + r14 + 0x28]
je 0x18006b1d3
mov r9d, dword [rcx + r14 + 0x40]
mov rcx, r13
and dword [rsp + 0x20], 0
mov r8d, dword [rbx - 0x4c]
mov edx, dword [rbx - 0x30]
call fcn.180066020
jmp 0x18006b2da
test dword [rax + 0x28], 0x240
je 0x18006b1e2
mov r10, qword [rax + 0x20]
jmp 0x18006b1f3
test dword [rax + 0x28], 0x2000
je 0x18006b2da
mov r10, qword [rbx - 0x10]
test r10, r10
je 0x18006b2da
cmp byte [rsi + 0x45], 0
je 0x18006b210
mov rax, qword [r10 + 0x18]
test byte [rax + 0x40], 0x20
je 0x18006b2da
cmp byte [r12 + 0x61], 0
jne 0x18006b2da
mov edx, dword [rbx - 0x30]
mov rcx, rdi
mov r9d, dword [rdi + 0x90]
call fcn.180022da0
cmp dword [rbx - 0x30], r9d
jge 0x18006b2da
sub r9d, dword [rbx - 0x30]
lea rdx, [rax + 4]
mov r14d, r9d
mov eax, dword [rbx - 0x4c]
cmp dword [rdx], eax
jne 0x18006b2c4
mov al, byte [rdx - 4]
cmp al, 0x5a
jne 0x18006b2ae
test byte [r15 + 0x40], 0x20
movsxd r9, dword [rdx + 4]
je 0x18006b27e
mov r8, qword [r15 + 0x10]
jmp 0x18006b270
mov eax, dword [r8 + 0x64]
and al, 3
cmp al, 2
je 0x18006b275
mov r8, qword [r8 + 0x28]
test r8, r8
jne 0x18006b262
mov rax, qword [r8 + 8]
movsx r9d, word [rax + r9*2]
movzx r8d, word [r10 + 0x60]
xor ecx, ecx
test r8d, r8d
je 0x18006b29f
mov r11, qword [r10 + 8]
movsxd rax, ecx
cmp r9w, word [r11 + rax*2]
je 0x18006b2a2
inc ecx
cmp ecx, r8d
jl 0x18006b28e
or ecx, 0xffffffff
movsx eax, cx
test eax, eax
js 0x18006b2c4
mov dword [rdx + 4], eax
jmp 0x18006b2bf
cmp al, 0x80
jne 0x18006b2bb
mov eax, dword [rbx - 0x48]
mov byte [rdx - 4], 0x87
jmp 0x18006b2c2
cmp al, 0x15
jne 0x18006b2c4
mov eax, dword [rbx - 0x48]
mov dword [rdx], eax
add rdx, 0x18
sub r14, 1
jne 0x18006b243
mov r14, qword [rsp + 0x90]
movzx eax, byte [rsi + 0x42]
inc ebp
add rbx, 0x60
cmp ebp, eax
jl 0x18006b19d
mov eax, dword [rsi + 0x3c]
mov rdx, rsi
mov rcx, r12
mov dword [r13 + 0xbc], eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.180066cb0