Function at 0x1402c698c
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 [rdx + 0x148]
mov rdi, rdx
mov qword [rcx + 0xb0], rax
mov rbx, rcx
movsxd r12, dword [rdx + 0x34]
and qword [rdx + 0x148], 0
mov rax, qword [rcx]
mov esi, dword [rdx + 0x38]
mov qword [rsp + 0x20], rax
add esi, r12d
movsx eax, word [rdx + 0x130]
mov word [rsp + 0x80], ax
mov dword [rsp + 0x88], eax
mov eax, dword [rdx + 0x90]
mov dword [rsp + 0x90], eax
mov eax, 1
mov dword [rsp + 0x98], r12d
test r12d, r12d
jne 0x1402c6a06
test esi, esi
jle 0x1402c6a06
add esi, eax
mov eax, dword [rcx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
shl ecx, 3
lea rdx, [rsp + 0x90]
sub eax, ecx
movsxd r15, ecx
add r15, qword [rbx + 0x88]
mov rcx, rbx
movsxd rbp, eax
and rbp, 0xfffffffffffffff8
call fcn.140282960
xor r9d, r9d
cmp byte [rdi + 0x20], r9b
je 0x1402c6a4b
lea eax, [r9 + 0x20]
cmp byte [rdi + 0x21], r9b
jne 0x1402c6a4e
mov eax, r9d
mov edx, dword [rbx + 0xc8]
and edx, 0xffffffdf
or edx, eax
mov dword [rbx + 0xc8], edx
movzx eax, byte [rdi + 0x133]
test al, al
je 0x1402c6a99
mov ecx, 0xa
cmp esi, ecx
cmovl esi, ecx
shl eax, 2
xor eax, edx
mov ecx, 3
and eax, 0xc
xor eax, edx
mov edx, eax
shr eax, 2
and ax, cx
sub cx, ax
shl cx, 2
mov word [rbx + 0xc0], cx
movsxd rax, esi
and edx, 0xfffffffc
imul r14, rax, 0x38
mov dword [rbx + 0xc8], edx
mov rax, r9
cmp r14, rbp
jg 0x1402c6abf
mov rax, r15
mov rdi, r9
sub rax, r14
add rax, rbp
jmp 0x1402c6ac2
mov rdi, r14
movsxd r8, dword [rsp + 0x88]
mov rcx, rbp
sub rcx, r14
mov qword [rbx + 0x68], rax
cmp r14, rbp
mov rax, r9
cmovg rcx, rbp
imul r13, r8, 0x38
cmp r13, rcx
jg 0x1402c6af0
sub rcx, r13
lea rax, [rcx + r15]
jmp 0x1402c6af3
add rdi, r13
movsxd rbp, dword [rsp + 0x90]
shl rbp, 3
mov qword [rbx + 0x80], rax
mov rax, r9
cmp rbp, rcx
jg 0x1402c6b19
mov rax, r15
sub rax, rbp
add rax, rcx
jmp 0x1402c6b1c
add rdi, rbp
mov rdx, rcx
mov qword [rbx + 0x70], rax
sub rdx, rbp
mov rax, r9
cmp rbp, rcx
cmovg rdx, rcx
shl r12, 3
cmp r12, rdx
jg 0x1402c6b44
mov rax, r15
sub rax, r12
add rax, rdx
jmp 0x1402c6b47
add rdi, r12
mov r15, qword [rsp + 0x20]
mov qword [rbx + 0x78], rax
test rdi, rdi
je 0x1402c6beb
mov rdx, rdi
mov rcx, r15
call fcn.140293a98
xor r9d, r9d
mov qword [rbx + 0x100], rax
mov rcx, rax
cmp byte [r15 + 0x67], r9b
jne 0x1402c6be3
mov rax, qword [rbx + 0x68]
test rax, rax
jne 0x1402c6b8c
cmp r14, rdi
jg 0x1402c6b8c
sub rdi, r14
lea rax, [rdi + rcx]
mov qword [rbx + 0x68], rax
mov rax, qword [rbx + 0x80]
test rax, rax
jne 0x1402c6ba8
cmp r13, rdi
jg 0x1402c6ba8
sub rdi, r13
lea rax, [rdi + rcx]
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x70]
test rax, rax
jne 0x1402c6bc4
cmp rbp, rdi
jg 0x1402c6bc4
sub rdi, rbp
lea rax, [rdi + rcx]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x78]
test rax, rax
jne 0x1402c6bdf
cmp r12, rdi
jg 0x1402c6bdf
mov rax, rcx
sub rax, r12
add rax, rdi
mov qword [rbx + 0x78], rax
mov r8d, dword [rsp + 0x88]
mov edi, 1
cmp byte [r15 + 0x67], r9b
je 0x1402c6c02
and qword [rbx + 0x24], 0
mov word [rbx + 0x20], r9w
jmp 0x1402c6c75
mov eax, dword [rsp + 0x98]
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x80]
mov word [rbx + 0x20], ax
mov rax, qword [rbx + 0x80]
test r8d, r8d
jle 0x1402c6c3f
add rax, 0x18
sub r8d, edi
mov word [rax - 4], di
mov qword [rax], r15
mov dword [rax + 8], r9d
lea rax, [rax + 0x38]
test r8d, r8d
jg 0x1402c6c28
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x24], esi
test esi, esi
jle 0x1402c6c64
add rax, 0x18
sub esi, edi
mov word [rax - 4], r9w
mov qword [rax], r15
mov dword [rax + 8], r9d
lea rax, [rax + 0x38]
test esi, esi
jg 0x1402c6c4e
mov rcx, qword [rbx + 0x78]
mov r8, r12
xor edx, edx
call fcn.140331590
xor r9d, r9d
or dword [rbx + 0x30], 0xffffffff
mov byte [rbx + 0xc7], dil
mov dword [rbx + 0x34], r9d
mov word [rbx + 0xc4], 0xff02
mov qword [rbx + 0x38], r9
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x40], r9d
mov qword [rbx + 0x50], r9
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret