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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x40
mov rsi, rdx
xor r15d, r15d
mov dword [rcx + 0x4c], r15d
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov rcx, rsi
sub rax, qword [rdx]
lea rdx, [rsp + 0x80]
and eax, 0xfffffffc
lea r8d, [r15 + 4]
mov qword [rsp + 0x88], rax
call fcn.14000a550
test eax, eax
jne 0x140014985
mov edi, dword [rsp + 0x80]
mov ebp, 0xffff
mov eax, edi
shr eax, 0x10
cmp ax, bp
jne 0x140014647
lea r8d, [r15 + 4]
mov rcx, rsi
lea rdx, [rsp + 0x70]
call fcn.14000a550
test eax, eax
jne 0x140014985
jmp 0x14001464b
mov dword [rsp + 0x70], eax
cmp di, bp
jne 0x140014671
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.14000a550
test eax, eax
jne 0x140014985
mov eax, dword [rsp + 0x78]
jmp 0x140014678
movzx eax, di
mov dword [rsp + 0x78], eax
test byte [rsp + 0x70], 3
je 0x14001468f
mov eax, 0xb
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp eax, 0x26
je 0x1400146a4
mov eax, 2
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, 4
lea rdx, [rbx + 8]
mov rcx, rsi
call fcn.14000a550
test eax, eax
jne 0x140014985
mov ecx, dword [rbx + 0x860]
mov r8d, 4
mov eax, ecx
mov qword [rsp + 0x28], r14
and ecx, 0xfffffffb
lea r14, [rbx + 0x3c]
or eax, 4
mov rdx, r14
cmp dword [rbx + 8], 0x34cadd
cmove ecx, eax
mov dword [rbx + 0x860], ecx
mov rcx, rsi
call fcn.14000a550
test eax, eax
jne 0x140014980
cmp dword [r14], 0xfffff
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
ja 0x140014971
lea rdx, [rbx + 0xc]
mov rcx, rsi
lea r8d, [rax + 4]
call fcn.14000a550
test eax, eax
jne 0x140014976
lea r8d, [rax + 4]
mov rcx, rsi
lea rdx, [rbx + 0x24]
call fcn.14000a550
test eax, eax
jne 0x140014976
cmp dword [rbx + 0x24], 0xfffff
ja 0x140014971
lea rdx, [rbx + 0x14]
mov rcx, rsi
lea r8d, [rax + 4]
call fcn.14000a550
test eax, eax
jne 0x140014976
lea rdx, [rbx + 0x18]
mov rcx, rsi
lea r8d, [rax + 4]
call fcn.14000a550
test eax, eax
jne 0x140014976
mov ecx, dword [rbx + 0x24]
shl ecx, 4
call fcn.14000acd0
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140014a05
mov ecx, dword [rbx + 0x24]
mov ebp, r15d
mov r13, qword [rsi + 0x10]
sub r13, qword [rsi]
sar r13, 2
lea eax, [rcx + rcx*2]
add r13d, eax
shl r13d, 2
test ecx, ecx
je 0x14001485c
nop dword [rax]
mov rdx, qword [rbx + 0x30]
mov r8d, 4
mov edi, ebp
mov rcx, rsi
shl rdi, 4
add rdx, rdi
call fcn.14000a550
test eax, eax
jne 0x140014976
mov rdx, qword [rbx + 0x30]
lea r8d, [rax + 4]
add rdx, 4
mov rcx, rsi
add rdx, rdi
call fcn.14000a550
test eax, eax
jne 0x140014976
mov rdx, qword [rbx + 0x30]
add rdx, rdi
mov eax, dword [rdx + 4]
dec eax
cmp eax, 0xffe
ja 0x140014971
add rdx, 0xc
mov r8d, 4
mov rcx, rsi
call fcn.14000a550
test eax, eax
jne 0x140014976
mov rcx, qword [rbx + 0x30]
mov eax, dword [rcx + rdi + 4]
cmp eax, 1
jbe 0x140014851
add dword [rbx + 0x4c], eax
mov eax, dword [rcx + rdi + 0xc]
sub eax, r13d
shr eax, 2
mov dword [rcx + rdi + 8], eax
inc ebp
cmp ebp, dword [rbx + 0x24]
jb 0x1400147c0
mov ecx, dword [rbx + 0x4c]
shl ecx, 2
call fcn.14000acd0
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140014a05
mov edi, r15d
cmp dword [rbx + 0x4c], r15d
jbe 0x1400148a7
nop dword [rax]
mov rax, qword [rbx + 0x50]
mov r8d, 4
mov ecx, edi
lea rdx, [rax + rcx*4]
mov rcx, rsi
call fcn.14000a550
test eax, eax
jne 0x140014976
inc edi
cmp edi, dword [rbx + 0x4c]
jb 0x140014880
mov ecx, dword [r14]
shl ecx, 7
call fcn.14000acd0
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140014a05
mov eax, dword [r14]
mov edi, r15d
mov dword [rbx + 0x38], eax
mov ebp, r15d
test eax, eax
je 0x140014927
nop
mov rdx, qword [rsi + 0x10]
mov r9d, 1
sub rdx, qword [rsi]
mov rcx, rsi
mov r8, qword [rbx + 0x40]
and edx, 0xfffffffc
mov r14d, ebp
shl r14, 7
add r8, r14
call fcn.1400102d0
cmp eax, 2
jne 0x140014916
mov rax, qword [rbx + 0x40]
mov rcx, rsi
mov edx, dword [r14 + rax + 0x10]
add edx, dword [r14 + rax]
call fcn.14000a5d0
test eax, eax
jne 0x140014976
jmp 0x14001491c
test eax, eax
jne 0x140014976
inc ebp
inc edi
lea r14, [rbx + 0x3c]
cmp edi, dword [r14]
jb 0x1400148d0
mov edx, dword [rbx + 0x24]
mov eax, r15d
mov dword [r14], ebp
test edx, edx
je 0x1400149c8
nop dword [rax + rax]
mov r10, qword [rbx + 0x30]
mov r8d, r15d
shl r8, 4
add r10, r8
cmp dword [r10 + 4], 1
mov edx, dword [r10 + 0xc]
jbe 0x140014990
sub edx, r13d
shr edx, 2
mov dword [r10 + 8], edx
mov rdx, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x4c]
cmp dword [rdx + r8 + 8], ecx
jb 0x1400149b9
mov eax, 0xb
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov r14, qword [rsp + 0x28]
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, dword [r14]
cmp eax, r8d
jae 0x1400149b3
mov r9, qword [rbx + 0x40]
nop dword [rax]
mov ecx, eax
shl rcx, 7
cmp dword [rcx + r9], edx
je 0x1400149b5
inc eax
cmp eax, r8d
jb 0x1400149a0
je 0x140014971
mov dword [r10 + 8], eax
mov edx, dword [rbx + 0x24]
inc r15d
cmp r15d, edx
jb 0x140014940
mov r8d, dword [rsp + 0x70]
mov r9, qword [rsp + 0x88]
mov rcx, qword [rsi + 0x10]
sub rcx, qword [rsi]
and ecx, 0xfffffffc
lea eax, [r8 + r9]
cmp ecx, eax
jne 0x140014971
mov eax, dword [rbx + 0x4c]
or dword [rbx + 0x860], 1
mov dword [rbx + 0x48], eax
xor eax, eax
mov dword [rbx], r8d
mov dword [rbx + 4], r9d
mov dword [rbx + 0x28], edx
jmp 0x140014976
mov eax, 3
jmp 0x140014976