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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov rdi, rdx
movzx ebp, byte [rdx + 0x24]
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
xor edx, edx
mov r12d, dword [rsp + 0xb0]
not ebp
mov eax, dword [rax]
and ebp, 1
mov dword [rsp + 0x80], eax
mov r13d, r9d
mov dword [rsp + 0x30], edx
mov r15d, edx
lea ecx, [rax + rbp]
mov eax, dword [rdi + 8]
add ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x88], eax
test r12d, r12d
je 0x18008b631
mov r14d, r9d
sub r14d, r12d
jmp 0x18008b63d
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
add eax, ecx
mov dword [rsi + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x18008b649
inc eax
jmp 0x18008b64d
mov eax, dword [r8 + 8]
dec dword [rsi + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xa0]
mov r8d, r14d
mov rdx, qword [rdi]
test r9d, r9d
mov dword [rsp + 0x34], eax
mov eax, dword [rsi + 0x44]
mov dword [rdi + 0x1c], eax
mov eax, 1
cmovne eax, ecx
mov rcx, rsi
mov byte [rsp + 0x20], al
call fcn.180058690
test ebp, ebp
je 0x18008b6ed
mov edx, dword [rsp + 0x80]
movsxd rcx, dword [rbx + 0x90]
add edx, r14d
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x18008b6bc
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x78
mov rcx, rbx
call fcn.180032ad0
jmp 0x18008b6ed
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x78
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
test r12d, r12d
mov r12d, dword [rsp + 0x80]
jne 0x18008b71a
mov eax, dword [rsp + 0xa8]
test eax, eax
jle 0x18008b71a
lea r8d, [r14 + r12]
mov r9d, eax
add r8d, ebp
mov edx, r13d
mov rcx, rsi
call fcn.180056950
lea r13, [0x18015d140]
cmp dword [rsp + 0x88], r15d
jle 0x18008ba1b
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.18008b500
mov edx, dword [rsi + 0x38]
lea r8d, [r14 + r12]
mov dword [rsp + 0x30], eax
lea eax, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [rsp + 0xb0], eax
mov eax, r12d
mov dword [rsi + 0x38], edx
sub eax, dword [rdi + 8]
add eax, ebp
mov dword [rsp + 0xa0], eax
test ebp, ebp
jne 0x18008b77f
mov r8d, dword [rdi + 0xc]
mov edx, 0x14
mov eax, 0x71
test ebp, ebp
mov rcx, rbx
cmove edx, eax
call fcn.180032c10
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0x3c], eax
cmp dword [rbx + 0x94], ecx
jg 0x18008b7ca
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x56
mov rcx, rbx
call fcn.180032ad0
jmp 0x18008b7fb
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x56
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 ecx, dword [rdi + 0x18]
test ecx, ecx
jns 0x18008b80a
mov ecx, dword [rbx + 0x90]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x18008b818
mov r12, r13
jmp 0x18008b82a
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r12, [rax + rcx*8]
mov rax, qword [rsi]
cmp byte [rax + 0x61], r15b
jne 0x18008bc03
mov rbp, qword [r12 + 0x10]
xor edx, edx
mov eax, dword [rsp + 0xa0]
add eax, dword [rsp + 0xa8]
mov dword [r12 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x18008b885
cmp qword [rax + 0x2d8], r15
jne 0x18008b8c1
add dword [rbp], 0xffffffff
jne 0x18008b8c1
mov rcx, qword [rbp + 0x10]
mov rdx, rbp
call fcn.180005ba0
jmp 0x18008b8c1
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], r15b
lea rdx, [rax + rdx*8]
je 0x18008b8b9
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.1800340f0
jmp 0x18008b8c1
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
movzx r9d, word [rbp + 8]
mov rcx, rsi
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x88]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.18008cf30
mov qword [r12 + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x18008b912
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x10]
call fcn.180032ad0
jmp 0x18008b946
mov rax, qword [rbx + 0x88]
lea rcx, [rbp*2]
add rcx, rbp
mov dword [rbx + 0x90], edx
xor r8d, r8d
mov dword [rax + rcx*8], 0x10
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
dec dword [rsi + 0x44]
mov edx, 0xc
mov eax, dword [rsi + 0x44]
mov rcx, rbx
mov dword [rdi + 0x14], eax
inc dword [rsi + 0x38]
mov r8d, dword [rsi + 0x38]
mov r9d, dword [rdi + 0x14]
mov dword [rdi + 0x10], r8d
call fcn.180032c80
mov r8d, dword [rdi + 0xc]
mov edx, 0x8b
mov rcx, rbx
call fcn.180032c10
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x18008b99a
mov r9d, dword [rdi + 0x1c]
mov r8d, r12d
mov edx, 0x14
mov rcx, rbx
call fcn.180032c80
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x18008b9ab
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x18008b9b9
mov rax, r13
jmp 0x18008b9cb
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xb0]
mov rcx, rsi
mov dword [rax + 8], edx
mov edx, r14d
mov r9d, dword [rdi + 8]
call fcn.180056950
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x61], r15b
je 0x18008b9fc
mov rax, r13
mov dword [rax + 8], edx
jmp 0x18008ba20
lea eax, [rdx - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x18008ba20
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x18008bb64
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rdi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x18008ba5a
xor eax, eax
mov r9d, edx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x31]
call fcn.180032ad0
xor r8d, r8d
jmp 0x18008ba8b
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x31
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18008bab3
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x21]
call fcn.180032ad0
jmp 0x18008badc
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x21
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r8
mov r12d, dword [rsp + 0x88]
xor r9d, r9d
mov ecx, dword [rsp + 0x80]
mov r8d, ebp
sub ecx, r12d
mov dword [rsp + 0x28], ecx
mov rcx, rbx
lea eax, [r14 + r12]
lea edx, [r9 + 0x26]
mov dword [rsp + 0x20], eax
call fcn.180033660
movsxd rcx, dword [rbx + 0x90]
mov r15d, eax
cmp dword [rbx + 0x94], ecx
jg 0x18008bb37
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x7b]
call fcn.180032ad0
jmp 0x18008bb6c
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7b
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
jmp 0x18008bb6c
mov r12d, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x18008bb97
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.18008b500
mov r9d, eax
mov ecx, dword [rsp + 0x38]
lea eax, [r14 + r12]
movzx edx, byte [rdi + 0x24]
sub ecx, r12d
mov r8d, dword [rdi + 0xc]
and edx, 1
mov dword [rsp + 0x28], ecx
add edx, 0x83
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.180033660
test r15d, r15d
je 0x18008bc03
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x18008bbd5
mov edx, dword [rbx + 0x90]
test r15d, r15d
jns 0x18008bbe4
mov r15d, dword [rbx + 0x90]
dec r15d
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x18008bbff
movsxd rax, r15d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret