Function at 0x140186df0
Capabilities:
Compute adler32 checksum

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rcx
mov qword [rbp - 0x19], rcx
xor r15d, r15d
mov qword [rbp + 0xf], r8
mov ebx, r15d
mov dword [rbp - 0x21], edx
mov ecx, 0x20000
mov qword [rbp - 0x31], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 7], rax
mov r14, rax
test rax, rax
je 0x140187f58
mov qword [rsp + 0xd8], rdi
mov edx, 0xa
mov qword [rsp + 0x88], r12
xor ecx, ecx
mov qword [rsp + 0x80], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140186e8b
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140186e9a
lea rbx, [rax + 8]
mov qword [rax], 2
mov qword [rbp - 0x31], rbx
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 0x140186f07
lea eax, [rdx + rdx]
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r8
test rbx, rbx
cmove rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140186efd
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140186f07
lea rbx, [rax + 8]
mov dword [rax], edi
mov qword [rbp - 0x31], rbx
movsxd rax, dword [rbx - 4]
mov edi, 3
xor edx, edx
mov dword [rbp - 0x25], edi
mov r8d, 0x20000
mov dword [rbp - 0x29], edi
mov rcx, r14
mov r15d, edi
mov byte [rax + rbx], 0x5e
inc dword [rbx - 4]
call sub.VCRUNTIME140.dll_memset
mov r11d, dword [rbp - 0x21]
lea r13d, [rdi - 2]
xor r9d, r9d
mov r10d, r9d
mov dword [rbp - 0x35], r9d
lea eax, [r11 - 3]
test eax, eax
jle 0x1401877e4
jmp 0x140186f54
mov r14, qword [rbp + 7]
movsxd rax, r10d
movzx ecx, byte [rsi + rax + 2]
lea rdx, [rsi + rax]
mov qword [rbp - 1], rax
movzx eax, byte [rdx + 1]
shl eax, 8
shl ecx, 0x10
add ecx, eax
mov dword [rbp - 0x39], 3
movzx eax, byte [rdx]
add ecx, eax
mov qword [rbp + 0x17], r9
lea eax, [rcx*8]
xor ecx, eax
mov eax, ecx
shr eax, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor ecx, eax
mov eax, ecx
shr eax, 0x11
add ecx, eax
mov eax, ecx
shl eax, 0x19
xor ecx, eax
mov eax, ecx
shr eax, 6
add eax, ecx
and eax, 0x3fff
lea rdx, [r14 + rax*8]
mov r14, qword [r14 + rax*8]
mov qword [rbp - 0x11], rdx
test r14, r14
je 0x140186fc8
mov eax, dword [r14 - 4]
jmp 0x140186fcb
mov eax, r9d
movsxd r12, eax
mov rsi, r9
test eax, eax
jle 0x14018708a
mov r13, qword [rbp - 1]
lea eax, [r10 - 0x8000]
mov r15d, dword [rbp - 0x39]
xor edi, edi
mov rbx, qword [rbp - 0x19]
movsxd rcx, eax
mov qword [rbp - 9], rcx
nop word [rax + rax]
mov r9, qword [r14 + rsi*8]
mov rax, r9
sub rax, rbx
cmp rax, rcx
jle 0x14018706d
mov eax, r11d
mov r8d, edi
sub eax, r10d
mov rdx, rdi
test eax, eax
jle 0x14018705d
mov r11, r13
movsxd r10, eax
sub r11, r9
add r11, rbx
nop dword [rax + rax]
cmp rdx, 0x102
jge 0x140187051
lea rcx, [r9 + rdx]
movzx eax, byte [rcx + r11]
cmp byte [rcx], al
jne 0x140187051
inc r8d
inc rdx
cmp rdx, r10
jl 0x140187030
mov rcx, qword [rbp - 9]
mov r10d, dword [rbp - 0x35]
mov r11d, dword [rbp - 0x21]
cmp r8d, r15d
jl 0x14018706d
mov dword [rbp - 0x39], r8d
mov r15d, r8d
mov qword [rbp + 0x17], r9
inc rsi
cmp rsi, r12
jl 0x140187000
mov rbx, qword [rbp - 0x31]
mov r13d, 1
mov edi, dword [rbp - 0x25]
mov r15d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x11]
test r14, r14
je 0x1401870b6
cmp dword [r14 - 4], 0x10
jne 0x1401870b6
lea rdx, [r14 + 0x40]
mov r8d, 0x40
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov rdx, qword [rbp - 0x11]
mov rax, qword [rdx]
mov dword [rax - 4], 8
mov rcx, qword [rdx]
test rcx, rcx
je 0x1401870c8
mov eax, dword [rcx - 4]
inc eax
cmp eax, dword [rcx - 8]
jl 0x1401870da
mov r8d, 8
mov rcx, rdx
call fcn.140186d30
mov rdx, qword [rbp - 0x11]
mov rcx, qword [rdx]
mov r8, qword [rbp - 1]
mov rsi, qword [rbp - 0x19]
add r8, rsi
movsxd rax, dword [rcx - 4]
mov qword [rcx + rax*8], r8
mov rax, qword [rdx]
inc dword [rax - 4]
cmp qword [rbp + 0x17], 0
je 0x140187687
movzx ecx, byte [r8 + 3]
movzx eax, byte [r8 + 2]
shl eax, 8
shl ecx, 0x10
add ecx, eax
movzx eax, byte [r8 + 1]
add ecx, eax
xor r8d, r8d
lea eax, [rcx*8]
xor ecx, eax
mov eax, ecx
shr eax, 5
add ecx, eax
mov eax, ecx
shl eax, 4
xor ecx, eax
mov eax, ecx
shr eax, 0x11
add ecx, eax
mov eax, ecx
shl eax, 0x19
xor ecx, eax
mov eax, ecx
shr eax, 6
add eax, ecx
mov rcx, qword [rbp + 7]
and eax, 0x3fff
mov rcx, qword [rcx + rax*8]
mov qword [rbp - 9], rcx
test rcx, rcx
je 0x140187164
mov eax, dword [rcx - 4]
jmp 0x140187167
mov eax, r8d
movsxd r12, eax
mov r14, r8
test eax, eax
jle 0x140187215
mov r11d, dword [rbp - 0x35]
lea eax, [r11 - 0x7fff]
movsxd rdx, eax
mov qword [rbp - 0x11], rdx
nop word [rax + rax]
mov r10, qword [rcx + r14*8]
mov rax, r10
sub rax, rsi
cmp rax, rdx
jle 0x140187209
mov eax, dword [rbp - 0x21]
mov r9d, r8d
sub eax, r11d
dec eax
test eax, eax
jle 0x1401871fc
mov r11, qword [rbp - 0x19]
mov r13, qword [rbp - 1]
sub r11, r10
movsxd rsi, eax
nop dword [rax]
cmp r8, 0x102
jge 0x1401871e6
lea rdx, [r10 + r8]
lea rax, [rdx + r13]
movzx ecx, byte [rax + r11 + 1]
cmp byte [rdx], cl
jne 0x1401871e6
inc r9d
inc r8
cmp r8, rsi
jl 0x1401871c0
mov rcx, qword [rbp - 9]
mov r13d, 1
mov rdx, qword [rbp - 0x11]
mov r11d, dword [rbp - 0x35]
mov rsi, qword [rbp - 0x19]
cmp r9d, dword [rbp - 0x39]
jg 0x140187687
xor r8d, r8d
inc r14
cmp r14, r12
jl 0x140187190
mov r12d, esi
mov esi, dword [rbp - 0x39]
sub r12d, dword [rbp + 0x17]
add r12d, dword [rbp - 0x35]
cmp r12d, 0x7fff
jg 0x140187234
cmp esi, 0x102
jle 0x14018724e
mov r8d, 0x3d3
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, str.d___32767__best___258
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor edx, edx
mov ecx, edx
mov r14d, edx
cmp esi, 3
jle 0x140187284
lea r8, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + r14*2 + 0x1e86cc]
inc r14
dec eax
inc ecx
cmp esi, eax
jg 0x140187270
lea eax, [rcx + 0x101]
cmp eax, 0x8f
jg 0x140187318
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 0x1401872a1
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 8
or edi, edx
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401874ba
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop
test rbx, rbx
je 0x1401872ef
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x1401872ff
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x1401872e0
jmp 0x1401874b3
cmp eax, 0xff
jg 0x1401873a8
add ecx, 0x201
mov r8d, 9
nop
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187330
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 9
or edi, edx
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401874ba
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop dword [rax]
test rbx, rbx
je 0x14018737f
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018738f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187370
jmp 0x1401874b3
cmp eax, 0x117
jg 0x140187435
inc ecx
mov r8d, 7
nop dword [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x1401873c0
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 7
or edi, edx
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401874ba
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop dword [rax]
test rbx, rbx
je 0x14018740f
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018741f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187400
jmp 0x1401874b3
add ecx, 0xa9
mov r8d, 8
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187441
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 8
or edi, edx
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401874ba
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop word [rax + rax]
test rbx, rbx
je 0x14018748f
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018749f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187480
mov esi, dword [rbp - 0x39]
mov qword [rbp - 0x31], rbx
lea rax, [0x140000000]
movzx r8d, byte [r14 + rax + 0x1e8bb8]
test r8b, r8b
je 0x14018753a
movzx eax, word [rax + r14*2 + 0x1e86c8]
mov ecx, r15d
mov edx, esi
mov qword [rbp - 0x31], rbx
sub edx, eax
mov qword [rbp + 0x17], rbx
shl edx, cl
add r15d, r8d
or edi, edx
cmp r15d, 8
jl 0x14018753a
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
test rbx, rbx
je 0x140187512
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x140187522
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187503
mov qword [rbp - 0x31], rbx
xor edx, edx
mov ecx, edx
mov r14d, edx
cmp r12d, 1
jle 0x140187567
lea rdx, [0x140000000]
nop
movzx eax, word [rdx + r14*2 + 0x1e8b24]
inc r14
dec eax
inc ecx
cmp r12d, eax
jg 0x140187550
xor edx, edx
mov r8d, 5
nop dword [rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187570
mov ecx, r15d
mov qword [rbp + 0x17], rbx
shl edx, cl
add r15d, 5
or edi, edx
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x25], edi
cmp r15d, 8
jl 0x1401875ea
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
mov dword [rbp - 0x29], r15d
test rbx, rbx
je 0x1401875bf
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x1401875cf
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x1401875b0
mov dword [rbp - 0x25], edi
mov qword [rbp - 0x31], rbx
lea rax, [0x140000000]
movzx edx, byte [r14 + rax + 0x1e8b70]
test dl, dl
je 0x14018767a
movzx eax, word [rax + r14*2 + 0x1e8b20]
mov ecx, r15d
sub r12d, eax
mov qword [rbp - 0x31], rbx
shl r12d, cl
add r15d, edx
or edi, r12d
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x25], edi
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x14018767a
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
mov dword [rbp - 0x29], r15d
nop
test rbx, rbx
je 0x14018764f
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018765f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187640
mov dword [rbp - 0x25], edi
mov qword [rbp - 0x31], rbx
mov r10d, dword [rbp - 0x35]
add r10d, dword [rbp - 0x39]
jmp 0x1401877c5
movsxd r10, dword [rbp - 0x35]
movzx ecx, byte [rsi + r10]
cmp cl, 0x8f
ja 0x140187728
add ecx, 0x30
xor eax, eax
mov edx, eax
lea r8d, [rax + 8]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x1401876a4
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 8
or edi, edx
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x25], edi
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401877c2
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
mov dword [rbp - 0x29], r15d
nop dword [rax]
test rbx, rbx
je 0x1401876ff
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018770f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x1401876f0
jmp 0x1401877b7
add ecx, 0x100
xor eax, eax
mov edx, eax
lea r8d, [rax + 9]
nop word [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187740
mov ecx, r15d
mov qword [rbp - 0x31], rbx
shl edx, cl
add r15d, 9
or edi, edx
mov dword [rbp - 0x29], r15d
mov dword [rbp - 0x25], edi
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401877c2
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
mov dword [rbp - 0x29], r15d
test rbx, rbx
je 0x140187793
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x1401877a3
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187784
mov r10d, dword [rbp - 0x35]
mov qword [rbp - 0x31], rbx
mov dword [rbp - 0x25], edi
inc r10d
mov r11d, dword [rbp - 0x21]
mov r9d, 0
mov rsi, qword [rbp - 0x19]
mov dword [rbp - 0x35], r10d
lea eax, [r11 - 3]
cmp r10d, eax
jl 0x140186f50
movsxd r12, r11d
movsxd r14, r10d
mov qword [rbp - 9], r12
cmp r14, r12
jge 0x14018791c
nop word [rax + rax]
movzx ecx, byte [rsi + r14]
mov edx, r9d
cmp cl, 0x8f
ja 0x140187895
add ecx, 0x30
mov r8d, 8
nop word [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187820
mov ecx, r15d
mov qword [rbp + 0x17], rbx
shl edx, cl
add r15d, 8
or edi, edx
cmp r15d, 8
jl 0x140187910
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop dword [rax]
test rbx, rbx
je 0x14018786f
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x14018787f
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187860
jmp 0x140187909
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 0x1401878a1
mov ecx, r15d
mov qword [rbp + 0x17], rbx
shl edx, cl
add r15d, 9
or edi, edx
cmp r15d, 8
jl 0x140187910
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
test rbx, rbx
je 0x1401878e5
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x1401878f5
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x1401878d6
mov rsi, qword [rbp - 0x19]
xor r9d, r9d
inc r14
cmp r14, r12
jl 0x140187800
mov ecx, r9d
mov edx, r9d
mov r8d, 7
nop dword [rax + rax]
mov eax, ecx
add edx, edx
and eax, 1
sar ecx, 1
or edx, eax
sub r8d, 1
jne 0x140187930
mov ecx, r15d
mov qword [rbp + 0x17], rbx
shl edx, cl
add r15d, 7
or edi, edx
cmp r15d, 8
jl 0x140187998
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
test rbx, rbx
je 0x140187974
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x140187984
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x140187965
test r15d, r15d
je 0x1401879f8
nop dword [rax]
inc r15d
mov qword [rbp + 0x17], rbx
cmp r15d, 8
jl 0x1401879f3
mov esi, r15d
shr rsi, 3
mov eax, esi
neg eax
lea r15d, [r15 + rax*8]
nop dword [rax]
test rbx, rbx
je 0x1401879cf
mov eax, dword [rbx - 4]
inc eax
cmp eax, dword [rbx - 8]
jl 0x1401879df
mov r8d, r13d
lea rcx, [rbp + 0x17]
call fcn.140186d30
mov rbx, qword [rbp + 0x17]
movsxd rax, dword [rbx - 4]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
shr edi, 8
sub rsi, 1
jne 0x1401879c0
test r15d, r15d
jne 0x1401879a0
mov r14, qword [rbp + 7]
mov esi, 0x4000
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140187a16
add rcx, 0xfffffffffffffff8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add rdi, 8
sub rsi, 1
jne 0x140187a04
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8d, dword [rbp - 0x21]
mov eax, 0x80010003
xor r10d, r10d
lea ecx, [r8 + 0x7ffe]
imul ecx
add edx, ecx
lea ecx, [r8 + 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 0x140187cf8
mov dword [rbx - 4], 2
mov r15d, r10d
test r8d, r8d
jle 0x140187cf8
mov r13, qword [rbp - 0x19]
lea rdi, [rbx - 8]
nop word [rax + rax]
mov ecx, dword [rdi]
mov eax, 0x7fff
mov r14d, r8d
sub r14d, r15d
cmp r14d, eax
mov esi, r14d
cmovg esi, eax
mov eax, dword [rbx - 4]
inc eax
cmp eax, ecx
jl 0x140187aef
lea eax, [rcx + rcx]
mov rcx, rdi
movsxd rdx, eax
lea r12d, [rax + 1]
inc rdx
mov rax, 0xffffffffffffffff
add rdx, 8
cmovb rdx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187ae5
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187aec
lea rbx, [rax + 8]
mov dword [rax], r12d
xor r10d, r10d
movsxd rax, dword [rbx - 4]
cmp r14d, esi
mov r12, 0xffffffffffffffff
sete cl
mov byte [rax + rbx], cl
lea rcx, [rbx - 8]
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187b5d
lea eax, [rdx + rdx]
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r12
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187b57
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187b5d
lea rbx, [rax + 8]
mov dword [rax], edi
movsxd rax, dword [rbx - 4]
lea rcx, [rbx - 8]
mov byte [rax + rbx], sil
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187bc7
lea eax, [rdx + rdx]
mov r14d, 0
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
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
jne 0x140187bbf
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187bca
lea rbx, [rax + 8]
mov dword [rax], edi
jmp 0x140187bca
xor r14d, r14d
movsxd rax, dword [rbx - 4]
mov ecx, esi
sar ecx, 8
mov byte [rax + rbx], cl
lea rcx, [rbx - 8]
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187c30
lea eax, [rdx + rdx]
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
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
jne 0x140187c2a
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187c30
lea rbx, [rax + 8]
mov dword [rax], edi
movsxd rax, dword [rbx - 4]
lea rdi, [rbx - 8]
movzx ecx, sil
mov r14, rdi
not cl
mov byte [rax + rbx], cl
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov ecx, dword [rdi]
inc eax
cmp eax, ecx
jl 0x140187cb1
lea eax, [rcx + rcx]
mov rcx, rdi
movsxd rdx, eax
lea r12d, [rax + 1]
inc rdx
mov rax, 0xffffffffffffffff
add rdx, 8
cmovb rdx, rax
mov eax, 0
test rbx, rbx
cmove rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
jne 0x140187caa
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rdi, r14
jmp 0x140187cb1
lea rbx, [rax + 8]
mov dword [rax], r12d
movsxd rax, dword [rbx - 4]
mov ecx, esi
not ecx
movsxd rdx, r15d
sar ecx, 8
add rdx, r13
movsxd r8, esi
mov byte [rax + rbx], cl
inc dword [rbx - 4]
movsxd rcx, dword [rbx - 4]
add rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
add dword [rbx - 4], esi
add r15d, esi
mov r8d, dword [rbp - 0x21]
mov r10d, 0
cmp r15d, r8d
jl 0x140187a80
mov r12, qword [rbp - 9]
lea r13d, [r10 + 1]
mov edi, r10d
test r12, r12
jle 0x140187d86
mov r11, qword [rbp - 0x19]
mov eax, 0x5e6ea9af
imul r8d
mov r9, r10
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x15b0
sub r8d, eax
movsxd r8, r8d
nop dword [rax]
mov rcx, r10
test r8, r8
jle 0x140187d52
lea rdx, [r11 + r9]
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
add r13d, eax
add edi, r13d
cmp rcx, r8
jl 0x140187d40
mov eax, 0x80078071
add r9, r8
mul r13d
mov r8d, 0x15b0
shr edx, 0xf
imul eax, edx, 0xffff000f
add r13d, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
cmp r9, r12
jl 0x140187d30
mov eax, dword [rbx - 4]
lea rcx, [rbx - 8]
mov edx, dword [rcx]
inc eax
mov r12, qword [rsp + 0x88]
mov r14, 0xffffffffffffffff
cmp eax, edx
jl 0x140187de8
lea eax, [rdx + rdx]
movsxd rdx, eax
lea esi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187ddf
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187de5
lea rbx, [rax + 8]
mov dword [rax], esi
xor r10d, r10d
movsxd rax, dword [rbx - 4]
mov ecx, edi
shr ecx, 8
mov byte [rax + rbx], cl
lea rcx, [rbx - 8]
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187e4e
lea eax, [rdx + rdx]
movsxd rdx, eax
lea esi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r14
test rbx, rbx
cmove rcx, r10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187e48
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187e4e
lea rbx, [rax + 8]
mov dword [rax], esi
movsxd rax, dword [rbx - 4]
lea rcx, [rbx - 8]
mov byte [rax + rbx], dil
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187eb7
lea eax, [rdx + rdx]
mov esi, 0
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r14
test rbx, rbx
cmove rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187eaf
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187eb9
lea rbx, [rax + 8]
mov dword [rax], edi
jmp 0x140187eb9
xor esi, esi
movsxd rax, dword [rbx - 4]
mov ecx, r13d
shr ecx, 8
mov byte [rax + rbx], cl
lea rcx, [rbx - 8]
inc dword [rbx - 4]
mov eax, dword [rbx - 4]
mov edx, dword [rcx]
inc eax
cmp eax, edx
jl 0x140187f20
lea eax, [rdx + rdx]
movsxd rdx, eax
lea edi, [rax + 1]
inc rdx
add rdx, 8
cmovb rdx, r14
test rbx, rbx
cmove rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x140187f1a
mov r8d, 0x352
lea rdx, str.C:DataVisualStudioNipponEditorStbImage_stb_image_write.h
lea rcx, [0x1401e8660]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x140187f20
lea rbx, [rax + 8]
mov dword [rax], edi
movsxd rax, dword [rbx - 4]
mov rdx, rbx
mov byte [rax + rbx], r13b
inc dword [rbx - 4]
movsxd rcx, dword [rbx - 4]
mov rax, qword [rbp + 0xf]
mov r8, rcx
mov dword [rax], ecx
lea rcx, [rbx - 8]
call sub.VCRUNTIME140.dll_memmove
mov r13, qword [rsp + 0x80]
lea rax, [rbx - 8]
mov rdi, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401981a0
add rsp, 0x90
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret