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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
movsxd rcx, dword [rsp + 0xb8]
imul rcx, rcx, 0x14
mov rax, qword [rsp + 0xb0]
lea rax, [rax + rcx + 0x44]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0xc0], 0
je 0x18009783d
mov rax, qword [rsp + 0xc0]
mov dword [rax], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x44]
and eax, 0xfffffffe
test eax, eax
jne 0x180097cb6
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x3c], 0
jne 0x180097cb6
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x34], 0
jne 0x180097cb6
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x58]
and eax, 0xfffffffe
test eax, eax
jne 0x180097cb6
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x38], 0
je 0x1800978f1
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x38]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x38], 0
je 0x1800978ec
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0xc]
add edx, 0x80
shr edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], ecx
xor eax, eax
jmp 0x180098a2a
jmp 0x180097cb6
mov dword [rsp + 0x4c], 0
jmp 0x180097906
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x21
jge 0x180097a64
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x18009795b
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x58], eax
jmp 0x180097a03
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x18009799f
jmp 0x1800979bc
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x180097a32
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x5c], 1
jmp 0x180097a58
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x5c], 0
cmp dword [rsp + 0x5c], 0
je 0x180097a64
jmp 0x1800978fb
cmp dword [rsp + 0x4c], 0x21
jne 0x180097a75
mov eax, 0x80000000
jmp 0x180098a2a
cmp dword [rsp + 0x4c], 2
jge 0x180097a90
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x4c]
mov dword [rcx + 0x38], eax
jmp 0x180097c54
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x38], 0
jmp 0x180097ab3
mov eax, dword [rsp + 0x48]
shl eax, 1
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
sub eax, 1
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x180097c38
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x180097b13
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x60], eax
jmp 0x180097bbb
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x180097b57
jmp 0x180097b74
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180097bea
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x64], 1
jmp 0x180097c10
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
je 0x180097c33
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rcx + 0x38]
or ecx, eax
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x38], ecx
jmp 0x180097aa9
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rcx + 0x38]
or ecx, eax
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x38], 0
je 0x180097cb6
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0xc]
add edx, 0x80
shr edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], ecx
mov rdi, qword [rsp + 0xb0]
add rdi, 0x44
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rdi, qword [rsp + 0xb0]
add rdi, 0x58
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
xor eax, eax
jmp 0x180098a2a
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x3c], 0
je 0x180097ce0
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x3c], 0
mov dword [rsp + 0x30], 0
jmp 0x1800983cf
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 8
jge 0x180097dd1
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
jne 0x180097d54
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx edx, word [rax]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf4]
movzx ecx, al
shl edx, cl
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
or ecx, edx
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 0xff
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
movsxd rcx, dword [rax + 0xf4]
add rcx, 0x10
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
jmp 0x180097de8
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 0xff
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xff
jne 0x180098309
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 8
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 8
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x30], 8
jmp 0x180097e49
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x11
jae 0x180097fa7
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x180097e9e
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x68], eax
jmp 0x180097f46
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x180097ee2
jmp 0x180097eff
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x180097f75
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x6c], 1
jmp 0x180097f9b
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x6c], 0
cmp dword [rsp + 0x6c], 0
je 0x180097fa7
jmp 0x180097e3e
cmp dword [rsp + 0x30], 0x11
jne 0x180097fb8
mov eax, 0x80000000
jmp 0x180098a2a
cmp dword [rsp + 0x30], 0x10
jne 0x180098307
mov dword [rsp + 0x54], 0
jmp 0x180097fd8
mov eax, dword [rsp + 0x54]
add eax, 1
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x21
jge 0x180098136
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x18009802d
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x70], eax
jmp 0x1800980d5
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x180098071
jmp 0x18009808e
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x180098104
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x74], 1
jmp 0x18009812a
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x74], 0
cmp dword [rsp + 0x74], 0
je 0x180098136
jmp 0x180097fcd
cmp dword [rsp + 0x54], 0x21
jne 0x180098147
mov eax, 0x80000000
jmp 0x180098a2a
cmp dword [rsp + 0x54], 2
jge 0x18009815b
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
jmp 0x1800982fc
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x30], 0
jmp 0x180098177
mov eax, dword [rsp + 0x50]
shl eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
sub eax, 1
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1800982ee
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x1800981d7
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x78], eax
jmp 0x18009827f
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x18009821b
jmp 0x180098238
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x1800982ae
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x7c], 1
jmp 0x1800982d4
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x7c], 0
cmp dword [rsp + 0x7c], 0
je 0x1800982e9
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x30]
or eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18009816d
mov ecx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x30]
or eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 0x10
mov dword [rsp + 0x30], eax
jmp 0x180098369
movsxd rcx, dword [rsp + 0x20]
lea rax, [0x1800c2330]
movsx eax, byte [rax + rcx]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
add edx, 1
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, edx
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov ecx, dword [rsp + 0x30]
add ecx, 1
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
shr eax, cl
mov ecx, eax
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x34], 0
je 0x180098398
mov ecx, dword [rsp + 0x30]
and ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x34], ecx
mov eax, dword [rsp + 0x30]
shr eax, 1
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x1800983b4
mov ecx, dword [rsp + 0x30]
and ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x34], ecx
mov eax, dword [rsp + 0x30]
shr eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0x34]
not ecx
and ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0x3c], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x18]
and eax, 8
test eax, eax
je 0x1800983f8
cmp dword [rsp + 0xb8], 0
jne 0x1800983f8
mov rcx, qword [rsp + 0xb0]
call fcn.180097590
cmp dword [rsp + 0x30], 0
jne 0x180098441
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
shr eax, 4
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
add eax, 0x7e
xor edx, edx
mov ecx, 0x80
div ecx
mov edx, eax
shl edx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax], ecx
jmp 0x1800985ad
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
shr eax, 4
add eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
add eax, 0x80
xor edx, edx
mov ecx, 0x80
div ecx
mov ecx, eax
imul ecx, ecx, 5
mov rax, qword [rsp + 0x40]
add ecx, dword [rax]
mov rax, qword [rsp + 0x40]
mov dword [rax], ecx
cmp dword [rsp + 0x30], 1
jne 0x1800984c5
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
shr ecx, 4
mov eax, dword [rsp + 0x38]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
add eax, 0x3e
xor edx, edx
mov ecx, 0x40
div ecx
mov edx, eax
shl edx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], ecx
jmp 0x1800985ad
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 4]
shr ecx, 4
mov eax, dword [rsp + 0x38]
lea eax, [rax + rcx + 1]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
add eax, 0x40
xor edx, edx
mov ecx, 0x40
div ecx
mov ecx, eax
imul ecx, ecx, 5
mov rax, qword [rsp + 0x40]
add ecx, dword [rax + 4]
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], ecx
cmp dword [rsp + 0x30], 2
jne 0x18009854d
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
shr ecx, 4
mov eax, dword [rsp + 0x38]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
add eax, 0x1e
xor edx, edx
mov ecx, 0x20
div ecx
mov edx, eax
shl edx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], ecx
jmp 0x1800985ad
mov ecx, dword [rsp + 0x30]
sub ecx, 2
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
shr eax, 4
add eax, 1
imul ecx, eax
mov eax, dword [rsp + 0x38]
add eax, ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 8]
shr ecx, 4
mov eax, dword [rsp + 0x38]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
add eax, 0x20
xor edx, edx
mov ecx, 0x20
div ecx
mov ecx, eax
imul ecx, ecx, 5
mov rax, qword [rsp + 0x40]
add ecx, dword [rax + 8]
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], ecx
mov eax, dword [rsp + 0x38]
and eax, 0x7fffffff
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x2c]
and eax, 0x7fffffff
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x38]
lea eax, [rcx + rax + 1]
shr eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
jne 0x18009860f
mov eax, dword [rsp + 0x38]
mov edx, dword [rsp + 0x2c]
sub edx, eax
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
call fcn.1800996e0
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
jmp 0x1800987c5
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov rax, qword [rsp + 0x40]
cmp ecx, dword [rax + 0x10]
jbe 0x1800987c5
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x180098674
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x80], eax
jmp 0x18009871f
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x1800986b8
jmp 0x1800986d5
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x180098754
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x84], 1
jmp 0x18009877d
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x84], 0
cmp dword [rsp + 0x84], 0
je 0x1800987a3
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x38], eax
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x38]
lea eax, [rcx + rax + 1]
shr eax, 1
mov dword [rsp + 0x24], eax
jmp 0x1800987c0
mov eax, dword [rsp + 0x24]
sub eax, 1
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x2c]
mov eax, dword [rsp + 0x38]
lea eax, [rcx + rax + 1]
shr eax, 1
mov dword [rsp + 0x24], eax
jmp 0x18009860f
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0xf4], 0
je 0x180098812
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf4]
sub ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x88], eax
jmp 0x1800988bd
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0xe0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rax + 0xe0], rcx
mov rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xd8]
cmp qword [rcx + 0xe0], rax
je 0x180098856
jmp 0x180098873
mov rcx, qword [rsp + 0xb0]
add rcx, 0xd0
mov rax, qword [rsp + 0xb0]
call qword [rax + 0xe8]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf4], 0xf
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0xe0]
movzx ecx, word [rax]
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0xf8]
and eax, 1
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x1800988f2
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x8c], 1
jmp 0x18009891b
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rax + 0xf8]
shr ecx, 1
mov rax, qword [rsp + 0xb0]
mov dword [rax + 0xf8], ecx
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x110], 0
je 0x1800989b0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x10], 0
je 0x1800989b0
mov eax, dword [rsp + 0x38]
mov edx, dword [rsp + 0x2c]
sub edx, eax
mov rcx, qword [rsp + 0xb0]
add rcx, 0x100
call fcn.1800996e0
add eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0xc0], 0
je 0x1800989b0
cmp dword [rsp + 0x34], 0
je 0x18009898e
mov ecx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x24]
sub eax, ecx
mov dword [rsp + 0x90], eax
jmp 0x18009899f
mov ecx, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
sub eax, ecx
mov dword [rsp + 0x90], eax
mov rcx, qword [rsp + 0xc0]
mov eax, dword [rsp + 0x90]
mov dword [rcx], eax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x18]
and eax, 0x200
test eax, eax
je 0x180098a02
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0xc]
add edx, 0x80
shr edx, 8
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0xc]
sub ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], ecx
mov ecx, dword [rsp + 0x24]
call fcn.180099a30
mov ecx, eax
mov rax, qword [rsp + 0x40]
add ecx, dword [rax + 0xc]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], ecx
cmp dword [rsp + 0x34], 0
je 0x180098a18
mov eax, dword [rsp + 0x24]
not eax
mov dword [rsp + 0x94], eax
jmp 0x180098a23
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
add rsp, 0xa0
pop rdi
ret