Function at 0x140024434
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 0x14002447e
mov byte [rdx + 0x38], r12b
lea r9, [rdx + 0x3c]
lea r8, [rdx + 0x24]
mov rdx, rdi
call fcn.140022570
test al, al
je 0x14002448a
mov ecx, dword [rbx + 0x30]
mov edx, dword [rbx + 0x24]
add ecx, edx
cmp dword [rdi], ecx
jle 0x140024496
mov byte [rbx + 0x2cdc], r12b
jmp 0x140024c0a
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 0x140024505
cmp ecx, eax
jg 0x140024c0a
jne 0x1400244e7
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0xc], eax
jge 0x140024c0a
cmp ecx, r13d
jl 0x1400244f9
cmp byte [rbx + 0x2cde], r15b
je 0x140024c03
cmp ecx, dword [rbx + 0x2cd8]
jge 0x140024c03
mov ecx, dword [rbx + 0x2cec]
lea eax, [rcx - 8]
cmp dword [rbx + 0x2ce8], eax
jbe 0x140024551
lea eax, [rcx + rcx]
mov rcx, qword [rbx + 0x2ce0]
mov edx, eax
shl rdx, 4
mov dword [rbx + 0x2cec], eax
call fcn.14003a6a4
mov rsi, rax
test rax, rax
jne 0x140024545
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.140036a44
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 0x1400245c6
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 0x14002462f
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x1400245f4
mov r8d, ecx
add r8, r10
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x1400245f1
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x1400245de
jmp 0x1400245f4
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 0x14002468e
cmp dword [rbx + 0x2ce8], r12d
jbe 0x140024680
cmp byte [r14 - 0x10], r15b
jne 0x140024680
movzx eax, word [r14 - 0xe]
cmp ax, si
jae 0x140024680
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 0x1400244cb
mov byte [r14], r15b
mov byte [r14 + 8], cl
mov word [r14 + 2], r15w
jmp 0x14002466d
cmp ecx, 0x106
jb 0x140024a22
lea eax, [rcx - 0x106]
cmp eax, 8
jae 0x1400246ab
lea r15d, [rax + 2]
jmp 0x140024710
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 0x14002470b
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a44
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 0x140024710
mov esi, 7
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a44
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 0x14002476c
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 0x1400247df
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x14002479e
mov r8d, ecx
add r8, 0x24b
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x14002479b
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024788
jmp 0x14002479e
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 0x1400247f8
lea rsi, [rbp + 1]
jmp 0x1400249d4
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 0x1400249ce
cmp ebp, 4
jb 0x14002498f
jbe 0x1400248b7
mov rcx, qword [rdi + 0x10]
movsxd rax, r8d
cmp ebp, 0x24
jbe 0x140024864
mov rcx, qword [rax + rcx]
call fcn.1400369d0
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 0x140024892
mov ecx, dword [rax + rcx]
call fcn.140036a44
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.140036a44
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 0x140024914
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 0x140024987
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024945
mov r8d, ecx
add r8, 0x486
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024942
inc ecx
add r8, 4
cmp ecx, r9d
jb 0x140024930
jmp 0x140024945
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 0x1400249ce
movsxd rcx, r8d
add rcx, qword [rbx + 0x18]
mov ecx, dword [rcx]
call fcn.140036a44
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 0x1400249f8
inc r15d
cmp rsi, 0x2000
jbe 0x1400249f8
add r15d, r12d
cmp rsi, 0x40000
jbe 0x1400249f8
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 0x1400244c6
cmp ecx, 0x100
jne 0x140024a85
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call fcn.140022438
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 0x14002466d
cmp ecx, 0x101
jne 0x140024a96
mov byte [r14], 2
jmp 0x14002466d
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.140036a44
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 0x140024b00
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 0x140024b73
mov r9d, 0xf
lea ecx, [rax + 1]
cmp ecx, r9d
jae 0x140024b32
mov r8d, ecx
add r8, 0x6c1
lea r8, [rbx + r8*4]
cmp edx, dword [r8]
jb 0x140024b2f
add ecx, r12d
add r8, 4
cmp ecx, r9d
jb 0x140024b1c
jmp 0x140024b32
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 0x140024b83
lea ebp, [rax + 2]
jmp 0x140024be3
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 0x140024bde
movsxd rcx, r8d
add rcx, qword [rdi + 0x10]
mov ecx, dword [rcx]
call fcn.140036a44
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 0x140024be3
mov esi, 7
mov eax, dword [rsp + 0x88]
mov edx, dword [rsp + 0x90]
mov word [r14 + 2], bp
mov rbp, qword [rsp + 0x80]
jmp 0x1400244cb
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