Function at 0x1800159e0
Capabilities:
Compute adler32 checksum

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x98
mov r15, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov qword [rsp + 0x78], r8
mov ebx, ebp
mov dword [rsp + 0x40], edx
mov ecx, 0x20000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
mov rsi, rax
test rax, rax
jne 0x180015a2c
add rsp, 0x98
pop r15
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0xd8], rdi
mov edx, 0xa
mov qword [rsp + 0x90], r12
xor ecx, ecx
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x80], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180015a71
lea rbx, [rax + 8]
mov dword [rax + 4], ebp
mov qword [rsp + 0x20], rbx
mov dword [rbx - 8], 2
movsxd rax, dword [rbx - 4]
lea rcx, [rbx - 8]
mov r8, 0xffffffffffffffff
mov byte [rax + rbx], 0x78
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x180015abb
lea edi, [rdx*2 + 1]
movsxd rdx, edi
add rdx, 8
cmovb rdx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180015abb
lea rbx, [rax + 8]
mov dword [rbx - 8], edi
mov qword [rsp + 0x20], rbx
movsxd rax, dword [rbx - 4]
mov edi, 3
xor edx, edx
mov dword [rsp + 0x30], edi
mov r8d, 0x20000
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov r13d, edi
mov byte [rax + rbx], 0x5e
inc dword [rbx - 4]
call sub.VCRUNTIME140.dll_memset
mov r11d, dword [rsp + 0x40]
mov r10d, ebp
mov dword [rsp + 0x38], ebp
lea eax, [r11 - 3]
test eax, eax
jle 0x180016611
jmp 0x180015b05
mov rsi, qword [rsp + 0x58]
movsxd rax, r10d
movzx edx, byte [rax + r15 + 2]
lea rcx, [rax + r15]
mov qword [rsp + 0x60], rax
mov r15, rbp
movzx eax, byte [rcx + 1]
shl eax, 8
shl edx, 0x10
add edx, eax
mov qword [rsp + 0x68], rcx
movzx eax, byte [rcx]
add edx, eax
mov dword [rsp + 0x2c], 3
mov qword [rsp + 0x50], rbp
lea eax, [rdx*8]
xor edx, eax
mov eax, edx
shr eax, 5
add edx, eax
mov eax, edx
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x11
add edx, eax
mov eax, edx
shl eax, 0x19
xor edx, eax
mov ecx, edx
shr ecx, 6
add ecx, edx
and ecx, 0x3fff
mov r14, qword [rsi + rcx*8]
lea r12, [rsi + rcx*8]
mov qword [rsp + 0x70], r12
test r14, r14
je 0x180015b87
mov eax, dword [r14 - 4]
jmp 0x180015b89
mov eax, ebp
mov rsi, rbp
movsxd rbp, eax
mov rcx, r14
test eax, eax
jle 0x180015c51
mov r12, qword [rsp + 0x60]
lea eax, [r10 - 0x8000]
mov r13d, dword [rsp + 0x2c]
xor edi, edi
mov rbx, qword [rsp + 0x48]
movsxd r15, eax
nop word [rax + rax]
mov r9, qword [r14 + rsi*8]
mov rax, r9
sub rax, rbx
cmp rax, r15
jle 0x180015c2d
mov eax, r11d
mov r8d, edi
sub eax, r10d
mov rdx, rdi
test eax, eax
jle 0x180015c1b
mov r11, r12
movsxd r10, eax
sub r11, r9
add r11, rbx
nop dword [rax + rax]
cmp rdx, 0x102
jge 0x180015c11
lea rcx, [rdx + r9]
movzx eax, byte [r11 + rcx]
cmp byte [rcx], al
jne 0x180015c11
inc r8d
inc rdx
cmp rdx, r10
jl 0x180015bf0
mov r10d, dword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
cmp r8d, r13d
jl 0x180015c2d
mov dword [rsp + 0x2c], r8d
mov r13d, r8d
mov qword [rsp + 0x50], r9
inc rsi
cmp rsi, rbp
jl 0x180015bc0
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x20]
mov edi, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x28]
mov rcx, qword [r12]
mov r15, qword [rsp + 0x50]
test r14, r14
je 0x180015c7e
cmp dword [r14 - 4], 0x10
jne 0x180015c7e
lea rdx, [r14 + 0x40]
mov r8d, 0x40
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [r12]
mov dword [rax - 4], 8
mov rcx, qword [r12]
test rcx, rcx
je 0x180015c9d
mov eax, dword [rcx - 4]
inc eax
cmp eax, dword [rcx - 8]
jl 0x180015cf1
mov eax, dword [rcx - 8]
lea r8, [rcx - 8]
lea ebp, [rax*2 + 1]
jmp 0x180015ca6
mov ebp, 2
lea r8, [rcx - 8]
lea eax, [rbp*8]
mov r14d, 0
movsxd rdx, eax
mov rsi, r12
add rdx, 8
mov rax, 0xffffffffffffffff
cmovb rdx, rax
test rcx, rcx
cmove r8, r14
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180015cf1
cmp qword [r12], r14
jne 0x180015ce7
mov dword [rax + 4], r14d
add rax, 8
mov qword [rsi], rax
mov dword [rax - 8], ebp
mov rcx, qword [r12]
mov r8, qword [rsp + 0x68]
movsxd rax, dword [rcx - 4]
mov qword [rcx + rax*8], r8
mov rax, qword [r12]
inc dword [rax - 4]
test r15, r15
je 0x180016431
movzx edx, byte [r8 + 3]
xor r10d, r10d
movzx eax, byte [r8 + 2]
mov r14, qword [rsp + 0x58]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [r8 + 1]
add edx, eax
lea eax, [rdx*8]
xor edx, eax
mov eax, edx
shr eax, 5
add edx, eax
mov eax, edx
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x11
add edx, eax
mov eax, edx
shl eax, 0x19
xor edx, eax
mov ecx, edx
shr ecx, 6
add ecx, edx
and ecx, 0x3fff
mov r14, qword [r14 + rcx*8]
test r14, r14
je 0x180015d74
mov eax, dword [r14 - 4]
jmp 0x180015d77
mov eax, r10d
movsxd rbp, eax
mov rsi, r10
test eax, eax
jle 0x180015e16
mov ecx, dword [rsp + 0x38]
mov r12, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
lea eax, [rcx - 0x7fff]
movsxd r15, eax
nop dword [rax]
mov r9, qword [r14 + rsi*8]
mov rax, r9
sub rax, r11
cmp rax, r15
jle 0x180015e09
mov eax, dword [rsp + 0x40]
mov r8d, r10d
sub eax, ecx
mov rdx, r10
dec eax
test eax, eax
jle 0x180015dfe
movsxd r10, eax
mov rax, r12
sub rax, r9
add r11, rax
nop dword [rax]
cmp rdx, 0x102
jge 0x180015df2
lea rcx, [rdx + r9]
movzx eax, byte [r11 + rcx + 1]
cmp byte [rcx], al
jne 0x180015df2
inc r8d
inc rdx
cmp rdx, r10
jl 0x180015dd0
mov ecx, dword [rsp + 0x38]
xor r10d, r10d
mov r11, qword [rsp + 0x48]
cmp r8d, dword [rsp + 0x2c]
jg 0x18001642c
inc rsi
cmp rsi, rbp
jl 0x180015da0
mov r15, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x48]
mov ecx, r10d
sub r12d, r15d
mov r14, r10
add r12d, dword [rsp + 0x38]
mov r15d, dword [rsp + 0x2c]
cmp r15d, 3
jle 0x180015e55
lea rdx, [0x180000000]
nop dword [rax + rax]
movzx eax, word [rdx + r14*2 + 0x1af804]
inc r14
dec eax
inc ecx
cmp r15d, eax
jg 0x180015e40
lea eax, [rcx + 0x101]
mov edx, r10d
cmp eax, 0x8f
jg 0x180015f23
add ecx, 0x131
mov r8d, 8
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180015e75
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 8
or edi, edx
cmp r13d, 8
jl 0x180016173
mov ebp, r13d
mov r15, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
test rbx, rbx
je 0x180015ed1
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180015f0a
lea esi, [rsi*2 + 1]
jmp 0x180015ed6
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r10d, r10d
test rax, rax
je 0x180015f0a
test rbx, rbx
jne 0x180015f03
mov dword [rax + 4], r10d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180015eb7
jmp 0x180016169
cmp eax, 0xff
jg 0x180015fee
add ecx, 0x201
mov r8d, 9
nop word [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180015f40
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 9
or edi, edx
cmp r13d, 8
jl 0x180016173
mov ebp, r13d
mov r15, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
test rbx, rbx
je 0x180015f9c
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180015fd5
lea esi, [rsi*2 + 1]
jmp 0x180015fa1
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r10d, r10d
test rax, rax
je 0x180015fd5
test rbx, rbx
jne 0x180015fce
mov dword [rax + 4], r10d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180015f82
jmp 0x180016169
cmp eax, 0x117
jg 0x1800160af
inc ecx
mov r8d, 7
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016001
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 7
or edi, edx
cmp r13d, 8
jl 0x180016173
mov ebp, r13d
mov r15, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
test rbx, rbx
je 0x18001605d
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016096
lea esi, [rsi*2 + 1]
jmp 0x180016062
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r10d, r10d
test rax, rax
je 0x180016096
test rbx, rbx
jne 0x18001608f
mov dword [rax + 4], r10d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016043
jmp 0x180016169
add ecx, 0xa9
mov r8d, 8
nop dword [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x1800160c0
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 8
or edi, edx
cmp r13d, 8
jl 0x180016173
mov ebp, r13d
mov r15, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
test rbx, rbx
je 0x18001611c
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016155
lea esi, [rsi*2 + 1]
jmp 0x180016121
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
xor r10d, r10d
test rax, rax
je 0x180016155
test rbx, rbx
jne 0x18001614e
mov dword [rax + 4], r10d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016102
mov r15d, dword [rsp + 0x2c]
mov qword [rsp + 0x20], rbx
lea rax, [0x180000000]
movzx r8d, byte [r14 + rax + 0x1af7e0]
test r8b, r8b
je 0x180016242
movzx eax, word [rax + r14*2 + 0x1af800]
mov ecx, r13d
mov edx, r15d
mov qword [rsp + 0x20], rbx
sub edx, eax
add r13d, r8d
shl edx, cl
or edi, edx
cmp r13d, 8
jl 0x180016242
mov ebp, r13d
mov r15, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
jmp 0x1800161d3
xor r10d, r10d
test rbx, rbx
je 0x1800161ed
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016224
lea esi, [rsi*2 + 1]
jmp 0x1800161f2
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016224
test rbx, rbx
jne 0x18001621d
xor ecx, ecx
mov dword [rax + 4], ecx
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x1800161d0
mov r15d, dword [rsp + 0x2c]
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, edx
mov r14d, edx
cmp r12d, 1
jle 0x18001627a
lea rbx, [0x180000000]
nop word [rax + rax]
movzx eax, word [rbx + r14*2 + 0x1af7a4]
inc r14
dec eax
inc ecx
cmp r12d, eax
jg 0x180016260
mov rbx, qword [rsp + 0x20]
mov r8d, 5
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016280
mov ecx, r13d
add r13d, 5
shl edx, cl
or edi, edx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x30], edi
cmp r13d, 8
jl 0x180016347
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
mov dword [rsp + 0x28], r13d
xor r13d, r13d
lea r15, [r13 - 1]
nop dword [rax + rax]
test rbx, rbx
je 0x1800162ea
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016320
lea esi, [rsi*2 + 1]
jmp 0x1800162ef
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016320
test rbx, rbx
jne 0x180016319
mov dword [rax + 4], r13d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x1800162d0
mov r13d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rbx
lea rax, [0x180000000]
movzx edx, byte [r14 + rax + 0x1af780]
test dl, dl
je 0x1800165e8
movzx eax, word [rax + r14*2 + 0x1af7a0]
mov ecx, r13d
sub r12d, eax
mov qword [rsp + 0x20], rbx
shl r12d, cl
add r13d, edx
or edi, r12d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x30], edi
cmp r13d, 8
jl 0x1800165e8
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
mov dword [rsp + 0x28], r13d
xor r13d, r13d
lea r15, [r13 - 1]
nop dword [rax + rax]
test rbx, rbx
je 0x1800163ca
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016400
lea esi, [rsi*2 + 1]
jmp 0x1800163cf
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016400
test rbx, rbx
jne 0x1800163f9
mov dword [rax + 4], r13d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x1800163b0
mov r13d, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rbx
jmp 0x1800165e8
mov r8, qword [rsp + 0x68]
movzx ecx, byte [r8]
cmp cl, 0x8f
ja 0x180016509
add ecx, 0x30
xor r14d, r14d
mov edx, r14d
lea r8d, [r14 + 8]
nop dword [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016450
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 8
or edi, edx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x30], edi
cmp r13d, 8
jl 0x1800165e2
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
mov dword [rsp + 0x28], r13d
mov r13, 0xffffffffffffffff
test rbx, rbx
je 0x1800164ba
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x1800164f0
lea esi, [rsi*2 + 1]
jmp 0x1800164bf
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r13
test rbx, rbx
cmove rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1800164f0
test rbx, rbx
jne 0x1800164e9
mov dword [rax + 4], r14d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x1800164a0
jmp 0x1800165d4
add ecx, 0x100
xor r14d, r14d
mov edx, r14d
lea r8d, [r14 + 9]
nop dword [rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016520
mov ecx, r13d
mov qword [rsp + 0x20], rbx
shl edx, cl
add r13d, 9
or edi, edx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x30], edi
cmp r13d, 8
jl 0x1800165e2
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
mov dword [rsp + 0x28], r13d
mov r13, 0xffffffffffffffff
test rbx, rbx
je 0x18001658a
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x1800165c0
lea esi, [rsi*2 + 1]
jmp 0x18001658f
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r13
test rbx, rbx
cmove rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1800165c0
test rbx, rbx
jne 0x1800165b9
mov dword [rax + 4], r14d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016570
mov r13d, dword [rsp + 0x28]
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x30], edi
mov r15d, 1
mov r10d, dword [rsp + 0x38]
mov ebp, 0
mov r11d, dword [rsp + 0x40]
add r10d, r15d
mov r15, qword [rsp + 0x48]
mov dword [rsp + 0x38], r10d
lea eax, [r11 - 3]
cmp r10d, eax
jl 0x180015b00
movsxd r12, r11d
movsxd r14, r10d
mov qword [rsp + 0x38], r12
cmp r14, r12
jge 0x1800167c3
nop word [rax + rax]
movzx ecx, byte [r14 + r15]
mov edx, ebp
cmp cl, 0x8f
ja 0x1800166f9
add ecx, 0x30
mov r8d, 8
nop dword [rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016650
mov ecx, r13d
add r13d, 8
shl edx, cl
or edi, edx
cmp r13d, 8
jl 0x1800167b2
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
xor r15d, r15d
lea r13d, [r13 + rax*8]
lea r12, [r15 - 1]
nop dword [rax]
test rbx, rbx
je 0x1800166aa
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x1800166e0
lea esi, [rsi*2 + 1]
jmp 0x1800166af
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r12
test rbx, rbx
cmove rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1800166e0
test rbx, rbx
jne 0x1800166d9
mov dword [rax + 4], r15d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016690
jmp 0x1800167a6
add ecx, 0x100
mov r8d, 9
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x180016705
mov ecx, r13d
add r13d, 9
shl edx, cl
or edi, edx
cmp r13d, 8
jl 0x1800167b2
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
xor r15d, r15d
lea r13d, [r13 + rax*8]
lea r12, [r15 - 1]
test rbx, rbx
je 0x18001675c
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016792
lea esi, [rsi*2 + 1]
jmp 0x180016761
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r12
test rbx, rbx
cmove rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016792
test rbx, rbx
jne 0x18001678b
mov dword [rax + 4], r15d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016742
mov r15, qword [rsp + 0x48]
xor ebp, ebp
mov r12, qword [rsp + 0x38]
inc r14
cmp r14, r12
jl 0x180016630
mov qword [rsp + 0x20], rbx
xor r14d, r14d
mov r8d, r14d
mov edx, r14d
lea r9d, [r14 + 7]
mov ecx, r8d
lea eax, [rdx + rdx]
and ecx, 1
sar r8d, 1
mov edx, ecx
or edx, eax
sub r9d, 1
jne 0x1800167d0
mov ecx, r13d
add r13d, 7
shl edx, cl
or edi, edx
cmp r13d, 8
jl 0x180016880
mov ebp, r13d
mov r12, 0xffffffffffffffff
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
test rbx, rbx
je 0x18001682c
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016862
lea esi, [rsi*2 + 1]
jmp 0x180016831
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r12
test rbx, rbx
cmove rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016862
test rbx, rbx
jne 0x18001685b
mov dword [rax + 4], r14d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x180016812
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
test r13d, r13d
je 0x180016927
mov r15, 0xffffffffffffffff
inc r13d
cmp r13d, 8
jl 0x180016914
mov ebp, r13d
shr rbp, 3
mov eax, ebp
neg eax
lea r13d, [r13 + rax*8]
nop dword [rax]
test rbx, rbx
je 0x1800168ca
mov eax, dword [rbx - 4]
mov esi, dword [rbx - 8]
inc eax
cmp eax, esi
jl 0x180016900
lea esi, [rsi*2 + 1]
jmp 0x1800168cf
mov esi, 2
movsxd rdx, esi
lea rcx, [rbx - 8]
add rdx, 8
cmovb rdx, r15
test rbx, rbx
cmove rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016900
test rbx, rbx
jne 0x1800168f9
mov dword [rax + 4], r14d
lea rbx, [rax + 8]
mov dword [rbx - 8], esi
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rbp, 1
jne 0x1800168b0
test r13d, r13d
jne 0x180016890
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r14, qword [rsp + 0x58]
mov esi, 0x4000
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x180016946
add rcx, 0xfffffffffffffff8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rdi, 8
sub rsi, 1
jne 0x180016934
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13d, dword [rsp + 0x40]
mov eax, 0x80010003
lea ecx, [r13 + 0x7ffe]
imul ecx
add edx, ecx
lea ecx, [r13 + 2]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rcx + rdx*4]
add ecx, edx
cmp dword [rbx - 4], ecx
jle 0x180016b57
xor r14d, r14d
mov dword [rbx - 4], 2
test r13d, r13d
jle 0x180016b57
lea rdi, [rbx - 8]
mov r12d, 0x7fff
nop word [rax + rax]
mov eax, dword [rbx - 4]
mov ebp, r13d
mov r15d, dword [rdi]
sub ebp, r14d
cmp ebp, r12d
mov esi, ebp
cmovg esi, r12d
inc eax
cmp eax, r15d
jl 0x1800169ff
mov rax, 0xffffffffffffffff
lea r15d, [r15*2 + 1]
movsxd rdx, r15d
mov rcx, rdi
add rdx, 8
cmovb rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1800169ff
lea rbx, [rax + 8]
lea rdi, [rbx - 8]
mov dword [rdi], r15d
movsxd rax, dword [rbx - 4]
cmp ebp, esi
mov r15, 0xffffffffffffffff
sete cl
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ebp, dword [rdi]
inc eax
cmp eax, ebp
jl 0x180016a4a
lea ebp, [rbp*2 + 1]
mov rcx, rdi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016a4a
lea rbx, [rax + 8]
lea rdi, [rbx - 8]
mov dword [rdi], ebp
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], sil
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ecx, dword [rdi]
inc eax
cmp eax, ecx
jl 0x180016a8a
lea ebp, [rcx*2 + 1]
mov rcx, rdi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016a8a
lea rbx, [rax + 8]
lea rdi, [rbx - 8]
mov dword [rdi], ebp
movsxd rax, dword [rbx - 4]
mov ecx, esi
sar ecx, 8
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ebp, dword [rdi]
inc eax
cmp eax, ebp
jl 0x180016ace
lea ebp, [rbp*2 + 1]
mov rcx, rdi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016ace
lea rbx, [rax + 8]
lea rdi, [rbx - 8]
mov dword [rdi], ebp
movsxd rax, dword [rbx - 4]
movzx ecx, sil
not cl
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ebp, dword [rdi]
inc eax
cmp eax, ebp
jl 0x180016b13
lea ebp, [rbp*2 + 1]
mov rcx, rdi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016b13
lea rbx, [rax + 8]
lea rdi, [rbx - 8]
mov dword [rdi], ebp
movsxd rax, dword [rbx - 4]
mov ecx, esi
mov r15, qword [rsp + 0x48]
not ecx
sar ecx, 8
movsxd rdx, r14d
mov byte [rax + rbx], cl
add rdx, r15
inc dword [rbx - 4]
movsxd rcx, dword [rbx - 4]
add rcx, rbx
movsxd r8, esi
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx - 4], esi
add r14d, esi
cmp r14d, r13d
jl 0x1800169b0
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
xor edi, edi
lea r14d, [rdi + 1]
test r12, r12
jle 0x180016beb
mov eax, 0x5e6ea9af
imul r13d
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x15b0
sub r13d, eax
xor ebx, ebx
movsxd r8, r13d
mov r9d, ebx
nop dword [rax]
mov rcx, rbx
test r8, r8
jle 0x180016bb2
lea rdx, [r9 + r15]
nop dword [rax]
movzx eax, byte [rcx + rdx]
inc rcx
add r14d, eax
add edi, r14d
cmp rcx, r8
jl 0x180016ba0
mov eax, 0x80078071
add r9, r8
mul r14d
mov r8d, 0x15b0
shr edx, 0xf
imul eax, edx, 0xffff000f
add r14d, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
cmp r9, r12
jl 0x180016b90
mov rbx, qword [rsp + 0x20]
mov eax, dword [rbx - 4]
lea rsi, [rbx - 8]
mov ecx, dword [rsi]
inc eax
mov r13, qword [rsp + 0x88]
mov r15, 0xffffffffffffffff
mov r12, qword [rsp + 0x90]
cmp eax, ecx
jl 0x180016c3b
lea ebp, [rcx*2 + 1]
mov rcx, rsi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016c3b
lea rbx, [rax + 8]
lea rsi, [rbx - 8]
mov dword [rsi], ebp
movsxd rax, dword [rbx - 4]
mov ecx, edi
shr ecx, 8
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ebp, dword [rsi]
inc eax
cmp eax, ebp
jl 0x180016c7f
lea ebp, [rbp*2 + 1]
mov rcx, rsi
movsxd rdx, ebp
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016c7f
lea rbx, [rax + 8]
lea rsi, [rbx - 8]
mov dword [rsi], ebp
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edi, dword [rsi]
inc eax
cmp eax, edi
jl 0x180016cbf
lea edi, [rdi*2 + 1]
mov rcx, rsi
movsxd rdx, edi
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016cbf
lea rbx, [rax + 8]
lea rsi, [rbx - 8]
mov dword [rsi], edi
movsxd rax, dword [rbx - 4]
mov ecx, r14d
shr ecx, 8
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edi, dword [rsi]
inc eax
cmp eax, edi
jl 0x180016d04
lea edi, [rdi*2 + 1]
mov rcx, rsi
movsxd rdx, edi
add rdx, 8
cmovb rdx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x180016d04
lea rbx, [rax + 8]
lea rsi, [rbx - 8]
mov dword [rsi], edi
movsxd rcx, dword [rbx - 4]
mov rdx, rbx
mov rax, qword [rsp + 0x78]
mov byte [rcx + rbx], r14b
inc dword [rbx - 4]
movsxd rcx, dword [rbx - 4]
mov dword [rax], ecx
mov r8, rcx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r14, qword [rsp + 0x80]
mov rax, rsi
mov rdi, qword [rsp + 0xd8]
add rsp, 0x98
pop r15
pop rsi
pop rbp
pop rbx
ret