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

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r13
sub rsp, 0x2d8
mov rax, qword [0x1400c5040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r9, qword [rcx]
lea rsi, [rcx + 0x2688]
mov r13, rcx
mov qword [rsp + 0xa0], rcx
lea rcx, [0x140092ee0]
mov qword [rsp + 0xa8], rdx
xor edi, edi
mov qword [rsp + 0xb8], r9
movsxd rax, dword [r9 + 0xc]
lea rbx, [rcx + rax*8]
mov ecx, dword [r13 + 0x38]
mov eax, 0x24924925
mov qword [rsp + 0x58], rbx
mul ecx
mov eax, dword [rbx]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [rsp + 0x94], ecx
cmp eax, 0x159b
je 0x14002144f
mov qword [r11 + 0x18], rbp
lea rdx, [0x140091940]
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop dword [rax + rax]
movsxd rcx, eax
mov r12d, edi
add rcx, rdx
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x84], edi
mov ebp, edi
mov dword [rsp + 0x6c], edi
mov r14d, edi
mov dword [rsp + 0x60], edi
movzx eax, byte [rcx]
test al, al
je 0x140021410
nop dword [rax]
xor r15b, r15b
mov byte [rsp + 0x30], r15b
cmp al, 0x20
jne 0x140020b08
nop dword [rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140020b00
lea r9, [rsp + 0x80]
mov rdx, r13
lea r8, [rsp + 0x90]
call fcn.140022630
mov edx, dword [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0xb0], rax
test edx, edx
je 0x140021258
test byte [rbx + 4], 1
mov eax, 0x7fffffff
mov esi, 0x80000000
cmove esi, eax
mov eax, edi
mov dword [rsp + 0x7c], eax
test edx, edx
je 0x14002122f
mov dword [rsp + 0x4c], esi
nop dword [rax]
lea rcx, [rsp + 0x78]
xor r12b, r12b
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x90]
mov rcx, r13
mov byte [rsp + 0x40], r12b
xor r9d, r9d
mov r8d, eax
call fcn.140022790
test eax, eax
je 0x1400211fb
mov rbx, qword [rsp + 0xa8]
mov r8d, 1
mov rcx, rbx
mov edx, eax
call fcn.140012f80
mov ecx, eax
mov rax, qword [rbx + 0x78]
movsd xmm0, qword [rax + 0xb8]
movsd qword [rsp + 0xe0], xmm0
movups xmm1, xmmword [rax + 0x98]
movups xmm2, xmmword [rax + 0xa8]
movups xmmword [rsp + 0xc0], xmm1
test ecx, ecx
jne 0x1400211fb
movq rax, xmm1
shr rax, 0x10
cmp ax, 2
jle 0x1400211fb
mov edx, 0xffffffff
movd eax, xmm1
mov r10d, edx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x44], edx
mov r9d, edi
movsx r15, ax
mov r11d, edx
test r15, r15
jle 0x1400212e0
mov esi, dword [rsp + 0x78]
movdqa xmm0, xmm2
mov r12, qword [rsp + 0xc8]
psrldq xmm0, 8
movq r13, xmm0
lea ebx, [r11 + 1]
movsx r11d, word [r13 + rdi*2]
cmp r11d, ebx
jle 0x140020cf5
mov rcx, qword [rsp + 0x58]
mov edx, ebx
movsxd rax, ebx
shl rax, 3
test byte [rcx + 4], 3
jne 0x140020c98
lea rcx, [r12 + 4]
add rcx, rax
test r10d, r10d
js 0x140020c7a
mov eax, dword [rcx]
cmp eax, r9d
jl 0x140020c7a
lea r8d, [rax + rsi]
cmp ebp, r8d
jg 0x140020c8b
mov ebp, r8d
jmp 0x140020c8b
mov r9d, dword [rcx]
mov r10d, edx
lea eax, [r9 + rsi]
cmp r14d, eax
cmovge r14d, eax
inc edx
add rcx, 8
cmp edx, r11d
jle 0x140020c60
jmp 0x140020cd4
add rax, 4
add rax, r12
nop
test r10d, r10d
js 0x140020cba
mov ecx, dword [rax]
cmp ecx, r9d
jg 0x140020cba
lea r8d, [rcx + rsi]
cmp r14d, r8d
jl 0x140020cc9
mov r14d, r8d
jmp 0x140020cc9
mov r9d, dword [rax]
mov r10d, edx
lea ecx, [r9 + rsi]
cmp ebp, ecx
cmovle ebp, ecx
inc edx
add rax, 8
cmp edx, r11d
jle 0x140020ca0
mov dword [rsp + 0x6c], ebp
mov dword [rsp + 0x60], r14d
cmp r10d, dword [rsp + 0x44]
jle 0x140020cf1
mov edx, ebx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x44], r11d
jmp 0x140020cf5
mov edx, dword [rsp + 0x34]
inc rdi
cmp rdi, r15
jl 0x140020c31
movzx r12d, byte [rsp + 0x40]
test r10d, r10d
js 0x1400212e7
mov rax, qword [rsp + 0xc8]
movq r15, xmm2
movsxd rbx, dword [rsp + 0x44]
mov r11d, 0xffffffff
mov r12, qword [rsp + 0xc8]
mov ecx, r10d
movsxd r8, r10d
mov r13, rbx
mov dword [rsp + 0x3c], r10d
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x98], rbx
mov edi, dword [rax + r8*8]
movzx eax, byte [r8 + r15]
and al, 3
cmp al, 1
cmove r11d, r10d
mov dword [rsp + 0x38], r11d
mov esi, r11d
mov dword [rsp + 0x48], r11d
nop dword [rax]
cmp ecx, edx
jle 0x140020d7b
dec ecx
dec r8
jmp 0x140020d80
mov ecx, ebx
mov r8, r13
mov edx, dword [r12 + r8*8 + 4]
mov eax, edx
sub eax, r9d
jns 0x140020d91
mov eax, r9d
sub eax, edx
cmp eax, 5
jle 0x140020db5
mov r11d, dword [r12 + r8*8]
mov edx, r11d
sub edx, edi
jns 0x140020da6
mov edx, edi
sub edx, r11d
mov r11d, dword [rsp + 0x38]
lea eax, [rax + rax*4]
shl eax, 2
cmp edx, eax
jle 0x140020ddd
movzx eax, byte [r8 + r15]
and al, 3
mov dword [rsp + 0x3c], ecx
cmp al, 1
jne 0x140020dd4
test esi, esi
mov dword [rsp + 0x38], ecx
mov r11d, ecx
cmovs esi, ecx
mov dword [rsp + 0x48], esi
mov edx, dword [rsp + 0x34]
cmp ecx, r10d
jne 0x140020d70
movsxd rbp, dword [rsp + 0x34]
mov ebx, r10d
mov r14, qword [rsp + 0xc8]
mov rsi, rbp
mov r12d, ebx
movsxd rdx, r10d
cmp rdx, r13
jge 0x140020e02
inc ebx
inc rdx
jmp 0x140020e07
mov ebx, ebp
mov rdx, rsi
mov ecx, dword [r14 + rdx*8 + 4]
mov eax, ecx
sub eax, r9d
jns 0x140020e18
mov eax, r9d
sub eax, ecx
cmp eax, 5
jle 0x140020e37
mov r8d, dword [r14 + rdx*8]
mov ecx, r8d
sub ecx, edi
jns 0x140020e2d
mov ecx, edi
sub ecx, r8d
lea eax, [rax + rax*4]
shl eax, 2
cmp ecx, eax
jle 0x140020e55
movzx eax, byte [rdx + r15]
mov r12d, ebx
and al, 3
cmp al, 1
jne 0x140020e50
test r11d, r11d
mov dword [rsp + 0x48], ebx
cmovs r11d, ebx
cmp ebx, r10d
jne 0x140020df6
mov r8, qword [rsp + 0x58]
mov ebp, dword [rsp + 0x6c]
mov r14d, dword [rsp + 0x60]
mov dword [rsp + 0x68], r12d
test byte [r8 + 4], 0x10
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x64], ebx
je 0x1400211a7
mov r8, qword [rsp + 0xc8]
mov eax, 0x51eb851f
mov r11, qword [rsp + 0xa0]
movsxd rbx, dword [rsp + 0x3c]
mov r11d, dword [r11 + 0x38]
mul r11d
movsxd rax, r12d
shr edx, 3
mov dword [rsp + 0x54], edx
mov ecx, dword [r8 + rax*8]
mov eax, ecx
mov r8d, dword [r8 + rbx*8]
sub eax, r8d
sub r8d, ecx
test eax, eax
cmovns r8d, eax
cmp r8d, edx
jge 0x140021067
mov r8d, dword [rsp + 0x44]
mov ecx, r12d
sub r8d, dword [rsp + 0x34]
sub ecx, ebx
add ecx, 2
cmp ecx, r8d
jg 0x140021067
mov r15, qword [rsp + 0x98]
mov ecx, r10d
mov r12, qword [rsp + 0xc8]
mov r14d, dword [rsp + 0x44]
shr r11d, 2
xor r13d, r13d
movsxd r8, r10d
mov ebx, r13d
mov dword [rsp + 0x70], r11d
mov rax, r8
nop
cmp rax, rsi
jle 0x140020f1c
dec ecx
dec rax
jmp 0x140020f22
mov ecx, r14d
mov rax, r15
mov edx, dword [r12 + rax*8]
cmp edx, edi
jne 0x140020f2f
cmp rax, r8
jne 0x140020f10
mov r14d, dword [rsp + 0x60]
cmp ecx, r10d
je 0x1400211ef
movsxd rax, dword [rsp + 0x68]
cmp edx, edi
mov dword [rsp + 0x74], eax
mov r8d, eax
setl r12b
mov r10, rax
xor sil, sil
mov r15, rax
test sil, sil
jne 0x140020f85
mov rax, qword [rsp + 0x88]
mov ebx, 0xffffffff
mov dword [rsp + 0x74], r8d
mov r15, r10
mov sil, 1
movzx eax, byte [r10 + rax]
and al, 3
cmp al, 1
cmove ebx, r8d
mov r13d, ebx
cmp r10, qword [rsp + 0x98]
jge 0x140020f97
inc r8d
inc r10
jmp 0x140020fa2
movsxd rcx, dword [rsp + 0x34]
mov r8d, ecx
mov r10, rcx
mov rdx, qword [rsp + 0xc8]
mov eax, r9d
mov edi, dword [rdx + r15*8 + 4]
sub eax, edi
jns 0x140020fbb
mov eax, edi
sub eax, r9d
cmp eax, r11d
jle 0x140020fc8
xor sil, sil
jmp 0x14002104f
mov ecx, dword [rdx + r10*8 + 4]
sub ecx, edi
sub edi, dword [rdx + r10*8 + 4]
test ecx, ecx
cmovns edi, ecx
cmp edi, 5
jle 0x140021008
mov eax, dword [rdx + r10*8]
mov ecx, eax
mov edx, dword [rdx + r15*8]
sub ecx, edx
sub edx, eax
lea eax, [rdi + rdi*4]
test ecx, ecx
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jg 0x140021000
xor sil, sil
jmp 0x14002104f
mov rdx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0x88]
movzx eax, byte [r10 + rax]
and al, 3
cmp al, 1
jne 0x140021024
test ebx, ebx
mov r13d, r8d
cmovs ebx, r8d
mov ecx, dword [rdx + r15*8]
mov r11d, dword [rdx + r10*8]
mov edx, r11d
sub edx, ecx
cmp ecx, r11d
setl al
cmp al, r12b
jne 0x14002104a
sub ecx, r11d
test edx, edx
cmovns ecx, edx
cmp ecx, dword [rsp + 0x54]
jge 0x1400210c4
mov r11d, dword [rsp + 0x70]
cmp r8d, dword [rsp + 0x3c]
jne 0x140020f58
mov r15, qword [rsp + 0x88]
mov r12d, dword [rsp + 0x68]
mov ebx, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x3c]
mov r8, qword [rsp + 0x58]
add r9d, dword [rsp + 0x78]
test ebx, ebx
js 0x1400211b9
test r13d, r13d
js 0x1400211b9
mov rdx, qword [rsp + 0xc8]
movsxd rax, r13d
mov ecx, dword [rdx + rax*8]
movsxd rax, ebx
mov edx, dword [rdx + rax*8]
mov eax, ecx
sub eax, edx
sub edx, ecx
test eax, eax
cmovns edx, eax
cmp edx, dword [rsp + 0x94]
jle 0x1400211b9
xor r12b, r12b
jmp 0x1400212ec
mov r12, qword [rsp + 0xc8]
movsxd r15, dword [rsp + 0x74]
movsxd rax, dword [rsp + 0x64]
lea r11, [r12 + r15*8]
mov r9d, dword [r11 + 4]
lea rsi, [r12 + rax*8]
cmp r10, qword [rsp + 0x98]
jge 0x1400210f4
inc r8d
inc r10
jmp 0x1400210ff
movsxd rcx, dword [rsp + 0x34]
mov r8d, ecx
mov r10, rcx
mov ecx, dword [r12 + r10*8 + 4]
mov eax, ecx
sub eax, r9d
jns 0x140021110
mov eax, r9d
sub eax, ecx
cmp eax, 5
jle 0x14002112d
mov edx, dword [r11]
lea eax, [rdi + rdi*4]
mov ecx, dword [rsi]
sub ecx, edx
sub edx, dword [rsi]
test ecx, ecx
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jle 0x140021168
mov rax, qword [rsp + 0x88]
mov r13d, r8d
movzx eax, byte [r10 + rax]
and al, 3
cmp al, 1
jne 0x140021149
test ebx, ebx
cmovs ebx, r8d
cmp r8d, dword [rsp + 0x3c]
jne 0x1400210e2
mov r9d, dword [r12 + r15*8 + 4]
mov r10d, r15d
mov r15, qword [rsp + 0x88]
mov r12d, r8d
jmp 0x140021075
cmp r8d, dword [rsp + 0x34]
jle 0x14002118a
mov r9d, dword [r12 + r15*8 + 4]
dec r8d
mov r10d, r15d
mov r12d, r8d
mov r15, qword [rsp + 0x88]
jmp 0x140021075
mov r9d, dword [r12 + r15*8 + 4]
mov r10d, r15d
mov r8d, dword [rsp + 0x44]
mov r12d, r8d
mov r15, qword [rsp + 0x88]
jmp 0x140021075
mov r13d, dword [rsp + 0x48]
mov ebx, r11d
mov r10d, dword [rsp + 0x3c]
jmp 0x14002107a
movsxd rax, r10d
movzx ecx, byte [rax + r15]
and cl, 3
cmp cl, 1
jne 0x1400211e1
movsxd rax, r12d
movzx ecx, byte [rax + r15]
and cl, 3
cmp cl, 1
jne 0x1400211e1
xor r12b, r12b
jmp 0x1400212ec
test byte [r8 + 4], 4
mov r12b, 1
je 0x1400212ec
mov esi, dword [rsp + 0x4c]
xor edi, edi
movzx r15d, byte [rsp + 0x30]
mov eax, dword [rsp + 0x7c]
mov r13, qword [rsp + 0xa0]
inc eax
mov dword [rsp + 0x7c], eax
cmp eax, dword [rsp + 0x80]
jb 0x140020b60
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
mov r12d, dword [rsp + 0x84]
lea eax, [rsi + 0x7fffffff]
cmp eax, 0xfffffffd
ja 0x140021258
test r15b, r15b
je 0x140021337
mov eax, r12d
inc r12d
mov dword [rsp + 0x84], r12d
mov dword [rsp + rax*4 + 0x110], esi
mov r15d, dword [rsp + 0x50]
movzx eax, byte [rcx]
test al, al
jne 0x140020af0
mov eax, r12d
test r15d, r15d
jne 0x140021278
test eax, eax
je 0x140021402
lea rdx, [rsp + 0x110]
mov ecx, r12d
call fcn.140022b80
lea rdx, [rsp + 0x1e0]
mov ecx, r15d
call fcn.140022b80
mov ecx, dword [r13 + 0x2760]
lea rsi, [r13 + 0x2688]
lea r8, [rcx*8 + 0x37]
add r8, rcx
lea eax, [rcx + 1]
mov dword [rsi + 0xd8], eax
lea r8, [rsi + r8*4]
test r15d, r15d
jne 0x140021351
mov eax, r12d
shr rax, 1
mov ecx, dword [rsp + rax*4 + 0x110]
mov dword [r8 + 0xc], ecx
mov dword [r8], ecx
jmp 0x140021380
mov r8, qword [rsp + 0x58]
jmp 0x1400212f0
mov r8, qword [rsp + 0x58]
mov esi, dword [rsp + 0x4c]
xor edi, edi
test byte [r8 + 4], 1
je 0x140021318
cmp r9d, esi
jle 0x1400211f5
mov esi, r9d
mov dword [rsp + 0x4c], r9d
movzx r15d, r12b
mov byte [rsp + 0x30], r12b
jmp 0x1400211fb
cmp r9d, esi
jge 0x1400211f5
mov esi, r9d
mov dword [rsp + 0x4c], r9d
movzx r15d, r12b
mov byte [rsp + 0x30], r12b
jmp 0x1400211fb
mov r15d, dword [rsp + 0x50]
mov dword [rsp + r15*4 + 0x1e0], esi
inc r15d
mov dword [rsp + 0x50], r15d
jmp 0x14002125d
mov eax, r15d
shr rax, 1
mov ecx, dword [rsp + rax*4 + 0x1e0]
test r12d, r12d
jne 0x14002136c
mov dword [r8 + 0xc], ecx
mov dword [r8], ecx
jmp 0x140021380
mov eax, r12d
shr rax, 1
mov dword [r8], ecx
mov eax, dword [rsp + rax*4 + 0x110]
mov dword [r8 + 0xc], eax
mov r9d, dword [r8 + 0xc]
mov edx, dword [r8]
cmp r9d, edx
je 0x1400213b1
test byte [rbx + 4], 3
mov ecx, edi
mov eax, edi
setne cl
cmp r9d, edx
setg al
cmp eax, ecx
je 0x1400213b1
lea eax, [r9 + rdx]
cdq
sub eax, edx
sar eax, 1
mov dword [r8 + 0xc], eax
mov dword [r8], eax
mov dword [r8 + 0x18], ebp
mov eax, edi
mov dword [r8 + 0x1c], r14d
mov dword [r8 + 0x20], edi
test byte [rbx + 4], 1
je 0x1400213d2
mov dword [r8 + 0x20], 2
mov eax, 2
test byte [rbx + 4], 2
je 0x1400213df
or eax, 4
mov dword [r8 + 0x20], eax
test byte [rbx + 4], 4
je 0x1400213ec
or eax, 8
mov dword [r8 + 0x20], eax
test byte [rbx + 4], 8
lea rdx, [0x140091940]
je 0x140021410
or eax, 0x10
mov dword [r8 + 0x20], eax
jmp 0x140021410
lea rsi, [r13 + 0x2688]
lea rdx, [0x140091940]
mov eax, dword [rbx + 8]
add rbx, 8
mov qword [rsp + 0x58], rbx
cmp eax, 0x159b
jne 0x140020ac0
mov r15, qword [rsp + 0x2c0]
mov r14, qword [rsp + 0x2c8]
mov r12, qword [rsp + 0x2d0]
mov rbp, qword [rsp + 0x310]
mov r9, qword [rsp + 0xb8]
mov ebx, dword [rsi + 0xd8]
test ebx, ebx
je 0x1400214e6
lea rax, [rsp + 0xc0]
mov edx, ebx
lea rcx, [rsi + 0xdc]
nop
mov qword [rax], rcx
lea rax, [rax + 8]
add rcx, 0x24
sub rdx, 1
jne 0x140021470
lea rdx, [rsp + 0xc0]
mov ecx, ebx
call fcn.140021be0
lea eax, [rbx - 1]
test eax, eax
je 0x1400214e2
nop word [rax + rax]
mov eax, edi
mov rcx, qword [rsp + rax*8 + 0xc0]
test byte [rcx + 0x20], 6
je 0x1400214b4
add rcx, 0xc
lea r8d, [rdi + 1]
mov rdx, qword [rsp + r8*8 + 0xc0]
test byte [rdx + 0x20], 6
je 0x1400214ca
add rdx, 0xc
mov eax, dword [rdx]
cmp dword [rcx], eax
jle 0x1400214d2
mov dword [rcx], eax
mov eax, dword [rsi + 0xd8]
mov edi, r8d
dec eax
cmp r8d, eax
jb 0x1400214a0
xor eax, eax
jmp 0x140021525
mov rdx, qword [r13 + 0x30]
cmp dword [rdx + 8], 0
mov r8, qword [rdx + 0x10]
jbe 0x140021520
nop dword [rax]
nop dword [rax + rax]
mov eax, edi
movzx ecx, word [r8 + rax*2]
and ecx, 0x3fff
cmp ecx, dword [r9]
jne 0x140021519
mov word [r8 + rax*2], 0x42
inc edi
cmp edi, dword [rdx + 8]
jb 0x140021500
mov eax, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140074360
add rsp, 0x2d8
pop r13
pop rdi
pop rsi
pop rbx
ret