Function at 0x14001796c
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.1400174e0
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 0x1400179dc
mov qword [rsp + 0xb8], 1
jmp 0x1400179e8
mov qword [rsp + 0xb8], 0
cvtsi2sd xmm0, qword [rsp + 0xb8]
call fcn.1400165a0
mov dword [rsp + 0x38], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0x2c], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
call fcn.140013edc
movsx eax, al
shl eax, 1
mov dword [rsp + 0x30], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140017d7c
xor eax, eax
cmp eax, 7
je 0x140017d7c
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax*4], edx
jge 0x140017a9b
mov qword [rsp + 0xc0], 1
jmp 0x140017aa7
mov qword [rsp + 0xc0], 0
cvtsi2sd xmm0, qword [rsp + 0xc0]
call fcn.1400165a0
mov dword [rsp + 0x48], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0x3c], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
call fcn.140013edc
movsx eax, al
shl eax, 3
mov dword [rsp + 0x40], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x48]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140017b3e
xor eax, eax
cmp eax, 3
je 0x140017b3e
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140017a77
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x100]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax*4], edx
jle 0x140017b62
mov qword [rsp + 0xc8], 1
jmp 0x140017b6e
mov qword [rsp + 0xc8], 0
cvtsi2sd xmm0, qword [rsp + 0xc8]
call fcn.1400165a0
mov dword [rsp + 0x58], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0x4c], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
call fcn.140013edc
movsx eax, al
shl eax, 3
mov dword [rsp + 0x50], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x58]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140017c05
xor eax, eax
cmp eax, 9
je 0x140017c05
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
jmp 0x140017b3e
mov al, byte [0x140023b6c]
movsx eax, al
mov dword [rsp + 0x5c], eax
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
call fcn.140013edc
movsx eax, al
shl eax, 2
mov dword [rsp + 0x60], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140017d77
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jg 0x140017c86
mov qword [rsp + 0xd0], 1
jmp 0x140017c92
mov qword [rsp + 0xd0], 0
cvtsi2sd xmm0, qword [rsp + 0xd0]
call fcn.1400165a0
mov dword [rsp + 0x74], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0x68], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
call fcn.140013edc
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x6c], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x74]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140017d77
xor eax, eax
cmp eax, 0xa
je 0x140017d77
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 0x1400179c4
mov al, byte [0x140023b6c]
movsx eax, al
mov dword [rsp + 0x7c], eax
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x84], eax
call fcn.140013edc
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x80], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140017ed2
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x108], eax
jge 0x140017e0c
mov qword [rsp + 0xd8], 1
jmp 0x140017e18
mov qword [rsp + 0xd8], 0
cvtsi2sd xmm0, qword [rsp + 0xd8]
call fcn.1400165a0
mov dword [rsp + 0x94], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0x88], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x90], eax
call fcn.140013edc
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x8c], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x94]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140017ed2
xor eax, eax
cmp eax, 1
je 0x140017ed2
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.14001796c
nop
mov al, byte [0x140023b6c]
movsx eax, al
mov dword [rsp + 0x98], eax
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa0], eax
call fcn.140013edc
movsx eax, al
imul eax, eax, 6
mov dword [rsp + 0x9c], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x14001802e
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jge 0x140017f68
mov qword [rsp + 0xe0], 1
jmp 0x140017f74
mov qword [rsp + 0xe0], 0
cvtsi2sd xmm0, qword [rsp + 0xe0]
call fcn.1400165a0
mov dword [rsp + 0xb0], eax
mov cl, byte [0x140023b6c]
movsx ecx, cl
mov dword [rsp + 0xa4], ecx
call fcn.140013ee8
movsx eax, al
mov ecx, dword [rsp + 0xa4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xac], eax
call fcn.140013edc
movsx eax, al
imul eax, eax, 7
mov dword [rsp + 0xa8], eax
call fcn.140013ed8
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 [0x140023b6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x140023b68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xb0]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x14001802e
xor eax, eax
cmp eax, 2
je 0x14001802e
mov r8d, dword [rsp + 0x110]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
call fcn.14001796c
nop
add rsp, 0xf8
ret