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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov eax, dword [rsp + 0xd0]
shl eax, 1
movsxd rcx, eax
mov rax, qword [rsp + 0xc8]
lea rax, [rax + rcx*4]
mov qword [rsp], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0xfffffffd
je 0x180089e8c
cmp dword [rsp + 0x70], 0xfffffffe
je 0x180089bc9
cmp dword [rsp + 0x70], 0xffffffff
je 0x180089906
cmp dword [rsp + 0x70], 0x11
je 0x180089188
cmp dword [rsp + 0x70], 0x12
je 0x1800893f0
jmp 0x18008967b
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x1800891a5
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x1800893eb
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
shl eax, 1
mov rcx, qword [rsp + 0xc0]
sub eax, dword [rcx + 0x14]
mov dword [rsp + 0x1c], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x14], eax
movsx eax, word [rsp + 0x1c]
cmp dword [rsp + 0x1c], eax
je 0x18008922e
mov edx, dword [rsp + 0x1c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov eax, dword [rsp + 0x1c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x74], eax
jmp 0x18008924a
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rsp + 0x1c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rcx], eax
cmp dword [rsp + 0x1c], 0
je 0x1800892cc
cmp dword [rsp + 0x20], 0
je 0x1800892cc
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x1c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x24]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 8]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
shl eax, 1
mov rcx, qword [rsp + 0xc0]
sub eax, dword [rcx + 0x34]
mov dword [rsp + 0x1c], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
mov dword [rcx + 0x34], eax
movsx eax, word [rsp + 0x1c]
cmp dword [rsp + 0x1c], eax
je 0x180089346
mov edx, dword [rsp + 0x1c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov eax, dword [rsp + 0x1c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x78], eax
jmp 0x180089362
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rsp + 0x1c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
mov dword [rcx + 4], eax
cmp dword [rsp + 0x1c], 0
je 0x1800893e6
cmp dword [rsp + 0x20], 0
je 0x1800893e6
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x1c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x28]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax + 0xc]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
jmp 0x180089197
jmp 0x18008a18b
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x18008940d
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x180089676
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x14]
mov eax, dword [rdx + 0x10]
sub eax, ecx
sar eax, 1
mov rcx, qword [rsp + 0xc0]
add eax, dword [rcx + 0x10]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x14], eax
movsx eax, word [rsp + 0x2c]
cmp dword [rsp + 0x2c], eax
je 0x1800894a3
mov edx, dword [rsp + 0x2c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov eax, dword [rsp + 0x2c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x7c], eax
jmp 0x1800894bf
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rsp + 0x2c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x7c]
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rcx], eax
cmp dword [rsp + 0x2c], 0
je 0x180089541
cmp dword [rsp + 0x30], 0
je 0x180089541
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x2c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x34]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + 8]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x34]
mov eax, dword [rdx + 0x30]
sub eax, ecx
sar eax, 1
mov rcx, qword [rsp + 0xc0]
add eax, dword [rcx + 0x30]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
mov dword [rcx + 0x34], eax
movsx eax, word [rsp + 0x2c]
cmp dword [rsp + 0x2c], eax
je 0x1800895cb
mov edx, dword [rsp + 0x2c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov eax, dword [rsp + 0x2c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x80], eax
jmp 0x1800895ea
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rsp + 0x2c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
mov dword [rcx + 4], eax
cmp dword [rsp + 0x2c], 0
je 0x180089671
cmp dword [rsp + 0x30], 0
je 0x180089671
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x2c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x38]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x38]
mov eax, dword [rax + 0xc]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
jmp 0x1800893ff
jmp 0x18008a18b
mov dword [rsp + 0x18], 0
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
and eax, 7
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x1800896b1
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x180089901
movsxd rcx, dword [rsp + 0x18]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + rcx*4 + 0x10]
mov dword [rsp + 0x3c], eax
movsx eax, word [rsp + 0x3c]
cmp dword [rsp + 0x3c], eax
je 0x180089720
mov edx, dword [rsp + 0x3c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov eax, dword [rsp + 0x3c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x84], eax
jmp 0x18008973f
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rsp + 0x3c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
mov edx, dword [rsp + 0x84]
add edx, eax
movsxd rcx, dword [rsp + 8]
mov rax, qword [rsp + 0xc0]
mov dword [rax + rcx*4 + 0x10], edx
cmp dword [rsp + 0x3c], 0
je 0x1800897b6
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0
je 0x1800897b6
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax]
mov eax, dword [rsp + 0x3c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x40]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x40]
mov eax, dword [rax + 8]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
movsxd rdx, dword [rsp + 8]
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + rdx*4 + 0x10]
mov dword [rcx], eax
movsxd rcx, dword [rsp + 0x18]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + rcx*4 + 0x30]
mov dword [rsp + 0x3c], eax
movsx eax, word [rsp + 0x3c]
cmp dword [rsp + 0x3c], eax
je 0x18008982e
mov edx, dword [rsp + 0x3c]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov eax, dword [rsp + 0x3c]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x88], eax
jmp 0x18008984d
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rsp + 0x3c]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 4]
mov edx, dword [rsp + 0x88]
add edx, eax
movsxd rcx, dword [rsp + 8]
mov rax, qword [rsp + 0xc0]
mov dword [rax + rcx*4 + 0x30], edx
cmp dword [rsp + 0x3c], 0
je 0x1800898c7
mov rax, qword [rsp + 0x10]
cmp dword [rax + 4], 0
je 0x1800898c7
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + 4]
mov eax, dword [rsp + 0x3c]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x44]
mov edx, dword [rcx + 4]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x44]
mov eax, dword [rax + 0xc]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
movsxd rdx, dword [rsp + 8]
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + rdx*4 + 0x30]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x18]
add eax, 1
and eax, 7
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 8]
add eax, 1
and eax, 7
mov dword [rsp + 8], eax
jmp 0x1800896a3
jmp 0x18008a18b
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x180089923
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x180089bc4
mov rax, qword [rsp + 0xc0]
movsx ecx, word [rax + 0x10]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], ecx
je 0x180089999
mov rax, qword [rsp + 0xc0]
mov edx, dword [rax + 0x10]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x8c], eax
jmp 0x1800899bf
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rcx + 0x10]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
add eax, dword [rsp + 0x8c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
je 0x180089a7d
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0
je 0x180089a7d
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax]
mov eax, dword [rdx + 0x10]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x4c]
mov edx, dword [rcx + 8]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 8], 0x400
jle 0x180089a5d
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rcx + 8]
xor ecx, eax
sub ecx, dword [rsp + 0x4c]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0x48]
mov dword [rcx], eax
movsx eax, word [rsp + 0x48]
cmp dword [rsp + 0x48], eax
je 0x180089ad3
mov edx, dword [rsp + 0x48]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov eax, dword [rsp + 0x48]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x90], eax
jmp 0x180089af2
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rsp + 0x48]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + 4]
add ecx, dword [rsp + 0x90]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x10], ecx
cmp dword [rsp + 0x48], 0
je 0x180089bac
mov rax, qword [rsp + 0x10]
cmp dword [rax + 4], 0
je 0x180089bac
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + 4]
mov eax, dword [rsp + 0x48]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x50]
mov edx, dword [rcx + 0xc]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x50]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 0x400
jle 0x180089b8c
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
sub ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
mov dword [rcx + 4], eax
jmp 0x180089915
jmp 0x18008a18b
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x180089be6
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x180089e87
mov rax, qword [rsp + 0xc0]
movsx ecx, word [rax + 0x30]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x30], ecx
je 0x180089c5c
mov rax, qword [rsp + 0xc0]
mov edx, dword [rax + 0x30]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x94], eax
jmp 0x180089c82
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rcx + 0x30]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 4]
add eax, dword [rsp + 0x94]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x30], 0
je 0x180089d43
mov rax, qword [rsp + 0x10]
cmp dword [rax + 4], 0
je 0x180089d43
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + 4]
mov eax, dword [rdx + 0x30]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x58]
mov edx, dword [rcx + 0xc]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x58]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 0x400
jle 0x180089d23
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x58]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
sub ecx, dword [rsp + 0x58]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0x54]
mov dword [rcx + 4], eax
movsx eax, word [rsp + 0x54]
cmp dword [rsp + 0x54], eax
je 0x180089d9a
mov edx, dword [rsp + 0x54]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov eax, dword [rsp + 0x54]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x98], eax
jmp 0x180089db9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rsp + 0x54]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x98], eax
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax]
add ecx, dword [rsp + 0x98]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0x30], ecx
cmp dword [rsp + 0x54], 0
je 0x180089e70
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0
je 0x180089e70
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax]
mov eax, dword [rsp + 0x54]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x5c]
mov edx, dword [rcx + 8]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x5c]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 8], 0x400
jle 0x180089e50
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rcx + 8]
xor ecx, eax
sub ecx, dword [rsp + 0x5c]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
mov dword [rcx], eax
jmp 0x180089bd8
jmp 0x18008a18b
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x10], rax
jmp 0x180089ea9
mov rax, qword [rsp + 0x10]
add rax, 8
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
cmp qword [rsp + 0x10], rax
jae 0x18008a18b
mov rax, qword [rsp + 0xc0]
movsx ecx, word [rax + 0x10]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], ecx
je 0x180089f1f
mov rax, qword [rsp + 0xc0]
mov edx, dword [rax + 0x10]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 8]
sar edx, 9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 8]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x180089f45
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
imul eax, dword [rcx + 0x10]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0x9c], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax]
add eax, dword [rsp + 0x9c]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 0
je 0x18008a003
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0
je 0x18008a003
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax]
mov eax, dword [rdx + 0x10]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x68]
mov edx, dword [rcx + 8]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x68]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 8], 0x400
jle 0x180089fe3
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x68]
mov ecx, dword [rcx + 8]
xor ecx, eax
sub ecx, dword [rsp + 0x68]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0xc0]
movsx ecx, word [rax + 0x30]
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x30], ecx
je 0x18008a06a
mov rax, qword [rsp + 0xc0]
mov edx, dword [rax + 0x30]
and edx, 0xffff
mov rax, qword [rsp + 0xc0]
imul edx, dword [rax + 0xc]
sar edx, 9
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x30]
and eax, 0xffff0000
sar eax, 9
mov rcx, qword [rsp + 0xc0]
imul eax, dword [rcx + 0xc]
lea eax, [rdx + rax + 1]
sar eax, 1
mov dword [rsp + 0xa0], eax
jmp 0x18008a090
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
imul eax, dword [rcx + 0x30]
add eax, 0x200
sar eax, 0xa
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 4]
add eax, dword [rsp + 0xa0]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x30], 0
je 0x18008a151
mov rax, qword [rsp + 0x10]
cmp dword [rax + 4], 0
je 0x18008a151
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0x10]
mov ecx, dword [rax + 4]
mov eax, dword [rdx + 0x30]
xor eax, ecx
sar eax, 0x1f
mov dword [rsp + 0x6c], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x6c]
mov edx, dword [rcx + 0xc]
xor edx, eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rax + 4]
sub eax, ecx
mov ecx, edx
add ecx, eax
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 0x400
jle 0x18008a131
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], 0x400
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x6c]
mov ecx, dword [rcx + 0xc]
xor ecx, eax
sub ecx, dword [rsp + 0x6c]
mov rax, qword [rsp + 0xc0]
mov dword [rax + 0xc], ecx
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x64]
mov dword [rcx + 0x30], eax
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0x64]
mov dword [rcx], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x60]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0x10]
mov eax, dword [rsp + 0x60]
mov dword [rcx + 4], eax
jmp 0x180089e9b
add rsp, 0xb8
ret