Function at 0x14000db80
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 rbx, rcx
mov dword [rcx + 0x4c], r15d
mov rax, qword [rdx + 0x10]
lea r8d, [r15 + 4]
sub rax, qword [rdx]
lea rdx, [rsp + 0x80]
mov rcx, rsi
and eax, 0xfffffffc
mov qword [rsp + 0x88], rax
call fcn.140005700
test eax, eax
jne 0x14000dfd4
mov edi, dword [rsp + 0x80]
mov ebp, 0xffff
mov eax, edi
shr eax, 0x10
cmp ax, bp
jne 0x14000dbf7
lea r8d, [r15 + 4]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfd4
jmp 0x14000dbfb
mov dword [rsp + 0x70], eax
cmp di, bp
jne 0x14000dc21
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfd4
mov eax, dword [rsp + 0x78]
jmp 0x14000dc28
movzx eax, di
mov dword [rsp + 0x78], eax
test byte [rsp + 0x70], 3
je 0x14000dc3f
mov eax, 0xb
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp eax, 0x26
je 0x14000dc54
mov eax, 2
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, [rbx + 8]
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfd4
cmp dword [rbx + 8], 0x34cadd
mov qword [rsp + 0x30], r13
je 0x14000dc85
and dword [rbx + 0x860], 0xfffffffb
jmp 0x14000dc8c
or dword [rbx + 0x860], 4
lea rdx, [rbx + 0x3c]
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfcf
cmp dword [rbx + 0x3c], 0xfffff
jbe 0x14000dcc4
mov eax, 0xb
mov r13, qword [rsp + 0x30]
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, [rbx + 0xc]
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfcf
lea r8d, [rax + 4]
lea rdx, [rbx + 0x24]
mov rcx, rsi
mov qword [rsp + 0x38], r12
call fcn.140005700
test eax, eax
jne 0x14000dfca
cmp dword [rbx + 0x24], 0xfffff
jbe 0x14000dd0e
mov eax, 0xb
jmp 0x14000dfca
lea rdx, [rbx + 0x14]
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfca
lea rdx, [rbx + 0x18]
lea r8d, [rax + 4]
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfca
mov ecx, dword [rbx + 0x24]
shl ecx, 4
call fcn.140005aa0
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14000dd5e
mov eax, 3
jmp 0x14000dfca
mov ecx, dword [rbx + 0x24]
mov qword [rsp + 0x28], r14
mov r14, qword [rsi + 0x10]
sub r14, qword [rsi]
lea eax, [rcx + rcx*2]
mov ebp, r15d
sar r14, 2
add r14d, eax
shl r14d, 2
mov qword [rsp + 0x80], r14
test ecx, ecx
je 0x14000de32
nop
mov rdx, qword [rbx + 0x30]
mov edi, ebp
mov r8d, 4
shl rdi, 4
mov rcx, rsi
add rdx, rdi
call fcn.140005700
test eax, eax
jne 0x14000dfc5
mov rdx, qword [rbx + 0x30]
lea r8d, [rax + 4]
mov rcx, rsi
add rdx, 4
add rdx, rdi
call fcn.140005700
test eax, eax
jne 0x14000dfc5
mov rdx, qword [rbx + 0x30]
add rdx, rdi
mov eax, dword [rdx + 4]
test eax, eax
je 0x14000dfa3
cmp eax, 0xfff
ja 0x14000dfa3
add rdx, 0xc
mov r8d, 4
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfc5
mov rcx, qword [rbx + 0x30]
mov eax, dword [rcx + rdi + 4]
cmp eax, 1
jbe 0x14000de27
add dword [rbx + 0x4c], eax
mov eax, dword [rcx + rdi + 0xc]
sub eax, r14d
shr eax, 2
mov dword [rcx + rdi + 8], eax
inc ebp
cmp ebp, dword [rbx + 0x24]
jb 0x14000dd90
mov ecx, dword [rbx + 0x4c]
shl ecx, 2
call fcn.140005aa0
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14000de8b
mov edi, r15d
cmp dword [rbx + 0x4c], r15d
jbe 0x14000de77
nop
mov rax, qword [rbx + 0x50]
mov ecx, edi
mov r8d, 4
lea rdx, [rax + rcx*4]
mov rcx, rsi
call fcn.140005700
test eax, eax
jne 0x14000dfc5
inc edi
cmp edi, dword [rbx + 0x4c]
jb 0x14000de50
mov ecx, dword [rbx + 0x3c]
shl ecx, 7
call fcn.140005aa0
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x14000de95
mov eax, 3
jmp 0x14000dfc5
mov eax, dword [rbx + 0x3c]
mov edi, r15d
mov ebp, r15d
mov dword [rbx + 0x38], eax
test eax, eax
je 0x14000df13
nop word [rax + rax]
mov rdx, qword [rsi + 0x10]
mov r8, qword [rbx + 0x40]
mov r14d, ebp
sub rdx, qword [rsi]
shl r14, 7
mov r9d, 1
and edx, 0xfffffffc
add r8, r14
mov rcx, rsi
call fcn.14000a4f0
cmp eax, 2
jne 0x14000defa
mov rax, qword [rbx + 0x40]
mov rcx, rsi
mov edx, dword [r14 + rax + 0x10]
add edx, dword [r14 + rax]
call fcn.140005780
test eax, eax
jne 0x14000dfc5
jmp 0x14000df04
test eax, eax
jne 0x14000dfc5
inc ebp
inc edi
cmp edi, dword [rbx + 0x3c]
jb 0x14000deb0
mov r14, qword [rsp + 0x80]
mov eax, r15d
mov dword [rbx + 0x3c], ebp
cmp dword [rbx + 0x24], eax
jbe 0x14000df85
nop
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 0x14000df53
sub edx, r14d
shr edx, 2
mov dword [r10 + 8], edx
mov rdx, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x4c]
cmp dword [r8 + rdx + 8], ecx
jae 0x14000dfa3
jmp 0x14000df7c
mov r8d, dword [rbx + 0x3c]
cmp eax, r8d
jae 0x14000df76
mov r9, qword [rbx + 0x40]
mov ecx, eax
shl rcx, 7
cmp dword [rcx + r9], edx
je 0x14000df73
inc eax
cmp eax, r8d
jb 0x14000df60
cmp eax, r8d
je 0x14000dfa3
mov dword [r10 + 8], eax
inc r15d
cmp r15d, dword [rbx + 0x24]
jb 0x14000df20
mov rcx, qword [rsi + 0x10]
mov edx, dword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
sub rcx, qword [rsi]
lea eax, [rdx + r8]
and ecx, 0xfffffffc
cmp ecx, eax
je 0x14000dfaa
mov eax, 0xb
jmp 0x14000dfc5
mov eax, dword [rbx + 0x24]
or dword [rbx + 0x860], 1
mov dword [rbx], edx
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x4c]
mov dword [rbx + 4], r8d
mov dword [rbx + 0x48], eax
xor eax, eax
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret