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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x358
mov rax, qword [0x180127050]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0xd0], 0
lea rax, [rsp + 0x328]
mov rdi, rax
xor eax, eax
mov ecx, 5
rep stosb byte [rdi], al
mov dword [rsp + 0x200], 0
mov qword [rsp + 0x210], 0
mov rax, qword [rsp + 0x370]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x380], 0
jne 0x18005c0a0
mov eax, 7
jmp 0x18005df60
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax + 0xc]
mov rcx, qword [rsp + 0x370]
movzx ecx, word [rcx + 0x18]
add eax, ecx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 2
jge 0x18005c0cf
mov dword [rsp + 0x68], 0
jmp 0x18005c122
cmp dword [rsp + 0x378], 0
jne 0x18005c0e3
mov dword [rsp + 0x68], 0
jmp 0x18005c112
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x378], eax
jne 0x18005c105
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x390]
lea eax, [rax + rcx - 2]
mov dword [rsp + 0x68], eax
jmp 0x18005c112
mov eax, dword [rsp + 0x378]
dec eax
mov dword [rsp + 0x68], eax
mov eax, 2
sub eax, dword [rsp + 0x390]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x370]
movzx ecx, byte [rcx + 0xc]
sub eax, ecx
mov rcx, qword [rsp + 0x370]
movzx ecx, word [rcx + 0x18]
cmp eax, ecx
jne 0x18005c183
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax + 9]
add eax, 8
cdqe
mov rcx, qword [rsp + 0x370]
mov rcx, qword [rcx + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x170], rax
jmp 0x18005c1dd
mov rax, qword [rsp + 0x370]
movzx eax, word [rax + 0x1a]
mov ecx, dword [rsp + 0x68]
mov edx, dword [rsp + 0x40]
add edx, ecx
mov ecx, edx
mov rdx, qword [rsp + 0x370]
movzx edx, byte [rdx + 0xc]
sub ecx, edx
shl ecx, 1
movsxd rcx, ecx
mov rdx, qword [rsp + 0x370]
mov rdx, qword [rdx + 0x60]
movzx ecx, word [rdx + rcx]
ror cx, 8
movzx ecx, cx
and eax, ecx
cdqe
mov rcx, qword [rsp + 0x370]
add rax, qword [rcx + 0x50]
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
call fcn.180039240
mov dword [rsp + 0x74], eax
xor eax, eax
cmp eax, 1
je 0x18005c582
movsxd rax, dword [rsp + 0x40]
lea rax, [rsp + rax*8 + 0x2a0]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x90]
call fcn.180053540
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005c260
mov eax, dword [rsp + 0x40]
inc eax
cdqe
shl rax, 3
mov qword [rsp + 0x1d0], rax
lea rcx, [rsp + 0x2a0]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
rep stosb byte [rdi], al
jmp 0x18005dee9
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2a0]
cmp dword [rax + 0x14], 0
jge 0x18005c2bd
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.180052c10
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005c2bd
movsxd rax, dword [rsp + 0x40]
shl rax, 3
mov qword [rsp + 0x1b0], rax
lea rcx, [rsp + 0x2a0]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
rep stosb byte [rdi], al
jmp 0x18005dee9
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x184], eax
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x184], 0
jne 0x18005c2e1
jmp 0x18005c582
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x18005c394
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x370]
movzx ecx, word [rdx + rcx + 0x1c]
cmp eax, ecx
jne 0x18005c394
mov eax, 8
imul rax, rax, 0
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x370]
mov rax, qword [rdx + rax + 0x28]
mov qword [rsp + rcx*8 + 0x148], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x148]
call fcn.180039240
mov dword [rsp + 0x74], eax
movsxd rax, dword [rsp + 0x40]
mov rdx, qword [rsp + rax*8 + 0x148]
mov rcx, qword [rsp + 0x370]
mov rax, qword [rsp + 0x370]
call qword [rax + 0x78]
movsxd rcx, dword [rsp + 0x40]
movzx eax, ax
mov dword [rsp + rcx*4 + 0x288], eax
mov rax, qword [rsp + 0x370]
mov byte [rax + 0xc], 0
jmp 0x18005c57d
mov rax, qword [rsp + 0x370]
movzx eax, word [rax + 0x1a]
mov ecx, dword [rsp + 0x68]
mov edx, dword [rsp + 0x40]
add edx, ecx
mov ecx, edx
mov rdx, qword [rsp + 0x370]
movzx edx, byte [rdx + 0xc]
sub ecx, edx
shl ecx, 1
movsxd rcx, ecx
mov rdx, qword [rsp + 0x370]
mov rdx, qword [rdx + 0x60]
movzx ecx, word [rdx + rcx]
ror cx, 8
movzx ecx, cx
and eax, ecx
cdqe
mov rcx, qword [rsp + 0x370]
add rax, qword [rcx + 0x50]
movsxd rcx, dword [rsp + 0x40]
mov qword [rsp + rcx*8 + 0x148], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x148]
call fcn.180039240
mov dword [rsp + 0x74], eax
movsxd rax, dword [rsp + 0x40]
mov rdx, qword [rsp + rax*8 + 0x148]
mov rcx, qword [rsp + 0x370]
mov rax, qword [rsp + 0x370]
call qword [rax + 0x78]
movsxd rcx, dword [rsp + 0x40]
movzx eax, ax
mov dword [rsp + rcx*4 + 0x288], eax
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x26]
and eax, 0xc
test eax, eax
je 0x18005c542
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x370]
mov ecx, dword [rcx + 0x50]
mov eax, dword [rsp + rax*8 + 0x148]
sub eax, ecx
mov dword [rsp + 0x110], eax
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x288]
mov ecx, dword [rsp + 0x110]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x90]
cmp eax, dword [rcx + 0x34]
jle 0x18005c4d3
mov ecx, 0x1182d
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
shl rax, 3
mov qword [rsp + 0x1d8], rax
lea rcx, [rsp + 0x2a0]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x1d8]
rep stosb byte [rdi], al
jmp 0x18005dee9
movsxd rax, dword [rsp + 0x40]
movsxd rax, dword [rsp + rax*4 + 0x288]
movsxd rcx, dword [rsp + 0x40]
movsxd rdx, dword [rsp + 0x110]
mov rdi, qword [rsp + 0x380]
add rdi, rdx
mov rdx, rdi
mov rdi, rdx
mov rsi, qword [rsp + rcx*8 + 0x148]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x370]
mov rcx, qword [rcx + 0x50]
mov rax, qword [rsp + rax*8 + 0x148]
sub rax, rcx
mov rcx, qword [rsp + 0x380]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x40]
mov qword [rsp + rcx*8 + 0x148], rax
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
mov edx, dword [rsp + 0x40]
add edx, ecx
mov ecx, edx
mov rdx, qword [rsp + 0x370]
movzx edx, byte [rdx + 0xc]
sub ecx, edx
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + rax*4 + 0x288]
mov edx, ecx
mov rcx, qword [rsp + 0x370]
call fcn.18005a440
jmp 0x18005c1ee
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x30]
sub eax, 8
xor edx, edx
mov ecx, 6
div ecx
add eax, 4
mov ecx, dword [rsp + 0x5c]
imul ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
add eax, 3
and eax, 0xfffffffc
mov dword [rsp + 0x78], eax
movsxd rax, dword [rsp + 0x78]
movsxd rcx, dword [rsp + 0x78]
shl rcx, 1
lea rax, [rcx + rax*8]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x30]
add rax, rcx
mov dword [rsp + 0x168], eax
movsxd rax, dword [rsp + 0x168]
mov rdx, rax
xor ecx, ecx
call fcn.180032000
mov qword [rsp + 0x210], rax
cmp qword [rsp + 0x210], 0
jne 0x18005c60f
mov dword [rsp + 0x44], 7
jmp 0x18005dee9
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x210]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x218], rax
movsxd rax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x218]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x198], rax
mov eax, 8
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x2a0]
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
movzx eax, byte [rax + 8]
shl eax, 2
mov word [rsp + 0x58], ax
mov rax, qword [rsp + 0x208]
movzx eax, byte [rax + 3]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x40], 0
jmp 0x18005c692
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005cb6e
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2a0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0xb8], eax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x1a]
mov word [rsp + 0xa0], ax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x12]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + rax]
mov ecx, 8
imul rcx, rcx, 0
mov rcx, qword [rsp + rcx + 0x2a0]
mov edx, 1
imul rdx, rdx, 0
mov rcx, qword [rcx + 0x50]
movzx ecx, byte [rcx + rdx]
cmp eax, ecx
je 0x18005c764
mov ecx, 0x11870
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xc]
mov ecx, dword [rsp + 0xb8]
add ecx, eax
mov eax, ecx
cdqe
shl rax, 1
mov qword [rsp + 0x1c8], rax
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x218]
lea rcx, [rdx + rcx*2]
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x1c8]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xc]
test eax, eax
jle 0x18005c8f3
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax + 0x1c]
cmp dword [rsp + 0xb8], eax
jge 0x18005c7f1
mov ecx, 0x11888
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax + 0x1c]
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0x4c], 0
jmp 0x18005c822
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x4c], eax
jge 0x18005c895
movzx eax, word [rsp + 0xa0]
mov rcx, qword [rsp + 0xc8]
movzx ecx, word [rcx]
ror cx, 8
movzx ecx, cx
and eax, ecx
cdqe
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x210]
mov qword [rdx + rcx*8], rax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x200]
inc eax
mov dword [rsp + 0x200], eax
jmp 0x18005c818
mov dword [rsp + 0x48], 0
jmp 0x18005c8a9
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xc]
cmp dword [rsp + 0x48], eax
jge 0x18005c8f3
movsxd rax, dword [rsp + 0x48]
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x210]
mov rdi, qword [rsp + 0x88]
mov rax, qword [rdi + rax*8 + 0x28]
mov qword [rdx + rcx*8], rax
mov eax, dword [rsp + 0x200]
inc eax
mov dword [rsp + 0x200], eax
jmp 0x18005c89f
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x12]
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 0x18]
shl ecx, 1
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1b8]
cmp qword [rsp + 0xc8], rax
jae 0x18005c9a1
movzx eax, word [rsp + 0xa0]
mov rcx, qword [rsp + 0xc8]
movzx ecx, word [rcx]
ror cx, 8
movzx ecx, cx
and eax, ecx
cdqe
mov rcx, qword [rsp + 0x160]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x210]
mov qword [rdx + rcx*8], rax
mov rax, qword [rsp + 0xc8]
add rax, 2
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x200]
inc eax
mov dword [rsp + 0x200], eax
jmp 0x18005c929
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
mov dword [rsp + rax*4 + 0x2e0], ecx
mov eax, dword [rsp + 0x5c]
dec eax
cmp dword [rsp + 0x40], eax
jge 0x18005cb69
cmp dword [rsp + 0x64], 0
jne 0x18005cb69
movsxd rax, dword [rsp + 0x40]
movzx eax, word [rsp + rax*4 + 0x288]
mov word [rsp + 0x80], ax
movsxd rax, dword [rsp + 0x200]
mov rcx, qword [rsp + 0x218]
movzx edx, word [rsp + 0x80]
mov word [rcx + rax*2], dx
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x198]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x188], rax
movzx eax, word [rsp + 0x80]
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x98], eax
movzx eax, word [rsp + 0x80]
movsxd rcx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x188]
mov rsi, qword [rsp + rcx*8 + 0x148]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x58]
mov rcx, qword [rsp + 0x188]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x210]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x200]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
movzx ecx, word [rsp + 0x58]
sub eax, ecx
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x218]
mov word [rdx + rcx*2], ax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x18005caef
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x50]
movsxd rdx, dword [rsp + 0x200]
mov rdi, qword [rsp + 0x210]
mov rdx, qword [rdi + rdx*8]
mov eax, dword [rcx + rax]
mov dword [rdx], eax
jmp 0x18005cb59
movsxd rax, dword [rsp + 0x200]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
cmp eax, 4
jge 0x18005cb59
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x198]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x98]
inc eax
mov dword [rsp + 0x98], eax
movsxd rax, dword [rsp + 0x200]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
inc ax
movsxd rcx, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x218]
mov word [rdx + rcx*2], ax
jmp 0x18005caef
mov eax, dword [rsp + 0x200]
inc eax
mov dword [rsp + 0x200], eax
jmp 0x18005c688
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x34]
movzx ecx, word [rsp + 0x58]
lea eax, [rax + rcx - 0xc]
mov dword [rsp + 0xac], eax
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
jmp 0x18005cbaf
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005cd31
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2a0]
mov qword [rsp + 0xf8], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x58]
mov qword [rsp + rax*8 + 0x220], rcx
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x48]
mov eax, dword [rsp + rax*4 + 0x2e0]
mov dword [rsp + rcx*4 + 0x250], eax
cmp dword [rsp + 0x48], 0
je 0x18005cc32
movsxd rax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x48]
dec ecx
movsxd rcx, ecx
mov ecx, dword [rsp + rcx*4 + 0x250]
cmp dword [rsp + rax*4 + 0x250], ecx
jne 0x18005cc32
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x64], 0
jne 0x18005cc76
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x370]
mov rcx, qword [rcx + 0x58]
mov qword [rsp + rax*8 + 0x220], rcx
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x2e0]
inc eax
movsxd rcx, dword [rsp + 0x48]
mov dword [rsp + rcx*4 + 0x250], eax
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 0x14]
mov ecx, dword [rsp + 0xac]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x288], eax
mov dword [rsp + 0x4c], 0
jmp 0x18005ccac
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0xf8]
movzx eax, byte [rax + 0xc]
cmp dword [rsp + 0x4c], eax
jge 0x18005cd14
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + 0x1c0], rax
movsxd rcx, dword [rsp + 0x4c]
mov rdx, qword [rsp + 0xf8]
mov rdx, qword [rdx + rcx*8 + 0x28]
mov rcx, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0xf8]
call qword [rdi + 0x78]
movzx eax, ax
mov rcx, qword [rsp + 0x1c0]
mov ecx, dword [rsp + rcx*4 + 0x288]
lea eax, [rax + rcx + 2]
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x288], eax
jmp 0x18005cca2
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x2e0]
mov dword [rsp + rcx*4 + 0x270], eax
jmp 0x18005cb9b
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
jmp 0x18005cd4d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x18005d019
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xac]
cmp dword [rsp + rax*4 + 0x288], ecx
jle 0x18005ce9e
mov eax, dword [rsp + 0x40]
inc eax
cmp eax, dword [rsp + 0x48]
jl 0x18005cdce
mov eax, dword [rsp + 0x40]
add eax, 2
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 5
jle 0x18005cda5
mov ecx, 0x118ed
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov dword [rsp + rax*4 + 0x288], 0
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov ecx, dword [rsp + 0x200]
mov dword [rsp + rax*4 + 0x270], ecx
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x270]
dec eax
mov edx, eax
lea rcx, [rsp + 0x200]
call fcn.18005aac0
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + rax*4 + 0x288]
sub eax, ecx
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x288], eax
cmp dword [rsp + 0x64], 0
jne 0x18005ce5c
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005ce54
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
jmp 0x18005ce5c
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov eax, dword [rsp + rax*4 + 0x288]
add eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rcx, ecx
mov dword [rsp + rcx*4 + 0x288], eax
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x270]
dec eax
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x270], eax
jmp 0x18005cd5b
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005cfa1
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x288]
add eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0xac]
jle 0x18005cef8
jmp 0x18005cfa1
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x288]
add eax, dword [rsp + 0x60]
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x288], eax
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x270]
inc eax
movsxd rcx, dword [rsp + 0x40]
mov dword [rsp + rcx*4 + 0x270], eax
cmp dword [rsp + 0x64], 0
jne 0x18005cf77
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005cf6f
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
jmp 0x18005cf77
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + rax*4 + 0x288]
sub eax, ecx
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rcx, ecx
mov dword [rsp + rcx*4 + 0x288], eax
jmp 0x18005ce9e
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jl 0x18005cfc2
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x48], eax
jmp 0x18005d014
cmp dword [rsp + 0x40], 0
jle 0x18005cfe1
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
mov dword [rsp + 0x118], eax
jmp 0x18005cfec
mov dword [rsp + 0x118], 0
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x118]
cmp dword [rsp + rax*4 + 0x270], ecx
jg 0x18005d014
mov ecx, 0x1190e
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
jmp 0x18005cd43
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x18005d02f
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x18005d239
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x288]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x288]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
dec eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
inc eax
sub eax, dword [rsp + 0x64]
mov dword [rsp + 0x9c], eax
mov edx, dword [rsp + 0x9c]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
cmp dword [rsp + 0xa4], 0
je 0x18005d131
cmp dword [rsp + 0x390], 0
jne 0x18005d12c
mov eax, dword [rsp + 0x48]
dec eax
cmp dword [rsp + 0x40], eax
jne 0x18005d0db
mov dword [rsp + 0x128], 0
jmp 0x18005d0e6
mov dword [rsp + 0x128], 2
movsxd rax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0xa4]
lea eax, [rcx + rax + 2]
movsxd rcx, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x218]
movzx ecx, word [rdx + rcx*2]
add ecx, dword [rsp + 0x128]
mov edx, dword [rsp + 0xb0]
sub edx, ecx
mov ecx, edx
cmp eax, ecx
jle 0x18005d131
jmp 0x18005d1b5
movsxd rax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0xa4]
lea eax, [rcx + rax + 2]
mov dword [rsp + 0xa4], eax
movsxd rax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
add eax, 2
mov ecx, dword [rsp + 0xb0]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov ecx, dword [rsp + 0x70]
mov dword [rsp + rax*4 + 0x270], ecx
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x9c]
dec eax
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x70], 0
jge 0x18005d09d
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xa4]
mov dword [rsp + rax*4 + 0x288], ecx
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov ecx, dword [rsp + 0xb0]
mov dword [rsp + rax*4 + 0x288], ecx
cmp dword [rsp + 0x40], 1
jle 0x18005d1fe
mov eax, dword [rsp + 0x40]
sub eax, 2
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
mov dword [rsp + 0x108], eax
jmp 0x18005d209
mov dword [rsp + 0x108], 0
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov ecx, dword [rsp + 0x108]
cmp dword [rsp + rax*4 + 0x270], ecx
jg 0x18005d234
mov ecx, 0x11938
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
jmp 0x18005d025
mov eax, 8
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x2a0]
mov ecx, 1
imul rcx, rcx, 0
mov rax, qword [rax + 0x50]
movzx eax, byte [rax + rcx]
mov dword [rsp + 0x114], eax
mov dword [rsp + 0x40], 0
jmp 0x18005d276
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x18005d3ef
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005d2fe
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2a0]
mov qword [rsp + rcx*8 + 0x2b8], rax
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov qword [rsp + 0x130], rax
movsxd rax, dword [rsp + 0x40]
mov qword [rsp + rax*8 + 0x2a0], 0
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x70]
call fcn.1800498a0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x44], 0
je 0x18005d2f9
jmp 0x18005dee9
jmp 0x18005d3ea
cmp dword [rsp + 0x390], 0
je 0x18005d315
mov dword [rsp + 0x104], 1
jmp 0x18005d320
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x104], eax
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0x104]
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x90]
call fcn.180058d40
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005d357
jmp 0x18005dee9
mov edx, dword [rsp + 0x114]
mov rcx, qword [rsp + 0x130]
call fcn.1800531a0
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x130]
mov qword [rsp + rax*8 + 0x2b8], rcx
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
mov dword [rsp + rax*4 + 0x2e0], ecx
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18005d3ea
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x370]
mov r9d, dword [rax + 4]
mov r8b, 5
mov rax, qword [rsp + 0x130]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x90]
call fcn.180050c00
cmp dword [rsp + 0x44], 0
je 0x18005d3ea
jmp 0x18005dee9
jmp 0x18005d26c
mov dword [rsp + 0x40], 0
jmp 0x18005d403
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005d4b9
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
movsxd rcx, dword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + rcx*4 + 0x2f8], eax
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x2f8]
mov dword [rsp + rcx*4 + 0x310], eax
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov rax, qword [rax + 0x70]
movsxd rcx, dword [rsp + 0x40]
movzx eax, word [rax + 0x34]
mov word [rsp + rcx*2 + 0x330], ax
mov dword [rsp + 0x4c], 0
jmp 0x18005d47b
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x4c], eax
jge 0x18005d4b4
movsxd rax, dword [rsp + 0x4c]
movsxd rcx, dword [rsp + 0x40]
mov ecx, dword [rsp + rcx*4 + 0x2f8]
cmp dword [rsp + rax*4 + 0x2f8], ecx
jne 0x18005d4b2
mov ecx, 0x11982
call fcn.1800f57e0
mov dword [rsp + 0x44], eax
jmp 0x18005dee9
jmp 0x18005d471
jmp 0x18005d3f9
mov dword [rsp + 0x40], 0
jmp 0x18005d4cd
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005d5c8
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x4c], 1
jmp 0x18005d4f7
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x4c], eax
jge 0x18005d525
movsxd rax, dword [rsp + 0x4c]
movsxd rcx, dword [rsp + 0x6c]
mov ecx, dword [rsp + rcx*4 + 0x310]
cmp dword [rsp + rax*4 + 0x310], ecx
jae 0x18005d523
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x6c], eax
jmp 0x18005d4ed
movsxd rax, dword [rsp + 0x6c]
mov eax, dword [rsp + rax*4 + 0x310]
mov dword [rsp + 0x74], eax
movsxd rax, dword [rsp + 0x6c]
mov dword [rsp + rax*4 + 0x310], 0xffffffff
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x6c], eax
je 0x18005d5c3
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x6c], eax
jle 0x18005d587
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x3c]
mov ecx, dword [rsp + 0x6c]
lea eax, [rax + rcx + 1]
movsxd rcx, dword [rsp + 0x6c]
mov rcx, qword [rsp + rcx*8 + 0x2b8]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rcx + 0x70]
call fcn.18004a850
movsxd rax, dword [rsp + 0x6c]
movsxd rcx, dword [rsp + 0x40]
mov rcx, qword [rsp + rcx*8 + 0x2b8]
movzx r8d, word [rsp + rax*2 + 0x330]
mov edx, dword [rsp + 0x74]
mov rcx, qword [rcx + 0x70]
call fcn.18004a850
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 4], ecx
jmp 0x18005d4c3
mov eax, dword [rsp + 0x50]
dec eax
cdqe
mov rax, qword [rsp + rax*8 + 0x2b8]
mov edx, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
call fcn.180039260
mov eax, dword [rsp + 0x114]
and eax, 8
test eax, eax
jne 0x18005d689
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x5c], eax
je 0x18005d689
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x50], eax
jle 0x18005d624
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0x190], rax
jmp 0x18005d634
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x190], rax
mov eax, dword [rsp + 0x5c]
dec eax
cdqe
mov rcx, qword [rsp + 0x190]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x1a8], rax
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x1a8]
mov rcx, qword [rcx + 0x50]
mov edx, dword [rsp + 0x50]
dec edx
movsxd rdx, edx
mov rdx, qword [rsp + rdx*8 + 0x2b8]
mov edi, 1
imul rdi, rdi, 8
mov rdx, qword [rdx + 0x50]
mov eax, dword [rcx + rax]
mov dword [rdx + rdi], eax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18005d927
mov eax, 8
imul rax, rax, 0
mov rax, qword [rsp + rax + 0x2b8]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0xe8]
movzx ecx, byte [rcx + 0xc]
add eax, ecx
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x40], 0
jmp 0x18005d70e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x200]
cmp dword [rsp + 0x40], eax
jge 0x18005d927
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x210]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0xc0]
cmp dword [rsp + 0x40], eax
jne 0x18005d7f6
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x7c], eax
jge 0x18005d774
movsxd rax, dword [rsp + 0x7c]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov qword [rsp + 0x1a0], rax
jmp 0x18005d789
movsxd rax, dword [rsp + 0x7c]
mov rax, qword [rsp + rax*8 + 0x2a0]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xd8], rax
cmp dword [rsp + 0x64], 0
jne 0x18005d7ad
mov dword [rsp + 0x11c], 1
jmp 0x18005d7b8
mov dword [rsp + 0x11c], 0
mov rax, qword [rsp + 0xd8]
movzx eax, word [rax + 0x18]
mov rcx, qword [rsp + 0xd8]
movzx ecx, byte [rcx + 0xc]
mov edx, dword [rsp + 0x11c]
add edx, eax
mov eax, edx
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xc0], eax
jmp 0x18005d738
movsxd rax, dword [rsp + 0xa8]
mov eax, dword [rsp + rax*4 + 0x270]
cmp dword [rsp + 0x40], eax
jne 0x18005d83f
mov eax, dword [rsp + 0xa8]
inc eax
mov dword [rsp + 0xa8], eax
movsxd rax, dword [rsp + 0xa8]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov qword [rsp + 0xe8], rax
cmp dword [rsp + 0x64], 0
jne 0x18005d83f
jmp 0x18005d704
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x7c], eax
jge 0x18005d892
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xe8]
mov eax, dword [rsp + rax*4 + 0x2f8]
cmp dword [rcx + 4], eax
jne 0x18005d892
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x50]
cmp qword [rsp + 0x158], rax
jb 0x18005d892
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x58]
cmp qword [rsp + 0x158], rax
jb 0x18005d922
movzx eax, word [rsp + 0x58]
test eax, eax
jne 0x18005d8d0
mov rcx, qword [rsp + 0x158]
call fcn.180039240
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0xe8]
mov r9d, dword [rcx + 4]
mov r8b, 5
mov edx, eax
mov rcx, qword [rsp + 0x90]
call fcn.180050c00
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x200]
call fcn.18005aac0
movzx eax, ax
mov rcx, qword [rsp + 0xe8]
movzx ecx, word [rcx + 0x10]
cmp eax, ecx
jle 0x18005d916
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe8]
call fcn.1800515f0
cmp dword [rsp + 0x44], 0
je 0x18005d922
jmp 0x18005dee9
jmp 0x18005d704
mov dword [rsp + 0x40], 0
jmp 0x18005d93b
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
dec eax
cmp dword [rsp + 0x40], eax
jge 0x18005db5a
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov qword [rsp + 0x140], rax
movsxd rax, dword [rsp + 0x40]
mov eax, dword [rsp + rax*4 + 0x270]
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x210]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0xf0], rax
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
movzx ecx, word [rsp + 0x58]
add eax, ecx
mov dword [rsp + 0xb4], eax
movsxd rax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x380]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 8]
test eax, eax
jne 0x18005d9fd
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x140]
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsp + 0xf0]
mov edx, dword [rdx]
mov dword [rcx + rax], edx
jmp 0x18005dadf
cmp dword [rsp + 0x64], 0
je 0x18005da90
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x4c]
lea r8, [rsp + 0x1e0]
mov rcx, qword [rsp + 0x210]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x140]
mov rax, qword [rsp + 0x140]
call qword [rax + 0x80]
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xf0], rax
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0xf0]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x1e0]
mov rcx, rax
call fcn.180038b80
add eax, 4
mov dword [rsp + 0xb4], eax
mov qword [rsp + 0x178], 0
jmp 0x18005dadf
mov rax, qword [rsp + 0xf0]
sub rax, 4
mov qword [rsp + 0xf0], rax
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
cmp eax, 4
jne 0x18005dadf
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x370]
mov rax, qword [rsp + 0x370]
call qword [rax + 0x78]
movzx eax, ax
mov dword [rsp + 0xb4], eax
mov eax, dword [rsp + 0xb4]
mov ecx, dword [rsp + 0xd0]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x140]
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x178]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, eax
mov rcx, qword [rsp + 0x370]
call fcn.18005a6b0
cmp dword [rsp + 0x44], 0
je 0x18005db55
jmp 0x18005dee9
jmp 0x18005d931
mov eax, 1
sub eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
jmp 0x18005db73
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005dd71
cmp dword [rsp + 0x40], 0
jge 0x18005db97
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x124], eax
jmp 0x18005dba2
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x124], eax
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x54]
movzx eax, byte [rsp + rax + 0x328]
test eax, eax
je 0x18005dbc0
jmp 0x18005db69
cmp dword [rsp + 0x40], 0
jge 0x18005dbec
mov eax, dword [rsp + 0x54]
dec eax
cdqe
mov ecx, dword [rsp + 0x54]
dec ecx
movsxd rcx, ecx
mov ecx, dword [rsp + rcx*4 + 0x270]
cmp dword [rsp + rax*4 + 0x2e0], ecx
jl 0x18005dd6c
cmp dword [rsp + 0x54], 0
jne 0x18005dc28
mov dword [rsp + 0xe0], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xbc], eax
mov eax, 4
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x270]
mov dword [rsp + 0x138], eax
jmp 0x18005dce4
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x54], eax
jge 0x18005dc70
cmp dword [rsp + 0x64], 0
jne 0x18005dc46
mov dword [rsp + 0x120], 1
jmp 0x18005dc51
mov dword [rsp + 0x120], 0
mov eax, dword [rsp + 0x54]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x2e0]
add eax, dword [rsp + 0x120]
mov dword [rsp + 0x10c], eax
jmp 0x18005dc7e
mov eax, dword [rsp + 0x200]
mov dword [rsp + 0x10c], eax
mov eax, dword [rsp + 0x10c]
mov dword [rsp + 0xe0], eax
cmp dword [rsp + 0x64], 0
jne 0x18005dca0
mov dword [rsp + 0x100], 1
jmp 0x18005dcab
mov dword [rsp + 0x100], 0
mov eax, dword [rsp + 0x54]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
add eax, dword [rsp + 0x100]
mov dword [rsp + 0xbc], eax
movsxd rax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0xbc]
mov eax, dword [rsp + rax*4 + 0x270]
sub eax, ecx
mov dword [rsp + 0x138], eax
movsxd rax, dword [rsp + 0x54]
lea rcx, [rsp + 0x200]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x138]
mov r8d, dword [rsp + 0xbc]
mov edx, dword [rsp + 0xe0]
mov rcx, qword [rsp + rax*8 + 0x2b8]
call fcn.18005b450
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005dd2a
jmp 0x18005dee9
movsxd rax, dword [rsp + 0x54]
movzx eax, byte [rsp + rax + 0x328]
inc al
movsxd rcx, dword [rsp + 0x54]
mov byte [rsp + rcx + 0x328], al
movsxd rax, dword [rsp + 0x54]
mov eax, dword [rsp + rax*4 + 0x288]
mov ecx, dword [rsp + 0xac]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x54]
mov rcx, qword [rsp + rcx*8 + 0x2b8]
mov dword [rcx + 0x14], eax
jmp 0x18005db69
cmp dword [rsp + 0x388], 0
je 0x18005de17
mov rax, qword [rsp + 0x370]
movzx eax, word [rax + 0x18]
test eax, eax
jne 0x18005de17
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax + 9]
mov ecx, 8
imul rcx, rcx, 0
mov rcx, qword [rsp + rcx + 0x2b8]
cmp eax, dword [rcx + 0x14]
jg 0x18005de17
mov eax, 8
imul rax, rax, 0
mov edx, 0xffffffff
mov rcx, qword [rsp + rax + 0x2b8]
call fcn.1800516d0
mov dword [rsp + 0x44], eax
mov eax, 8
imul rax, rax, 0
lea r8, [rsp + 0x44]
mov rdx, qword [rsp + 0x370]
mov rcx, qword [rsp + rax + 0x2b8]
call fcn.18005be30
mov eax, 8
imul rax, rax, 0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + rax + 0x2b8]
call fcn.180059c60
jmp 0x18005deb2
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18005deb2
movzx eax, word [rsp + 0x58]
test eax, eax
jne 0x18005deb2
mov dword [rsp + 0x40], 0
jmp 0x18005de48
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005deb2
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov ecx, 1
imul rcx, rcx, 8
add rcx, qword [rax + 0x50]
mov rax, rcx
mov rcx, rax
call fcn.180039240
mov dword [rsp + 0x180], eax
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rax + 4]
mov r8b, 5
mov edx, dword [rsp + 0x180]
mov rcx, qword [rsp + 0x90]
call fcn.180050c00
jmp 0x18005de3e
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
jmp 0x18005dec6
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005dee9
movsxd rax, dword [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.180059c60
jmp 0x18005debc
mov rdx, qword [rsp + 0x210]
xor ecx, ecx
call fcn.180031d00
mov dword [rsp + 0x40], 0
jmp 0x18005df0c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005df2a
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.1800536b0
jmp 0x18005df02
mov dword [rsp + 0x40], 0
jmp 0x18005df3e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005df5c
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2b8]
call fcn.1800536b0
jmp 0x18005df34
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.180106980
add rsp, 0x358
pop rdi
pop rsi
ret