Function at 0x140024424
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 0x14002446e
mov byte [rdx + 0x38], r12b
lea r9, [rdx + 0x3c]
lea r8, [rdx + 0x24]
mov rdx, rdi
call fcn.140022560
test al, al
je 0x14002447a
mov ecx, dword [rbx + 0x30]
mov edx, dword [rbx + 0x24]
add ecx, edx
cmp dword [rdi], ecx
jle 0x140024486
mov byte [rbx + 0x2cdc], r12b
jmp 0x140024bfa
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 0x1400244f5
cmp ecx, eax
jg 0x140024bfa
jne 0x1400244d7
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0xc], eax
jge 0x140024bfa
cmp ecx, r13d
jl 0x1400244e9
cmp byte [rbx + 0x2cde], r15b
je 0x140024bf3
cmp ecx, dword [rbx + 0x2cd8]
jge 0x140024bf3
mov ecx, dword [rbx + 0x2cec]
lea eax, [rcx - 8]
cmp dword [rbx + 0x2ce8], eax
jbe 0x140024541
lea eax, [rcx + rcx]
mov rcx, qword [rbx + 0x2ce0]
mov edx, eax
shl rdx, 4
mov dword [rbx + 0x2cec], eax
call fcn.14003a694
mov rsi, rax
test rax, rax
jne 0x140024535
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.140036a34
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 0x1400245b6
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 0x14002461f
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x1400245e4
mov r8d, ecx
add r8, r10
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x1400245e1
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x1400245ce
jmp 0x1400245e4
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 0x14002467e
cmp dword [rbx + 0x2ce8], r12d
jbe 0x140024670
cmp byte [r14 - 0x10], r15b
jne 0x140024670
movzx eax, word [r14 - 0xe]
cmp ax, si
jae 0x140024670
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 0x1400244bb
mov byte [r14], r15b
mov byte [r14 + 8], cl
mov word [r14 + 2], r15w
jmp 0x14002465d
cmp ecx, 0x106
jb 0x140024a12
lea eax, [rcx - 0x106]
cmp eax, 8
jae 0x14002469b
lea r15d, [rax + 2]
jmp 0x140024700
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 0x1400246fb
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a34
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 0x140024700
mov esi, 7
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a34
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 0x14002475c
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 0x1400247cf
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x14002478e
mov r8d, ecx
add r8, 0x24b
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x14002478b
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024778
jmp 0x14002478e
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 0x1400247e8
lea rsi, [rbp + 1]
jmp 0x1400249c4
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 0x1400249be
cmp ebp, 4
jb 0x14002497f
jbe 0x1400248a7
mov rcx, qword [rdi + 0x10]
movsxd rax, r8d
cmp ebp, 0x24
jbe 0x140024854
mov rcx, qword [rax + rcx]
call fcn.1400369c0
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 0x140024882
mov ecx, dword [rax + rcx]
call fcn.140036a34
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.140036a34
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 0x140024904
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 0x140024977
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024935
mov r8d, ecx
add r8, 0x486
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024932
inc ecx
add r8, 4
cmp ecx, r9d
jb 0x140024920
jmp 0x140024935
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 0x1400249be
movsxd rcx, r8d
add rcx, qword [rbx + 0x18]
mov ecx, dword [rcx]
call fcn.140036a34
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 0x1400249e8
inc r15d
cmp rsi, 0x2000
jbe 0x1400249e8
add r15d, r12d
cmp rsi, 0x40000
jbe 0x1400249e8
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 0x1400244b6
cmp ecx, 0x100
jne 0x140024a75
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call fcn.140022428
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 0x14002465d
cmp ecx, 0x101
jne 0x140024a86
mov byte [r14], 2
jmp 0x14002465d
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.140036a34
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 0x140024af0
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 0x140024b63
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024b22
mov r8d, ecx
add r8, 0x6c1
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024b1f
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024b0c
jmp 0x140024b22
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 0x140024b73
lea ebp, [rax + 2]
jmp 0x140024bd3
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 0x140024bce
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a34
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 0x140024bd3
mov esi, 7
mov eax, dword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
mov word [r14 + 2], bp
mov rbp, qword [rsp + 0x80]
jmp 0x1400244bb
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