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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
call fcn.140022430
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x110]
mov ecx, dword [rsp + 0x108]
add ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jg 0x140022984
mov qword [rsp + 0xb8], 1
jmp 0x140022990
mov qword [rsp + 0xb8], 0
cvtsi2sd xmm0, qword [rsp + 0xb8]
call fcn.1400214ec
mov dword [rsp + 0x38], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x2c], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0x30], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x30]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022d23
xor eax, eax
cmp eax, 1
je 0x140022d23
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax*4], edx
jge 0x140022a44
mov qword [rsp + 0xc0], 1
jmp 0x140022a50
mov qword [rsp + 0xc0], 0
cvtsi2sd xmm0, qword [rsp + 0xc0]
call fcn.1400214ec
mov dword [rsp + 0x48], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x3c], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x40], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x40]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x48]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022ae7
xor eax, eax
cmp eax, 1
je 0x140022ae7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140022a20
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x100]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax*4], edx
jle 0x140022b0b
mov qword [rsp + 0xc8], 1
jmp 0x140022b17
mov qword [rsp + 0xc8], 0
cvtsi2sd xmm0, qword [rsp + 0xc8]
call fcn.1400214ec
mov dword [rsp + 0x58], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x4c], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
call fcn.14001e754
movsx eax, al
shl eax, 1
mov dword [rsp + 0x50], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x50]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x58]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022bad
xor eax, eax
cmp eax, 7
je 0x140022bad
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x140022ae7
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x5c], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
call fcn.14001e754
movsx eax, al
shl eax, 1
mov dword [rsp + 0x60], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x60]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140022d1e
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jg 0x140022c2d
mov qword [rsp + 0xd0], 1
jmp 0x140022c39
mov qword [rsp + 0xd0], 0
cvtsi2sd xmm0, qword [rsp + 0xd0]
call fcn.1400214ec
mov dword [rsp + 0x74], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x68], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0x6c], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x6c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x74]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022d1e
xor eax, eax
cmp eax, 8
je 0x140022d1e
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x78], eax
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x100]
mov r8, qword [rsp + 0x100]
mov eax, dword [r8 + rax*4]
mov dword [rdx + rcx*4], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x100]
mov edx, dword [rsp + 0x78]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x14002296c
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x7c], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x84], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x80], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x80]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140022e79
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x108], eax
jge 0x140022db3
mov qword [rsp + 0xd8], 1
jmp 0x140022dbf
mov qword [rsp + 0xd8], 0
cvtsi2sd xmm0, qword [rsp + 0xd8]
call fcn.1400214ec
mov dword [rsp + 0x94], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x88], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x90], eax
call fcn.14001e754
movsx eax, al
shl eax, 2
mov dword [rsp + 0x8c], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x8c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x90]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x94]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022e79
xor eax, eax
cmp eax, 9
je 0x140022e79
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.140022914
nop
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x98], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa0], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0x9c], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xa0]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140022fd5
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jge 0x140022f0f
mov qword [rsp + 0xe0], 1
jmp 0x140022f1b
mov qword [rsp + 0xe0], 0
cvtsi2sd xmm0, qword [rsp + 0xe0]
call fcn.1400214ec
mov dword [rsp + 0xb0], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0xa4], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0xa4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xac], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0xa8], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0xa8]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xac]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xb0]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140022fd5
xor eax, eax
cmp eax, 6
je 0x140022fd5
mov r8d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
call fcn.140022914
nop
add rsp, 0xf8
ret