Function at 0x18007be10
Capabilities:
Compress data via zlib inflate or deflate
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push r13
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x98
mov eax, 0x10
mov r14, rcx
xor r15d, r15d
mov word [rbp - 0x11], ax
mov eax, 0x11
mov dword [rbp - 0xd], 0x12
mov word [rbp - 0xf], ax
mov eax, 8
mov dword [rbp + 5], 0xc0004
mov word [rbp - 9], ax
mov eax, 7
lea r11d, [r15 + 1]
mov word [rbp - 7], ax
mov eax, 9
mov dword [rbp + 0xf], 0x1000e
mov word [rbp - 5], ax
mov eax, 6
mov word [rbp - 3], ax
mov eax, 0xa
mov word [rbp - 1], ax
mov eax, 5
mov word [rbp + 1], ax
mov eax, 0xb
lea ecx, [rax + 1]
mov word [rbp + 3], ax
mov eax, 3
mov word [rbp + 9], ax
mov eax, 0xd
mov word [rbp + 0xb], ax
mov eax, 2
mov word [rbp + 0xd], ax
mov eax, 0xf
mov word [rbp + 0x13], ax
test r14, r14
je 0x18007d498
mov r13, qword [r14 + 0x28]
test r13, r13
je 0x18007d498
cmp qword [r14 + 0x10], r15
je 0x18007d498
cmp qword [r14], r15
jne 0x18007bef2
cmp dword [r14 + 8], r15d
jne 0x18007d498
mov eax, dword [r13]
mov qword [rsp + 0x90], rbx
mov ebx, dword [r13 + 0x44]
mov qword [rsp + 0x88], rsi
cmp eax, 0xb
mov qword [rsp + 0x80], rdi
cmove eax, ecx
mov qword [rsp + 0x78], r12
mov r12d, dword [r13 + 0x40]
mov dword [r13], eax
mov r10d, dword [r14 + 0x18]
mov r9, qword [r14 + 0x10]
mov edi, dword [r14 + 8]
mov rsi, qword [r14]
mov qword [rbp - 0x19], r9
mov dword [rbp + 0x7f], r10d
mov dword [rbp - 0x1d], edi
mov r8d, r10d
mov dword [rbp - 0x25], r10d
mov dword [rbp + 0x77], r15d
cmp eax, 0x1e
ja case.default.0x18007bf6d
cdqe
lea rcx, [0x180000000]
mov ecx, dword [rcx + rax*4 + 0x7d4ac]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov edx, dword [r13 + 8]
test edx, edx
jne 0x18007bf84
mov dword [r13], 0xc
jmp 0x18007c0c0
cmp ebx, 0x10
jae 0x18007bfaf
nop dword [rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x10
jb 0x18007bf90
test dl, 2
je 0x18007c006
cmp r12d, 0x8b1f
jne 0x18007c006
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180080b40
lea rdx, [rbp - 0x29]
mov r8d, 2
mov dword [r13 + 0x18], eax
mov word [rbp - 0x29], r12w
mov ecx, dword [r13 + 0x18]
call fcn.180080b40
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov r11d, 1
mov dword [r13 + 0x18], eax
mov r12d, r15d
mov ebx, r15d
mov dword [r13], r11d
jmp 0x18007c0c0
mov rax, qword [r13 + 0x20]
mov dword [r13 + 0x10], r15d
test rax, rax
je 0x18007c01a
mov dword [rax + 0x40], 0xffffffff
test byte [r13 + 8], 1
je 0x18007c052
movzx ecx, r12b
mov eax, r12d
shr eax, 8
shl ecx, 8
add ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1f
cmp ecx, eax
jne 0x18007c052
mov eax, r12d
and al, 0xf
cmp al, 8
je 0x18007c060
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov eax, dword [r13 + 0x28]
shr r12d, 4
add ebx, 0xfffffffc
mov ecx, r12d
and ecx, 0xf
add ecx, 8
test eax, eax
jne 0x18007c0d9
mov dword [r13 + 0x28], ecx
mov eax, r11d
xor r8d, r8d
xor edx, edx
shl eax, cl
xor ecx, ecx
mov dword [r13 + 0x14], eax
call fcn.180080510
shr r12d, 8
not r12d
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
and r12d, 2
mov ebx, r15d
or r12d, 9
mov dword [r13], r12d
mov r12d, r15d
mov r10d, dword [rbp + 0x7f]
mov r9, qword [rbp - 0x19]
mov r11d, 1
mov eax, dword [r13]
cmp eax, 0x1e
ja case.default.0x18007bf6d
mov r8d, dword [rbp - 0x25]
mov edx, dword [rbp + 0x6f]
jmp 0x18007bf53
cmp ecx, eax
jbe 0x18007c07c
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
cmp ebx, 0x10
jae 0x18007c10f
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x10
jb 0x18007c0f0
mov dword [r13 + 0x10], r12d
cmp r12b, 8
je 0x18007c127
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
test r12d, 0xe000
je 0x18007c13e
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x18007c152
mov eax, r12d
shr eax, 8
and eax, 1
mov dword [rcx], eax
test dword [r13 + 0x10], 0x200
je 0x18007c17f
mov byte [rbp - 0x29], r12b
shr r12d, 8
lea rdx, [rbp - 0x29]
mov byte [rbp - 0x28], r12b
mov ecx, dword [r13 + 0x18]
mov r8d, 2
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 2
jmp 0x18007c194
cmp ebx, 0x20
jae 0x18007c1b3
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x20
jb 0x18007c194
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x18007c1c0
mov dword [rax + 4], r12d
test dword [r13 + 0x10], 0x200
je 0x18007c1ff
mov eax, r12d
mov byte [rbp - 0x29], r12b
lea rdx, [rbp - 0x29]
shr eax, 8
mov r8d, 4
mov byte [rbp - 0x28], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [rbp - 0x26], r12b
mov byte [rbp - 0x27], al
mov ecx, dword [r13 + 0x18]
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 3
jmp 0x18007c214
cmp ebx, 0x10
jae 0x18007c233
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x10
jb 0x18007c214
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x18007c250
movzx eax, r12b
mov dword [rcx + 8], eax
mov rax, qword [r13 + 0x20]
mov ecx, r12d
shr ecx, 8
mov dword [rax + 0xc], ecx
test dword [r13 + 0x10], 0x200
je 0x18007c27d
mov byte [rbp - 0x29], r12b
shr r12d, 8
lea rdx, [rbp - 0x29]
mov byte [rbp - 0x28], r12b
mov ecx, dword [r13 + 0x18]
mov r8d, 2
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 4
test dword [r13 + 0x10], 0x400
je 0x18007c305
cmp ebx, 0x10
jae 0x18007c2bf
nop word [rax + rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x10
jb 0x18007c2a0
mov rax, qword [r13 + 0x20]
mov dword [r13 + 0x48], r12d
test rax, rax
je 0x18007c2d0
mov dword [rax + 0x18], r12d
test dword [r13 + 0x10], 0x200
je 0x18007c2fd
mov byte [rbp - 0x29], r12b
shr r12d, 8
lea rdx, [rbp - 0x29]
mov byte [rbp - 0x28], r12b
mov ecx, dword [r13 + 0x18]
mov r8d, 2
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov r12d, r15d
mov ebx, r15d
jmp 0x18007c312
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x18007c312
mov qword [rax + 0x10], r15
mov dword [r13], 5
test dword [r13 + 0x10], 0x400
je 0x18007c3a2
mov edx, dword [r13 + 0x48]
cmp edx, edi
mov r14d, edx
cmova r14d, edi
test r14d, r14d
je 0x18007c397
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x18007c36d
mov r9, qword [rax + 0x10]
test r9, r9
je 0x18007c36d
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x1c]
sub ecx, edx
lea eax, [r14 + rcx]
cmp eax, r8d
jbe 0x18007c35f
sub r8d, ecx
jmp 0x18007c362
mov r8d, r14d
add rcx, r9
mov rdx, rsi
call fcn.18007fb90
test dword [r13 + 0x10], 0x200
je 0x18007c38a
mov ecx, dword [r13 + 0x18]
mov r8d, r14d
mov rdx, rsi
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov eax, r14d
sub edi, r14d
add rsi, rax
sub dword [r13 + 0x48], r14d
cmp dword [r13 + 0x48], 0
jne 0x18007c714
mov dword [r13 + 0x48], r15d
mov dword [r13], 6
test dword [r13 + 0x10], 0x800
je 0x18007c43b
test edi, edi
je 0x18007c714
mov r8, rsi
nop word [rax + rax]
mov rax, qword [r13 + 0x20]
movzx r14d, byte [r8]
inc r15d
inc r8
test rax, rax
je 0x18007c3fd
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x18007c3fd
mov ecx, dword [r13 + 0x48]
cmp ecx, dword [rax + 0x28]
jae 0x18007c3fd
mov byte [rcx + rdx], r14b
inc dword [r13 + 0x48]
test r14d, r14d
je 0x18007c407
cmp r15d, edi
jb 0x18007c3d0
test dword [r13 + 0x10], 0x200
je 0x18007c424
mov ecx, dword [r13 + 0x18]
mov r8d, r15d
mov rdx, rsi
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov eax, r15d
sub edi, r15d
add rsi, rax
test r14d, r14d
jne 0x18007c714
xor r15d, r15d
jmp 0x18007c448
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x18007c448
mov qword [rax + 0x20], r15
mov dword [r13 + 0x48], r15d
mov dword [r13], 7
test dword [r13 + 0x10], 0x1000
je 0x18007c4db
test edi, edi
je 0x18007c714
mov r8, rsi
nop dword [rax]
mov rax, qword [r13 + 0x20]
movzx r14d, byte [r8]
inc r15d
inc r8
test rax, rax
je 0x18007c49d
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x18007c49d
mov ecx, dword [r13 + 0x48]
cmp ecx, dword [rax + 0x38]
jae 0x18007c49d
mov byte [rcx + rdx], r14b
inc dword [r13 + 0x48]
test r14d, r14d
je 0x18007c4a7
cmp r15d, edi
jb 0x18007c470
test dword [r13 + 0x10], 0x200
je 0x18007c4c4
mov ecx, dword [r13 + 0x18]
mov r8d, r15d
mov rdx, rsi
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov eax, r15d
sub edi, r15d
add rsi, rax
test r14d, r14d
jne 0x18007c714
xor r15d, r15d
jmp 0x18007c4e8
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x18007c4e8
mov qword [rax + 0x30], r15
mov r14, qword [rbp + 0x67]
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov dword [r13], 8
mov r11d, 1
test dword [r13 + 0x10], 0x200
je 0x18007c551
cmp ebx, 0x10
jae 0x18007c530
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x10
jb 0x18007c511
movzx eax, word [r13 + 0x18]
cmp r12d, eax
je 0x18007c54b
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov r12d, r15d
mov ebx, r15d
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x18007c56f
mov eax, dword [r13 + 0x10]
sar eax, 9
and eax, 1
mov dword [rcx + 0x3c], eax
mov rax, qword [r13 + 0x20]
mov dword [rax + 0x40], r11d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180080b40
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
mov dword [r13], 0xb
jmp 0x18007c0b2
cmp ebx, 0x20
jae 0x18007c5b4
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x20
jb 0x18007c595
mov ecx, r12d
mov eax, r12d
mov ebx, r15d
and eax, 0xff00
shl ecx, 0x10
add ecx, eax
mov eax, r12d
shr r12d, 0x18
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
add eax, r12d
mov r12d, r15d
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
mov dword [r13], 0xa
cmp dword [r13 + 0xc], 0
je 0x18007d38e
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180080510
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov edx, dword [rbp + 0x6f]
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
mov dword [r13], 0xb
mov r11d, 1
cmp edx, 5
je 0x18007c714
cmp edx, 6
je 0x18007c714
cmp dword [r13 + 4], 0
je 0x18007c659
mov ecx, ebx
mov dword [r13], 0x1a
and ecx, 7
shr r12d, cl
sub ebx, ecx
jmp 0x18007c0c0
cmp ebx, 3
jae 0x18007c67f
nop
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 3
jb 0x18007c660
mov eax, r12d
shr r12d, 1
dec ebx
and eax, 1
mov dword [r13 + 4], eax
mov eax, r12d
and eax, 3
je 0x18007c7c0
dec eax
je 0x18007c6d6
dec eax
je 0x18007c6c2
dec eax
jne 0x18007c7c8
mov qword [r14 + 0x20], r15
shr r12d, 2
mov dword [r13], 0x1d
add ebx, 0xfffffffe
jmp 0x18007c0c0
shr r12d, 2
mov dword [r13], 0x10
add ebx, 0xfffffffe
jmp 0x18007c0c0
lea rax, [0x18008ba00]
mov dword [r13 + 0x68], 9
mov dword [r13 + 0x6c], 5
mov qword [r13 + 0x58], rax
lea rax, [0x18008c200]
mov dword [r13], 0x13
mov qword [r13 + 0x60], rax
cmp edx, 6
jne 0x18007c7c8
shr r12d, 2
add ebx, 0xfffffffe
mov r15d, dword [rbp + 0x77]
mov ecx, dword [rbp + 0x6f]
mov r14, qword [rbp + 0x67]
mov rax, qword [rbp - 0x19]
mov qword [r14 + 0x10], rax
mov eax, dword [rbp + 0x7f]
mov qword [r14], rsi
mov dword [r14 + 0x18], eax
mov dword [r14 + 8], edi
cmp dword [r13 + 0x2c], 0
mov dword [r13 + 0x44], ebx
mov ebx, dword [rbp - 0x25]
mov dword [r13 + 0x40], r12d
jne 0x18007c76c
cmp ebx, dword [r14 + 0x18]
je 0x18007d3d0
mov eax, dword [r13]
cmp eax, 0x1d
jge 0x18007d3d0
cmp eax, 0x1a
jl 0x18007c76c
cmp ecx, 4
je 0x18007d3d0
mov rdx, qword [r14 + 0x10]
mov r8d, ebx
mov rcx, r14
sub r8d, dword [r14 + 0x18]
call fcn.18007bd00
test eax, eax
je 0x18007d3d0
mov dword [r13], 0x1e
mov eax, 0xfffffffc
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov r12, qword [rsp + 0x78]
add rsp, 0x98
pop r15
pop r14
pop r13
pop rbp
ret
mov dword [r13], 0xd
shr r12d, 2
add ebx, 0xfffffffe
jmp 0x18007c0c0
mov ecx, ebx
and ecx, 7
sub ebx, ecx
shr r12d, cl
cmp ebx, 0x20
jae 0x18007c802
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x20
jb 0x18007c7e3
mov eax, r12d
movzx ecx, r12w
not eax
shr eax, 0x10
cmp ecx, eax
je 0x18007c823
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov dword [r13 + 0x48], ecx
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 0xe
cmp edx, 6
je 0x18007c714
mov dword [r13], 0xf
mov r14d, dword [r13 + 0x48]
test r14d, r14d
je 0x18007c8a0
cmp r14d, edi
cmova r14d, edi
cmp r14d, r10d
cmova r14d, r10d
test r14d, r14d
je 0x18007c714
mov r8d, r14d
mov rdx, rsi
mov rcx, r9
call fcn.18007fb90
mov r10d, dword [rbp + 0x7f]
mov r9, qword [rbp - 0x19]
mov eax, r14d
sub r10d, r14d
sub edi, r14d
add r9, rax
add rsi, rax
sub dword [r13 + 0x48], r14d
mov r14, qword [rbp + 0x67]
mov dword [rbp + 0x7f], r10d
mov qword [rbp - 0x19], r9
jmp 0x18007c0ba
mov r14, qword [rbp + 0x67]
mov dword [r13], 0xb
jmp 0x18007c0c0
cmp ebx, 0xe
jae 0x18007c8d5
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0xe
jb 0x18007c8b6
mov ecx, r12d
shr r12d, 5
add ebx, 0xfffffff2
mov edx, r12d
shr r12d, 5
and ecx, 0x1f
mov eax, r12d
and edx, 0x1f
add ecx, 0x101
and eax, 0xf
inc edx
shr r12d, 4
add eax, 4
mov dword [r13 + 0x74], ecx
mov dword [r13 + 0x78], edx
mov dword [r13 + 0x70], eax
cmp ecx, 0x11e
ja 0x18007c052
cmp edx, 0x1e
ja 0x18007c052
mov dword [r13 + 0x7c], r15d
mov dword [r13], 0x11
mov eax, dword [r13 + 0x70]
cmp dword [r13 + 0x7c], eax
jae 0x18007c98e
cmp ebx, 3
jae 0x18007c95f
nop dword [rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 3
jb 0x18007c940
mov eax, dword [r13 + 0x7c]
movzx edx, r12w
add ebx, 0xfffffffd
movzx ecx, word [rbp + rax*2 - 0x11]
and dx, 7
shr r12d, 3
mov word [r13 + rcx*2 + 0x88], dx
inc dword [r13 + 0x7c]
mov eax, dword [r13 + 0x70]
cmp dword [r13 + 0x7c], eax
jb 0x18007c938
cmp dword [r13 + 0x7c], 0x13
jae 0x18007c9b2
mov eax, dword [r13 + 0x7c]
movzx ecx, word [rbp + rax*2 - 0x11]
mov word [r13 + rcx*2 + 0x88], r15w
inc dword [r13 + 0x7c]
cmp dword [r13 + 0x7c], 0x13
jb 0x18007c995
lea rcx, [r13 + 0x68]
lea rax, [r13 + 0x548]
lea r9, [r13 + 0x80]
mov qword [r9], rax
mov qword [r13 + 0x58], rax
lea rax, [r13 + 0x308]
mov qword [rsp + 0x28], rax
mov dword [rcx], 7
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea rdx, [r13 + 0x88]
lea r8d, [rcx + 0x13]
call fcn.1800800b0
mov r10d, dword [rbp + 0x7f]
mov dword [rbp + 0x77], eax
test eax, eax
je 0x18007ca10
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0b6
mov dword [r13 + 0x7c], r15d
mov dword [r13], 0x12
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp dword [r13 + 0x7c], eax
jae 0x18007cc2d
mov r8d, 1
nop word [rax + rax]
mov ecx, dword [r13 + 0x68]
mov eax, r8d
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rbp - 0x21], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x18007caaa
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [r13 + 0x68]
dec edi
add r12d, eax
mov eax, r8d
inc rsi
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rbp - 0x21], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x18007ca68
mov edx, eax
shr edx, 0x10
cmp dx, 0x10
jae 0x18007cad6
shr eax, 8
movzx ecx, al
mov eax, dword [r13 + 0x7c]
mov word [r13 + rax*2 + 0x88], dx
shr r12d, cl
sub ebx, ecx
inc dword [r13 + 0x7c]
jmp 0x18007cc1b
jne 0x18007cb48
movzx edx, byte [rbp - 0x20]
shr eax, 8
movzx ecx, al
add ecx, 2
cmp ebx, ecx
jae 0x18007cb14
nop dword [rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
movzx eax, dl
add eax, 2
cmp ebx, eax
jb 0x18007caf0
mov eax, dword [r13 + 0x7c]
movzx ecx, dl
shr r12d, cl
sub ebx, ecx
test eax, eax
je 0x18007c9ff
mov edx, r12d
dec eax
shr r12d, 2
movzx r8d, word [r13 + rax*2 + 0x88]
and edx, 3
add edx, 3
add ebx, 0xfffffffe
jmp 0x18007cbde
cmp word [rbp - 0x1f], 0x11
movzx r9d, byte [rbp - 0x20]
jne 0x18007cb98
lea edx, [r9 + 3]
cmp ebx, edx
jae 0x18007cb7e
nop dword [rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, edx
jb 0x18007cb60
mov ecx, r9d
mov eax, 0xfffffffd
shr r12d, cl
mov edx, r12d
and edx, 7
add edx, 3
shr r12d, 3
jmp 0x18007cbd6
lea edx, [r9 + 7]
cmp ebx, edx
jae 0x18007cbbe
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, edx
jb 0x18007cba0
mov ecx, r9d
mov eax, 0xfffffff9
shr r12d, cl
mov edx, r12d
and edx, 0x7f
add edx, 0xb
shr r12d, 7
sub eax, r9d
mov r8d, r15d
add ebx, eax
mov eax, dword [r13 + 0x7c]
lea ecx, [rdx + rax]
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp ecx, eax
ja 0x18007c9ff
test edx, edx
je 0x18007cc15
nop dword [rax]
mov eax, dword [r13 + 0x7c]
mov word [r13 + rax*2 + 0x88], r8w
inc dword [r13 + 0x7c]
dec edx
jne 0x18007cc00
mov r8d, 1
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp dword [r13 + 0x7c], eax
jb 0x18007ca40
cmp dword [r13], 0x1d
je 0x18007c0b6
cmp word [r13 + 0x288], 0
je 0x18007c9ff
mov r8d, dword [r13 + 0x74]
lea rax, [r13 + 0x548]
lea r15, [r13 + 0x308]
mov qword [r13 + 0x80], rax
mov qword [r13 + 0x58], rax
lea rax, [r13 + 0x68]
lea rdx, [r13 + 0x88]
lea r9, [r13 + 0x80]
mov ecx, 1
mov qword [rsp + 0x28], r15
mov dword [rax], 9
mov qword [rsp + 0x20], rax
call fcn.1800800b0
mov dword [rbp + 0x77], eax
test eax, eax
je 0x18007ccaf
mov r14, qword [rbp + 0x67]
xor r15d, r15d
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0b2
mov rax, qword [r13 + 0x80]
mov r8d, dword [r13 + 0x78]
lea rcx, [r13 + 0x6c]
mov qword [r13 + 0x60], rax
mov eax, dword [r13 + 0x74]
mov dword [rcx], 6
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea r9, [r13 + 0x80]
lea rdx, [r13 + rax*2 + 0x88]
mov ecx, 2
call fcn.1800800b0
mov r15d, eax
mov dword [rbp + 0x77], eax
test eax, eax
jne 0x18007cc97
mov ecx, dword [rbp + 0x6f]
mov dword [r13], 0x13
cmp ecx, 6
je 0x18007c71b
mov r14, qword [rbp + 0x67]
mov r9, qword [rbp - 0x19]
mov r8d, dword [rbp - 0x25]
mov r10d, dword [rbp + 0x7f]
xor r15d, r15d
mov dword [r13], 0x14
cmp edi, 6
jb 0x18007cd92
cmp r10d, 0x102
jb 0x18007cd92
mov qword [r14 + 0x10], r9
mov dword [r14 + 0x18], r10d
mov qword [r14], rsi
mov dword [r14 + 8], edi
mov edx, r8d
mov rcx, r14
mov dword [r13 + 0x40], r12d
mov dword [r13 + 0x44], ebx
call fcn.18007fc00
cmp dword [r13], 0xb
mov r9, qword [r14 + 0x10]
mov r10d, dword [r14 + 0x18]
mov rsi, qword [r14]
mov edi, dword [r14 + 8]
mov r12d, dword [r13 + 0x40]
mov ebx, dword [r13 + 0x44]
mov qword [rbp - 0x19], r9
mov dword [rbp + 0x7f], r10d
jne 0x18007c0ba
mov dword [r13 + 0x1bdc], 0xffffffff
jmp 0x18007c0ba
mov ecx, dword [r13 + 0x68]
mov r11, qword [r13 + 0x58]
mov r8d, 1
mov eax, r8d
mov dword [r13 + 0x1bdc], r15d
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x18007ce04
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [r13 + 0x68]
dec edi
add r12d, eax
mov eax, r8d
inc rsi
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x18007cdc5
test al, al
je 0x18007ced1
test al, 0xf0
jne 0x18007ced1
mov r10d, eax
movzx ecx, al
mov dword [rbp - 0x21], eax
shr r10d, 8
mov r9d, 1
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
dec r9d
and r9d, r12d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rbp - 0x20]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, ebx
jbe 0x18007cec1
movzx r10d, word [rbp - 0x1f]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
movzx r9d, r11b
shl eax, cl
mov r8d, 1
movzx ecx, dl
add ecx, r9d
add r12d, eax
movzx eax, r10w
shl r8d, cl
mov ecx, r9d
add ebx, 8
dec r8d
dec edi
inc rsi
and r8d, r12d
shr r8d, cl
add r8d, eax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, ebx
ja 0x18007ce68
movzx ecx, r11b
shr r12d, cl
sub ebx, ecx
mov dword [r13 + 0x1bdc], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [r13 + 0x1bdc], ecx
shr r12d, cl
sub ebx, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [r13 + 0x48], ecx
test al, al
jne 0x18007ceff
mov dword [r13], 0x19
jmp 0x18007c0b2
test al, 0x20
je 0x18007cf1b
mov dword [r13 + 0x1bdc], 0xffffffff
mov dword [r13], 0xb
jmp 0x18007c0b2
mov r11d, 1
test al, 0x40
je 0x18007cf3e
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
movzx ecx, al
mov dword [r13], 0x15
and ecx, 0xf
mov dword [r13 + 0x50], ecx
mov edx, dword [r13 + 0x50]
test edx, edx
je 0x18007cf9c
cmp ebx, edx
jae 0x18007cf80
nop dword [rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, dword [r13 + 0x50]
jb 0x18007cf60
mov ecx, edx
mov eax, r11d
sub ebx, edx
shl eax, cl
dec eax
and eax, r12d
shr r12d, cl
add dword [r13 + 0x48], eax
add dword [r13 + 0x1bdc], edx
mov eax, dword [r13 + 0x48]
mov dword [r13], 0x16
mov dword [r13 + 0x1be0], eax
mov ecx, dword [r13 + 0x6c]
mov r11, qword [r13 + 0x60]
mov r8d, 1
mov eax, r8d
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
jbe 0x18007d01f
nop dword [rax + rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
mov ecx, dword [r13 + 0x6c]
dec edi
add r12d, eax
mov eax, r8d
inc rsi
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x60]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, ebx
ja 0x18007cfe0
test al, 0xf0
jne 0x18007d0e9
mov r10d, eax
movzx ecx, al
mov dword [rbp - 0x21], eax
shr r10d, 8
mov r9d, 1
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
dec r9d
and r9d, r12d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rbp - 0x20]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, ebx
jbe 0x18007d0d9
movzx r10d, word [rbp - 0x1f]
nop dword [rax + rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
movzx r9d, r11b
shl eax, cl
mov r8d, 1
movzx ecx, dl
add ecx, r9d
add r12d, eax
movzx eax, r10w
shl r8d, cl
mov ecx, r9d
add ebx, 8
dec r8d
dec edi
inc rsi
and r8d, r12d
shr r8d, cl
add r8d, eax
mov rax, qword [r13 + 0x60]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, ebx
ja 0x18007d080
movzx ecx, r11b
shr r12d, cl
sub ebx, ecx
add dword [r13 + 0x1bdc], ecx
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov ecx, eax
shr ecx, 8
mov r11d, 1
movzx ecx, cl
add dword [r13 + 0x1bdc], ecx
shr r12d, cl
sub ebx, ecx
test al, 0x40
je 0x18007d120
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov r8d, dword [rbp - 0x25]
mov ecx, eax
mov dword [r13], 0x17
shr ecx, 0x10
mov dword [r13 + 0x4c], ecx
movzx ecx, al
and ecx, 0xf
mov dword [r13 + 0x50], ecx
mov edx, dword [r13 + 0x50]
test edx, edx
je 0x18007d18c
cmp ebx, edx
jae 0x18007d170
nop dword [rax + rax]
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, dword [r13 + 0x50]
jb 0x18007d150
mov ecx, edx
mov eax, r11d
sub ebx, edx
shl eax, cl
dec eax
and eax, r12d
shr r12d, cl
add dword [r13 + 0x4c], eax
add dword [r13 + 0x1bdc], edx
mov dword [r13], 0x18
test r10d, r10d
je 0x18007c714
mov ecx, dword [r13 + 0x4c]
mov eax, r8d
sub eax, r10d
cmp ecx, eax
jbe 0x18007d1f2
sub ecx, eax
cmp ecx, dword [r13 + 0x30]
jbe 0x18007d1ce
cmp dword [r13 + 0x1bd8], 0
je 0x18007d1ce
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov eax, dword [r13 + 0x34]
cmp ecx, eax
jbe 0x18007d1e0
mov edx, dword [r13 + 0x2c]
sub ecx, eax
sub edx, ecx
jmp 0x18007d1e4
sub eax, ecx
mov edx, eax
mov eax, dword [r13 + 0x48]
add rdx, qword [r13 + 0x38]
cmp ecx, eax
jbe 0x18007d1fe
jmp 0x18007d1fc
mov eax, dword [r13 + 0x48]
mov rdx, r9
sub rdx, rcx
mov ecx, eax
cmp ecx, r10d
cmova ecx, r10d
sub r10d, ecx
sub eax, ecx
sub rdx, r9
mov dword [rbp + 0x7f], r10d
mov dword [r13 + 0x48], eax
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
dec ecx
mov byte [r9 - 1], al
jne 0x18007d220
mov qword [rbp - 0x19], r9
cmp dword [r13 + 0x48], ecx
jne 0x18007c0c0
mov dword [r13], 0x14
jmp 0x18007c0c0
test r10d, r10d
je 0x18007c714
movzx eax, byte [r13 + 0x48]
inc r9
dec r10d
mov byte [r9 - 1], al
mov dword [rbp + 0x7f], r10d
mov qword [rbp - 0x19], r9
mov dword [r13], 0x14
jmp 0x18007c0c0
cmp dword [r13 + 8], 0
je 0x18007d33d
cmp ebx, 0x20
jae 0x18007d2a7
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x20
jb 0x18007d288
sub r8d, r10d
add dword [r14 + 0x1c], r8d
add dword [r13 + 0x1c], r8d
test r8d, r8d
je 0x18007d2ed
mov ecx, dword [r13 + 0x18]
mov eax, r8d
mov rdx, r9
sub rdx, rax
cmp dword [r13 + 0x10], 0
je 0x18007d2d2
call fcn.180080b40
jmp 0x18007d2d7
call fcn.180080510
mov r9, qword [rbp - 0x19]
mov r10d, dword [rbp + 0x7f]
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
mov r11d, 1
cmp dword [r13 + 0x10], 0
mov dword [rbp - 0x25], r10d
mov ecx, r12d
jne 0x18007d320
shl ecx, 0x10
mov eax, r12d
and eax, 0xff00
add ecx, eax
mov eax, r12d
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, r12d
shr eax, 0x18
add ecx, eax
cmp ecx, dword [r13 + 0x18]
je 0x18007d337
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 0x1b
cmp dword [r13 + 8], 0
je 0x18007d3b5
cmp dword [r13 + 0x10], 0
je 0x18007d3b5
cmp ebx, 0x20
jae 0x18007d377
test edi, edi
je 0x18007c714
movzx eax, byte [rsi]
mov ecx, ebx
add ebx, 8
shl eax, cl
dec edi
inc rsi
add r12d, eax
cmp ebx, 0x20
jb 0x18007d358
cmp r12d, dword [r13 + 0x1c]
je 0x18007d3af
mov qword [r14 + 0x20], r15
mov dword [r13], 0x1d
jmp 0x18007c0c0
mov qword [r14 + 0x10], r9
mov dword [r14 + 0x18], r10d
mov qword [r14], rsi
mov dword [r14 + 8], edi
mov eax, 2
mov dword [r13 + 0x40], r12d
mov dword [r13 + 0x44], ebx
jmp 0x18007c794
mov r12d, r15d
mov ebx, r15d
mov dword [r13], 0x1c
mov r15d, r11d
jmp 0x18007c718
mov r15d, 0xfffffffd
jmp 0x18007c718
sub ebx, dword [r14 + 0x18]
mov r10d, dword [rbp - 0x1d]
sub r10d, dword [r14 + 8]
add dword [r14 + 0x1c], ebx
add dword [r14 + 0xc], r10d
add dword [r13 + 0x1c], ebx
cmp dword [r13 + 8], 0
mov dword [rbp - 0x1d], r10d
je 0x18007d426
test ebx, ebx
je 0x18007d426
mov rdx, qword [r14 + 0x10]
mov ecx, dword [r13 + 0x18]
mov eax, ebx
sub rdx, rax
cmp dword [r13 + 0x10], 0
mov r8d, ebx
je 0x18007d415
call fcn.180080b40
jmp 0x18007d41a
call fcn.180080510
mov r10d, dword [rbp - 0x1d]
mov dword [r13 + 0x18], eax
mov dword [r14 + 0x4c], eax
mov edx, dword [r13]
cmp edx, 0x13
je 0x18007d43c
cmp edx, 0xe
je 0x18007d43c
xor r9d, r9d
mov r8d, r9d
jmp 0x18007d445
mov r8d, 0x100
xor r9d, r9d
mov eax, dword [r13 + 4]
neg eax
mov eax, 0x80
sbb ecx, ecx
and ecx, 0x40
cmp edx, 0xb
cmove r9d, eax
lea eax, [r8 + rcx]
add r9d, eax
add r9d, dword [r13 + 0x44]
mov dword [r14 + 0x48], r9d
test r10d, r10d
jne 0x18007d474
test ebx, ebx
je 0x18007d47a
cmp dword [rbp + 0x6f], 4
jne 0x18007d486
mov eax, 0xfffffffb
test r15d, r15d
cmove r15d, eax
mov eax, r15d
jmp 0x18007c794
mov eax, 0xfffffffe
jmp 0x18007c794
mov eax, 0xfffffffe
add rsp, 0x98
pop r15
pop r14
pop r13
pop rbp
ret