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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
lea rdi, [rdx + 8]
mov rbx, rdx
mov rbp, rcx
mov r12d, 1
cmp byte [rdx + 0x38], r15b
jne 0x14002443e
mov byte [rdx + 0x38], r12b
lea r9, [rdx + 0x3c]
lea r8, [rdx + 0x24]
mov rdx, rdi
call fcn.140022530
test al, al
je 0x14002444a
mov ecx, dword [rbx + 0x30]
mov edx, dword [rbx + 0x24]
add ecx, edx
cmp dword [rdi], ecx
jle 0x140024456
mov byte [rbx + 0x2cdc], r12b
jmp 0x140024bca
mov eax, dword [rbx + 0x2c]
dec edx
mov r13d, dword [rbx + 0x2cd8]
add eax, edx
sub r13d, 0x10
mov dword [rbx + 0x2ce8], r15d
cmp eax, r13d
mov dword [rsp + 0x88], eax
mov edx, r13d
cmovl edx, eax
mov dword [rsp + 0x90], edx
mov esi, 7
mov ecx, dword [rdi]
cmp ecx, edx
jl 0x1400244c5
cmp ecx, eax
jg 0x140024bca
jne 0x1400244a7
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0xc], eax
jge 0x140024bca
cmp ecx, r13d
jl 0x1400244b9
cmp byte [rbx + 0x2cde], r15b
je 0x140024bc3
cmp ecx, dword [rbx + 0x2cd8]
jge 0x140024bc3
mov ecx, dword [rbx + 0x2cec]
lea eax, [rcx - 8]
cmp dword [rbx + 0x2ce8], eax
jbe 0x140024511
lea eax, [rcx + rcx]
mov rcx, qword [rbx + 0x2ce0]
mov edx, eax
shl rdx, 4
mov dword [rbx + 0x2cec], eax
call fcn.14003a664
mov rsi, rax
test rax, rax
jne 0x140024505
lea rcx, [0x140060a80]
call fcn.14000ae98
mov qword [rbx + 0x2ce0], rsi
mov esi, 7
mov eax, dword [rbx + 0x2ce8]
mov r14d, eax
shl r14, 4
add r14, qword [rbx + 0x2ce0]
inc eax
mov dword [rbx + 0x2ce8], eax
movsxd rcx, dword [rdi]
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov edx, eax
mov r10d, 0x10
mov eax, dword [rbx + 0xc0]
mov ecx, r10d
sub ecx, dword [rdi + 4]
shr edx, cl
and edx, 0xfffe
cmp edx, dword [rbx + rax*4 + 0x40]
jae 0x140024586
mov ecx, r10d
sub ecx, eax
shr rdx, cl
movzx ecx, byte [rdx + rbx + 0xc4]
add ecx, dword [rdi + 4]
mov eax, ecx
shr eax, 3
add dword [rdi], eax
and ecx, esi
mov dword [rdi + 4], ecx
movzx eax, word [rbx + rdx*2 + 0x2c4]
jmp 0x1400245ef
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x1400245b4
mov r8d, ecx
add r8, r10
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x1400245b1
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x14002459e
jmp 0x1400245b4
mov r9d, ecx
mov ecx, dword [rdi + 4]
add ecx, r9d
mov eax, ecx
and ecx, esi
shr eax, 3
add dword [rdi], eax
lea eax, [r9 - 1]
mov dword [rdi + 4], ecx
mov ecx, r10d
sub ecx, r9d
sub edx, dword [rbx + rax*4 + 0x40]
mov eax, r9d
shr edx, cl
add edx, dword [rbx + rax*4 + 0x80]
cmp edx, dword [rbx + 0x3c]
sbb eax, eax
and eax, edx
movzx eax, word [rbx + rax*2 + 0x6c4]
mov r8d, dword [rdi]
movzx ecx, ax
cmp ecx, 0x100
jae 0x14002464e
cmp dword [rbx + 0x2ce8], r12d
jbe 0x140024640
cmp byte [r14 - 0x10], r15b
jne 0x140024640
movzx eax, word [r14 - 0xe]
cmp ax, si
jae 0x140024640
add ax, r12w
movzx eax, ax
mov word [r14 - 0xe], ax
mov byte [rax + r14 - 8], cl
dec dword [rbx + 0x2ce8]
mov eax, dword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
jmp 0x14002448b
mov byte [r14], r15b
mov byte [r14 + 8], cl
mov word [r14 + 2], r15w
jmp 0x14002462d
cmp ecx, 0x106
jb 0x1400249e2
lea eax, [rcx - 0x106]
cmp eax, 8
jae 0x14002466b
lea r15d, [rax + 2]
jmp 0x1400246d0
mov esi, eax
and eax, 3
shr esi, 2
or eax, 4
sub esi, r12d
mov ecx, esi
shl eax, cl
lea r15d, [rax + 2]
test esi, esi
je 0x1400246cb
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov r8d, dword [rdi + 4]
mov r9d, 0x10
mov ecx, r9d
sub ecx, r8d
shr eax, cl
mov ecx, r9d
sub ecx, esi
movzx edx, ax
shr edx, cl
lea ecx, [r8 + rsi]
mov eax, ecx
lea esi, [r9 - 9]
shr eax, 3
add r15d, edx
add dword [rdi], eax
mov r8d, dword [rdi]
and ecx, esi
mov dword [rdi + 4], ecx
jmp 0x1400246d0
mov esi, 7
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov edx, eax
mov r10d, 0x10
mov eax, dword [rbx + 0x9ac]
mov ecx, r10d
sub ecx, dword [rdi + 4]
shr edx, cl
and edx, 0xfffe
cmp edx, dword [rbx + rax*4 + 0x92c]
jae 0x14002472c
mov ecx, r10d
sub ecx, eax
shr rdx, cl
movzx ecx, byte [rdx + rbx + 0x9b0]
add ecx, dword [rdi + 4]
mov eax, ecx
shr eax, 3
add dword [rdi], eax
and ecx, esi
mov dword [rdi + 4], ecx
movzx eax, word [rbx + rdx*2 + 0xbb0]
jmp 0x14002479f
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x14002475e
mov r8d, ecx
add r8, 0x24b
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x14002475b
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024748
jmp 0x14002475e
mov r9d, ecx
mov ecx, dword [rdi + 4]
add ecx, r9d
mov eax, ecx
and ecx, esi
shr eax, 3
add dword [rdi], eax
lea eax, [r9 - 1]
mov dword [rdi + 4], ecx
mov ecx, r10d
sub ecx, r9d
sub edx, dword [rbx + rax*4 + 0x92c]
mov eax, r9d
shr edx, cl
add edx, dword [rbx + rax*4 + 0x96c]
cmp edx, dword [rbx + 0x928]
sbb eax, eax
and eax, edx
movzx eax, word [rbx + rax*2 + 0xfb0]
mov r8d, dword [rdi]
mov edx, r8d
movzx ebp, ax
mov eax, ebp
cmp ebp, 4
jae 0x1400247b8
lea rsi, [rbp + 1]
jmp 0x140024994
shr ebp, 1
sub ebp, r12d
and r12, rax
or r12, 2
mov ecx, ebp
shl r12, cl
inc r12
mov rsi, r12
test ebp, ebp
je 0x14002498e
cmp ebp, 4
jb 0x14002494f
jbe 0x140024877
mov rcx, qword [rdi + 0x10]
movsxd rax, r8d
cmp ebp, 0x24
jbe 0x140024824
mov rcx, qword [rax + rcx]
call fcn.140036990
mov r10d, dword [rdi + 4]
mov ecx, 8
movsxd r9, dword [rdi]
sub cl, r10b
mov rdx, qword [rdi + 0x10]
movzx esi, byte [rdx + r9 + 8]
shr rsi, cl
mov cl, r10b
shl rax, cl
mov ecx, 0x44
jmp 0x140024852
mov ecx, dword [rax + rcx]
call fcn.140036a04
movsxd r9, dword [rdi]
mov ecx, 8
sub cl, byte [rdi + 4]
mov rdx, qword [rdi + 0x10]
mov r10d, dword [rdi + 4]
movzx esi, byte [rdx + r9 + 4]
shr rsi, cl
mov ecx, dword [rdi + 4]
shl eax, cl
mov ecx, 0x24
sub ecx, ebp
or rsi, rax
shr rsi, cl
lea ecx, [r10 - 4]
add ecx, ebp
shl rsi, 4
mov edx, ecx
add rsi, r12
shr edx, 3
add edx, r9d
and ecx, 7
mov dword [rdi], edx
mov dword [rdi + 4], ecx
movsxd rcx, edx
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov edx, eax
mov r10d, 0x10
mov eax, dword [rbx + 0x1298]
mov ecx, r10d
sub ecx, dword [rdi + 4]
shr edx, cl
and edx, 0xfffe
cmp edx, dword [rbx + rax*4 + 0x1218]
jae 0x1400248d4
mov ecx, r10d
sub ecx, eax
shr rdx, cl
movzx ecx, byte [rdx + rbx + 0x129c]
add ecx, dword [rdi + 4]
mov eax, ecx
shr eax, 3
add dword [rdi], eax
and ecx, 7
mov dword [rdi + 4], ecx
movzx eax, word [rbx + rdx*2 + 0x149c]
jmp 0x140024947
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024905
mov r8d, ecx
add r8, 0x486
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024902
inc ecx
add r8, 4
cmp ecx, r9d
jb 0x1400248f0
jmp 0x140024905
mov r9d, ecx
mov ecx, dword [rdi + 4]
add ecx, r9d
mov eax, ecx
and ecx, 7
shr eax, 3
add dword [rdi], eax
lea eax, [r9 - 1]
mov dword [rdi + 4], ecx
mov ecx, r10d
sub ecx, r9d
sub edx, dword [rbx + rax*4 + 0x1218]
mov eax, r9d
shr edx, cl
add edx, dword [rbx + rax*4 + 0x1258]
cmp edx, dword [rbx + 0x1214]
sbb eax, eax
and eax, edx
movzx eax, word [rbx + rax*2 + 0x189c]
movzx eax, ax
add rsi, rax
jmp 0x14002498e
movsxd rcx, r8d
add rcx, qword [rbx + 0x18]
mov ecx, dword [rcx]
call fcn.140036a04
mov edx, dword [rbx + 0xc]
mov r9d, 0x10
mov eax, eax
mov ecx, r9d
sub ecx, edx
shr rax, cl
mov ecx, r9d
sub ecx, ebp
movzx esi, ax
shr rsi, cl
lea ecx, [rdx + rbp]
mov eax, ecx
add rsi, r12
shr eax, 3
add dword [rdi], eax
and ecx, 7
mov dword [rdi + 4], ecx
mov r12d, 1
cmp rsi, 0x100
jbe 0x1400249b8
inc r15d
cmp rsi, 0x2000
jbe 0x1400249b8
add r15d, r12d
cmp rsi, 0x40000
jbe 0x1400249b8
add r15d, r12d
mov eax, dword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov word [r14 + 2], r15w
xor r15d, r15d
mov byte [r14], r12b
mov qword [r14 + 8], rsi
jmp 0x140024486
cmp ecx, 0x100
jne 0x140024a45
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call fcn.1400223f8
movzx eax, byte [rsp + 0x20]
mov word [r14 + 2], ax
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov byte [r14], 4
mov eax, dword [rbx + 0x2ce8]
mov ecx, eax
shl rcx, 4
add rcx, qword [rbx + 0x2ce0]
inc eax
mov dword [rbx + 0x2ce8], eax
movzx eax, byte [rsp + 0x21]
mov word [rcx + 2], ax
mov eax, dword [rsp + 0x30]
mov qword [rcx + 8], rax
mov byte [rcx], 4
jmp 0x14002462d
cmp ecx, 0x101
jne 0x140024a56
mov byte [r14], 2
jmp 0x14002462d
add ecx, 0xfffffefe
mov byte [r14], 3
mov qword [r14 + 8], rcx
movsxd rcx, dword [rdi]
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov edx, eax
mov r10d, 0x10
mov eax, dword [rbx + 0x1b84]
mov ecx, r10d
sub ecx, dword [rdi + 4]
shr edx, cl
and edx, 0xfffe
cmp edx, dword [rbx + rax*4 + 0x1b04]
jae 0x140024ac0
mov ecx, r10d
sub ecx, eax
shr rdx, cl
movzx ecx, byte [rdx + rbx + 0x1b88]
add ecx, dword [rdi + 4]
mov eax, ecx
shr eax, 3
add dword [rdi], eax
and ecx, esi
mov dword [rdi + 4], ecx
movzx eax, word [rbx + rdx*2 + 0x1d88]
jmp 0x140024b33
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024af2
mov r8d, ecx
add r8, 0x6c1
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024aef
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024adc
jmp 0x140024af2
mov r9d, ecx
mov ecx, dword [rdi + 4]
add ecx, r9d
mov eax, ecx
and ecx, esi
shr eax, 3
add dword [rdi], eax
lea eax, [r9 - 1]
mov dword [rdi + 4], ecx
mov ecx, r10d
sub ecx, r9d
sub edx, dword [rbx + rax*4 + 0x1b04]
mov eax, r9d
shr edx, cl
add edx, dword [rbx + rax*4 + 0x1b44]
cmp edx, dword [rbx + 0x1b00]
sbb eax, eax
and eax, edx
movzx eax, word [rbx + rax*2 + 0x2188]
mov r8d, dword [rdi]
movzx eax, ax
cmp eax, 8
jae 0x140024b43
lea ebp, [rax + 2]
jmp 0x140024ba3
mov esi, eax
and eax, 3
shr esi, 2
or eax, 4
sub esi, r12d
mov ecx, esi
shl eax, cl
lea ebp, [rax + 2]
test esi, esi
je 0x140024b9e
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a04
mov r8d, dword [rdi + 4]
mov r9d, 0x10
mov ecx, r9d
sub ecx, r8d
shr eax, cl
mov ecx, r9d
sub ecx, esi
movzx edx, ax
shr edx, cl
lea ecx, [rsi + r8]
mov eax, ecx
lea esi, [r9 - 9]
shr eax, 3
add ebp, edx
add dword [rdi], eax
and ecx, esi
mov dword [rdi + 4], ecx
jmp 0x140024ba3
mov esi, 7
mov eax, dword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
mov word [r14 + 2], bp
mov rbp, qword [rsp + 0x80]
jmp 0x14002448b
mov byte [rbx + 0x2cdf], r12b
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret