Function at 0x18003283c
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 rax, qword [rcx]
mov rbx, rcx
mov ecx, dword [rdx + 0x34]
mov rbp, rdx
mov esi, dword [rdx + 0x38]
mov edi, 1
mov qword [rsp + 0x98], rax
add esi, ecx
movsx eax, word [rdx + 0x100]
mov dword [rsp + 0x80], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x88], ecx
test ecx, ecx
jne 0x180032897
test esi, esi
jle 0x180032897
add esi, edi
mov eax, dword [rbx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea ecx, [rcx*8 + 7]
and ecx, 0xfffffff8
lea rdx, [rsp + 0x90]
sub eax, ecx
movsxd r13, ecx
add r13, qword [rbx + 0x88]
mov rcx, rbx
movsxd r14, eax
and r14, 0xfffffffffffffff8
call fcn.180031a20
xor r10d, r10d
cmp byte [rbp + 0x20], r10b
je 0x1800328e2
mov al, dil
cmp byte [rbp + 0x21], r10b
jne 0x1800328e5
mov al, r10b
btr dword [rbx + 0xc8], 7
movzx eax, al
and eax, edi
shl eax, 7
or dword [rbx + 0xc8], eax
cmp byte [rbp + 0x103], r10b
je 0x18003290e
mov ecx, 0xa
cmp esi, ecx
cmovl esi, ecx
and dword [rbx + 0xc8], 0xfffffffc
mov rdi, r10
movsxd rax, esi
mov rcx, r10
imul r15, rax, 0x38
add r15, 7
and r15, 0xfffffffffffffff8
cmp r15, r14
jg 0x180032938
sub r14, r15
lea rcx, [r14 + r13]
jmp 0x18003293b
mov rdi, r15
mov qword [rbx + 0x68], rcx
mov rdx, r10
movsxd rcx, dword [rsp + 0x80]
imul r12, rcx, 0x38
add r12, 7
and r12, 0xfffffffffffffff8
cmp r12, r14
jg 0x180032964
sub r14, r12
lea rdx, [r14 + r13]
jmp 0x180032967
add rdi, r12
movsxd rax, dword [rsp + 0x90]
mov qword [rbx + 0x80], rdx
mov rdx, r10
lea rax, [rax*8 + 7]
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x20], rax
cmp rax, r14
jg 0x180032998
sub r14, rax
lea rdx, [r14 + r13]
jmp 0x18003299b
add rdi, rax
movsxd r8, dword [rsp + 0x88]
mov r9, r8
mov qword [rbx + 0x70], rdx
shl r9, 3
mov rdx, r10
mov qword [rsp + 0x90], r9
lea rax, [r9 + 7]
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x28], rax
cmp rax, r14
jg 0x1800329d4
sub r14, rax
lea rdx, [r14 + r13]
jmp 0x1800329d7
add rdi, rax
mov r14, qword [rsp + 0x98]
mov qword [rbx + 0x78], rdx
test rdi, rdi
je 0x180032a95
mov rdx, rdi
mov rcx, r14
call fcn.180016678
xor r10d, r10d
mov qword [rbx + 0xf8], rax
mov rdx, rax
cmp byte [r14 + 0x61], r10b
jne 0x180032a7e
mov rax, qword [rbx + 0x68]
test rax, rax
jne 0x180032a1f
cmp r15, rdi
jg 0x180032a1f
sub rdi, r15
lea rax, [rdi + rdx]
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x180032a3b
cmp r12, rdi
jg 0x180032a3b
sub rdi, r12
lea rax, [rdi + rdx]
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x180032a5c
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
jg 0x180032a5c
sub rdi, rcx
lea rax, [rdi + rdx]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x180032a7a
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
jg 0x180032a7a
sub rdi, rcx
lea rax, [rdi + rdx]
mov qword [rbx + 0x78], rax
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x80]
mov rax, qword [rbp + 0x118]
mov edi, 1
mov qword [rbx + 0xb0], rax
movzx eax, byte [rbp + 0x103]
shl eax, 2
mov qword [rbp + 0x118], r10
xor eax, dword [rbx + 0xc8]
and eax, 0xc
xor dword [rbx + 0xc8], eax
cmp byte [r14 + 0x61], r10b
je 0x180032add
mov word [rbx + 0x20], r10w
mov qword [rbx + 0x28], 0
jmp 0x180032b43
mov rax, qword [rbx + 0x80]
mov dword [rbx + 0x2c], r8d
mov word [rbx + 0x20], cx
test ecx, ecx
jle 0x180032b09
add rax, 8
sub ecx, edi
mov qword [rax + 0x20], r14
mov word [rax], di
mov dword [rax + 0x18], r10d
lea rax, [rax + 0x38]
test ecx, ecx
jg 0x180032af4
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x28], esi
test esi, esi
jle 0x180032b32
add rax, 8
sub esi, edi
mov qword [rax + 0x20], r14
mov dword [rax + 0x18], r10d
mov ecx, 0x80
mov word [rax], cx
lea rax, [rax + 0x38]
test esi, esi
jg 0x180032b18
mov rcx, qword [rbx + 0x78]
mov r8, r9
xor edx, edx
call fcn.1800c1d50
xor r10d, r10d
or dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x24], 0x2df20da3
mov qword [rbx + 0x38], 0
mov word [rbx + 0xc2], 0xff02
mov dword [rbx + 0x30], edi
mov dword [rbx + 0x40], r10d
mov qword [rbx + 0x50], r10
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret