Function at 0x18005bf40
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 0x18005bff0
mov eax, 7
jmp 0x18005deb0
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 0x18005c01f
mov dword [rsp + 0x68], 0
jmp 0x18005c072
cmp dword [rsp + 0x378], 0
jne 0x18005c033
mov dword [rsp + 0x68], 0
jmp 0x18005c062
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x378], eax
jne 0x18005c055
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x390]
lea eax, [rax + rcx - 2]
mov dword [rsp + 0x68], eax
jmp 0x18005c062
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 0x18005c0d3
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 0x18005c12d
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.180039190
mov dword [rsp + 0x74], eax
xor eax, eax
cmp eax, 1
je 0x18005c4d2
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.180053490
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005c1b0
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 0x18005de39
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2a0]
cmp dword [rax + 0x14], 0
jge 0x18005c20d
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.180052b60
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005c20d
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 0x18005de39
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 0x18005c231
jmp 0x18005c4d2
mov rax, qword [rsp + 0x370]
movzx eax, byte [rax + 0xc]
test eax, eax
je 0x18005c2e4
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 0x18005c2e4
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.180039190
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 0x18005c4cd
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.180039190
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 0x18005c492
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 0x18005c423
mov ecx, 0x1182d
call fcn.1800f5730
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 0x18005de39
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.18005a390
jmp 0x18005c13e
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.180031f50
mov qword [rsp + 0x210], rax
cmp qword [rsp + 0x210], 0
jne 0x18005c55f
mov dword [rsp + 0x44], 7
jmp 0x18005de39
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 0x18005c5e2
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005cabe
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 0x18005c6b4
mov ecx, 0x11870
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
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 0x18005c843
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + rax + 0x1c]
cmp dword [rsp + 0xb8], eax
jge 0x18005c741
mov ecx, 0x11888
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
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 0x18005c772
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0x4c], eax
jge 0x18005c7e5
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 0x18005c768
mov dword [rsp + 0x48], 0
jmp 0x18005c7f9
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 0x18005c843
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 0x18005c7ef
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 0x18005c8f1
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 0x18005c879
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 0x18005cab9
cmp dword [rsp + 0x64], 0
jne 0x18005cab9
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 0x18005ca3f
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 0x18005caa9
movsxd rax, dword [rsp + 0x200]
mov rcx, qword [rsp + 0x218]
movzx eax, word [rcx + rax*2]
cmp eax, 4
jge 0x18005caa9
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 0x18005ca3f
mov eax, dword [rsp + 0x200]
inc eax
mov dword [rsp + 0x200], eax
jmp 0x18005c5d8
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 0x18005caff
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 0x18005cc81
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 0x18005cb82
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 0x18005cb82
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x64], 0
jne 0x18005cbc6
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 0x18005cbfc
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 0x18005cc64
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 0x18005cbf2
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 0x18005caeb
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
jmp 0x18005cc9d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x18005cf69
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0xac]
cmp dword [rsp + rax*4 + 0x288], ecx
jle 0x18005cdee
mov eax, dword [rsp + 0x40]
inc eax
cmp eax, dword [rsp + 0x48]
jl 0x18005cd1e
mov eax, dword [rsp + 0x40]
add eax, 2
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 5
jle 0x18005ccf5
mov ecx, 0x118ed
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
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.18005aa10
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 0x18005cdac
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005cda4
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aa10
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
jmp 0x18005cdac
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 0x18005ccab
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005cef1
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aa10
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 0x18005ce48
jmp 0x18005cef1
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 0x18005cec7
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jge 0x18005cebf
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + rax*4 + 0x270]
lea rcx, [rsp + 0x200]
call fcn.18005aa10
movzx eax, ax
add eax, 2
mov dword [rsp + 0x60], eax
jmp 0x18005cec7
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 0x18005cdee
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x200]
cmp dword [rsp + rax*4 + 0x270], ecx
jl 0x18005cf12
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x48], eax
jmp 0x18005cf64
cmp dword [rsp + 0x40], 0
jle 0x18005cf31
mov eax, dword [rsp + 0x40]
dec eax
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
mov dword [rsp + 0x118], eax
jmp 0x18005cf3c
mov dword [rsp + 0x118], 0
movsxd rax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x118]
cmp dword [rsp + rax*4 + 0x270], ecx
jg 0x18005cf64
mov ecx, 0x1190e
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
jmp 0x18005cc93
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x18005cf7f
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jle 0x18005d189
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.18005aa10
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x200]
call fcn.18005aa10
cmp dword [rsp + 0xa4], 0
je 0x18005d081
cmp dword [rsp + 0x390], 0
jne 0x18005d07c
mov eax, dword [rsp + 0x48]
dec eax
cmp dword [rsp + 0x40], eax
jne 0x18005d02b
mov dword [rsp + 0x128], 0
jmp 0x18005d036
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 0x18005d081
jmp 0x18005d105
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 0x18005cfed
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 0x18005d14e
mov eax, dword [rsp + 0x40]
sub eax, 2
cdqe
mov eax, dword [rsp + rax*4 + 0x270]
mov dword [rsp + 0x108], eax
jmp 0x18005d159
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 0x18005d184
mov ecx, 0x11938
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
jmp 0x18005cf75
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 0x18005d1c6
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x18005d33f
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005d24e
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.1800497f0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x44], 0
je 0x18005d249
jmp 0x18005de39
jmp 0x18005d33a
cmp dword [rsp + 0x390], 0
je 0x18005d265
mov dword [rsp + 0x104], 1
jmp 0x18005d270
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.180058c90
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005d2a7
jmp 0x18005de39
mov edx, dword [rsp + 0x114]
mov rcx, qword [rsp + 0x130]
call fcn.1800530f0
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 0x18005d33a
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.180050b50
cmp dword [rsp + 0x44], 0
je 0x18005d33a
jmp 0x18005de39
jmp 0x18005d1bc
mov dword [rsp + 0x40], 0
jmp 0x18005d353
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005d409
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 0x18005d3cb
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x4c], eax
jge 0x18005d404
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 0x18005d402
mov ecx, 0x11982
call fcn.1800f5730
mov dword [rsp + 0x44], eax
jmp 0x18005de39
jmp 0x18005d3c1
jmp 0x18005d349
mov dword [rsp + 0x40], 0
jmp 0x18005d41d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005d518
mov dword [rsp + 0x6c], 0
mov dword [rsp + 0x4c], 1
jmp 0x18005d447
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x4c], eax
jge 0x18005d475
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 0x18005d473
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x6c], eax
jmp 0x18005d43d
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 0x18005d513
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x6c], eax
jle 0x18005d4d7
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.18004a7a0
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.18004a7a0
movsxd rax, dword [rsp + 0x40]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 4], ecx
jmp 0x18005d413
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.1800391b0
mov eax, dword [rsp + 0x114]
and eax, 8
test eax, eax
jne 0x18005d5d9
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x5c], eax
je 0x18005d5d9
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x50], eax
jle 0x18005d574
lea rax, [rsp + 0x2b8]
mov qword [rsp + 0x190], rax
jmp 0x18005d584
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 0x18005d877
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 0x18005d65e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x200]
cmp dword [rsp + 0x40], eax
jge 0x18005d877
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 0x18005d746
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x7c], eax
jge 0x18005d6c4
movsxd rax, dword [rsp + 0x7c]
mov rax, qword [rsp + rax*8 + 0x2b8]
mov qword [rsp + 0x1a0], rax
jmp 0x18005d6d9
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 0x18005d6fd
mov dword [rsp + 0x11c], 1
jmp 0x18005d708
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 0x18005d688
movsxd rax, dword [rsp + 0xa8]
mov eax, dword [rsp + rax*4 + 0x270]
cmp dword [rsp + 0x40], eax
jne 0x18005d78f
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 0x18005d78f
jmp 0x18005d654
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x7c], eax
jge 0x18005d7e2
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xe8]
mov eax, dword [rsp + rax*4 + 0x2f8]
cmp dword [rcx + 4], eax
jne 0x18005d7e2
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x50]
cmp qword [rsp + 0x158], rax
jb 0x18005d7e2
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x58]
cmp qword [rsp + 0x158], rax
jb 0x18005d872
movzx eax, word [rsp + 0x58]
test eax, eax
jne 0x18005d820
mov rcx, qword [rsp + 0x158]
call fcn.180039190
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.180050b50
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x200]
call fcn.18005aa10
movzx eax, ax
mov rcx, qword [rsp + 0xe8]
movzx ecx, word [rcx + 0x10]
cmp eax, ecx
jle 0x18005d866
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0x158]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe8]
call fcn.180051540
cmp dword [rsp + 0x44], 0
je 0x18005d872
jmp 0x18005de39
jmp 0x18005d654
mov dword [rsp + 0x40], 0
jmp 0x18005d88b
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 0x18005daaa
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 0x18005d94d
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 0x18005da2f
cmp dword [rsp + 0x64], 0
je 0x18005d9e0
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.180038ad0
add eax, 4
mov dword [rsp + 0xb4], eax
mov qword [rsp + 0x178], 0
jmp 0x18005da2f
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 0x18005da2f
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.18005a600
cmp dword [rsp + 0x44], 0
je 0x18005daa5
jmp 0x18005de39
jmp 0x18005d881
mov eax, 1
sub eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
jmp 0x18005dac3
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005dcc1
cmp dword [rsp + 0x40], 0
jge 0x18005dae7
mov eax, dword [rsp + 0x40]
neg eax
mov dword [rsp + 0x124], eax
jmp 0x18005daf2
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 0x18005db10
jmp 0x18005dab9
cmp dword [rsp + 0x40], 0
jge 0x18005db3c
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 0x18005dcbc
cmp dword [rsp + 0x54], 0
jne 0x18005db78
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 0x18005dc34
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x54], eax
jge 0x18005dbc0
cmp dword [rsp + 0x64], 0
jne 0x18005db96
mov dword [rsp + 0x120], 1
jmp 0x18005dba1
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 0x18005dbce
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 0x18005dbf0
mov dword [rsp + 0x100], 1
jmp 0x18005dbfb
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.18005b3a0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x18005dc7a
jmp 0x18005de39
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 0x18005dab9
cmp dword [rsp + 0x388], 0
je 0x18005dd67
mov rax, qword [rsp + 0x370]
movzx eax, word [rax + 0x18]
test eax, eax
jne 0x18005dd67
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 0x18005dd67
mov eax, 8
imul rax, rax, 0
mov edx, 0xffffffff
mov rcx, qword [rsp + rax + 0x2b8]
call fcn.180051620
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.18005bd80
mov eax, 8
imul rax, rax, 0
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + rax + 0x2b8]
call fcn.180059bb0
jmp 0x18005de02
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x18005de02
movzx eax, word [rsp + 0x58]
test eax, eax
jne 0x18005de02
mov dword [rsp + 0x40], 0
jmp 0x18005dd98
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005de02
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.180039190
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.180050b50
jmp 0x18005dd8e
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x40], eax
jmp 0x18005de16
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005de39
movsxd rax, dword [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.180059bb0
jmp 0x18005de0c
mov rdx, qword [rsp + 0x210]
xor ecx, ecx
call fcn.180031c50
mov dword [rsp + 0x40], 0
jmp 0x18005de5c
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18005de7a
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2a0]
call fcn.180053600
jmp 0x18005de52
mov dword [rsp + 0x40], 0
jmp 0x18005de8e
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x40], eax
jge 0x18005deac
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + rax*8 + 0x2b8]
call fcn.180053600
jmp 0x18005de84
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1801068d0
add rsp, 0x358
pop rdi
pop rsi
ret