Function at 0x140001a40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov rax, qword [0x140007088]
xor rax, rsp
mov qword [rbp + 0xbc0], rax
xor ebx, ebx
mov qword [rsp + 0x48], rcx
mov r13, rdx
mov dword [rsp + 0x5c], ebx
lea rax, [rbp - 0x40]
mov byte [rsp + 0x40], bl
lea rdi, [rbp + 0xa00]
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x60], rdi
mov ecx, r8d
mov qword [rbp - 0x70], rbx
mov r14d, ebx
mov dword [rsp + 0x50], ebx
mov esi, ebx
mov qword [rsp + 0x68], rbx
mov r15d, ebx
call sub.gif_7.dll_EGifOpenFileHandle
mov qword [rbp - 0x58], rax
mov r12, rax
test rax, rax
jne 0x140001ad5
mov ecx, dword [rbp - 0x68]
call sub.gif_7.dll_PrintGifError
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001ce0
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [rbp + 0x5c0]
lea rbx, [rbp + 0x5c0]
inc r15d
mov dword [rsp + 0x54], r15d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140001b31
movsx ecx, byte [rbx + 1]
inc rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140001b20
movzx eax, byte [rbx]
cmp al, 0x23
je 0x140001cc0
test al, al
je 0x140001cc0
mov edx, 0x23
lea rcx, [rbp + 0x5c0]
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x140001b8e
mov edx, 0x23
mov rcx, rax
call sub.VCRUNTIME140.dll_strrchr
cmp rbx, rax
jne 0x140001b8e
nop
movsx ecx, byte [rbx - 1]
mov rdi, rbx
dec rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140001b70
mov word [rdi], 0xa
mov rdi, qword [rsp + 0x60]
mov r8, r12
lea rdx, str.screen_width__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
je 0x140001cc0
lea r8, [r12 + 4]
lea rdx, str.screen_height__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
je 0x140001cc0
lea r8, [rbp - 0x78]
lea rdx, str.screen_colors__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
jne 0x140001c1c
mov ecx, dword [rbp - 0x78]
call sub.gif_7.dll_GifBitSize
mov edx, dword [rbp - 0x78]
mov ecx, eax
cmp edx, 0x100
ja 0x1400028be
mov eax, 1
shl eax, cl
cmp edx, eax
jne 0x1400028be
mov dword [r12 + 8], ecx
jmp 0x140001cc0
lea r8, [r12 + 0xc]
lea rdx, str.screen_background__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
je 0x140001cc0
lea r8, [rsp + 0x7c]
lea rdx, str.pixel_aspect_byte__u_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
jne 0x140001c66
movzx eax, byte [rsp + 0x7c]
mov byte [r12 + 0x10], al
jmp 0x140001cc0
lea rdx, str.screen_map_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001d2a
cmp qword [r12 + 0x18], 0
jne 0x1400028f8
xor ecx, ecx
lea rbx, [rbp - 0x40]
lea rdi, [rbp + 0xa00]
mov dword [rsp + 0x5c], ecx
mov r14d, ecx
mov byte [rsp + 0x40], cl
lea rcx, [rbp + 0xa00]
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x60], rdi
lea r8d, [rax + 0x5d]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001b00
mov eax, dword [rsp + 0x50]
mov rcx, r12
mov dword [r12 + 0x50], eax
mov rax, qword [rsp + 0x68]
mov qword [r12 + 0x58], rax
mov qword [rsp + 0x68], rbx
call sub.gif_7.dll_EGifSpew
mov rcx, qword [rbp + 0xbc0]
xor rcx, rsp
call fcn.1400036c0
mov rbx, qword [rsp + 0xd28]
add rsp, 0xcd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.image_map_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001d7c
test rsi, rsi
je 0x140002932
xor ecx, ecx
lea rbx, [rbp + 0x2c0]
lea rdi, [rbp + 0xa60]
mov dword [rsp + 0x5c], ecx
mov r14d, ecx
mov qword [rbp - 0x80], rbx
lea rcx, [rbp + 0xa60]
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rax + 0x5d]
jmp 0x140001cbb
mov ebx, r14d
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x70]
lea rdx, str._trgb__d__d__d_is__c
lea rcx, [rbp + 0x5c0]
lea rax, [rbx + rdi]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.1400032c0
cmp eax, 4
je 0x140001de0
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
lea rdx, str._trgb__d__d__d
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 3
jne 0x140001e0f
mov rax, qword [rbp - 0x80]
inc r14d
mov dword [rsp + 0x5c], r14d
lea rcx, [rax + rbx*2]
movzx eax, byte [rsp + 0x70]
mov byte [rcx + rbx], al
movzx eax, byte [rsp + 0x74]
mov byte [rcx + rbx + 1], al
movzx eax, byte [rsp + 0x78]
mov byte [rcx + rbx + 2], al
jmp 0x140001cc0
lea rdx, str._tsort_flag_on_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001e30
mov byte [rsp + 0x40], 1
jmp 0x140001cc0
lea rdx, str._tsort_flag_off_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001e50
mov byte [rsp + 0x40], al
jmp 0x140001cc0
xor ecx, ecx
lea rdx, [rbp + 0x5c0]
lea rbx, str.end_n
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x140001eba
cmp rcx, 5
jne 0x140001e60
mov ecx, r14d
call sub.gif_7.dll_GifBitSize
mov rdx, qword [rbp - 0x80]
mov ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
call sub.gif_7.dll_GifMakeMapObject
test rax, rax
je 0x14000296c
movzx ecx, byte [rsp + 0x40]
xor ebx, ebx
mov byte [rax + 8], cl
test rsi, rsi
je 0x140001eb0
mov qword [rsi + 0x18], rax
jmp 0x140001cc2
mov qword [r12 + 0x18], rax
jmp 0x140001cc2
lea r8, [rbp + 0x9c0]
lea rdx, str.include__63s
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
jne 0x140001ff9
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x9c0]
call sub.gif_7.dll_DGifOpenFileName
mov rdi, rax
test rax, rax
je 0x140002aac
mov rcx, rax
call sub.gif_7.dll_DGifSlurp
test eax, eax
je 0x140002a56
mov r14, qword [r12 + 0x18]
test r14, r14
je 0x140001f41
mov rdx, qword [rdi + 0x18]
lea r8, [rbp + 0xac0]
mov rcx, r14
call sub.gif_7.dll_GifUnionColorMap
mov rbx, rax
test rax, rax
je 0x1400029a6
mov rcx, qword [r12 + 0x18]
call sub.gif_7.dll_GifFreeMapObject
mov qword [r12 + 0x18], rbx
mov rsi, qword [rdi + 0x48]
movsxd rax, dword [rdi + 0x20]
imul rcx, rax, 0x38
add rcx, rsi
cmp rsi, rcx
jae 0x140001fdc
nop dword [rax]
mov rdx, rsi
mov rcx, r12
call sub.gif_7.dll_GifMakeSavedImage
mov rbx, rax
test rax, rax
je 0x1400029fe
test r14, r14
je 0x140001f8b
lea rdx, [rbp + 0xac0]
mov rcx, rax
call sub.gif_7.dll_GifApplyTranslation
mov r9d, dword [rbx]
lea rax, [rbp + 0x9c0]
mov r8d, dword [r12 + 0x20]
lea rdx, str.gifbuild
mov qword [rsp + 0x38], rax
lea rcx, str._s:_Image__d_at___d___d____dx_d_:_from__s_n
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x20], eax
call sub.gif_7.dll_GifQprintf
movsxd rax, dword [rdi + 0x20]
add rsi, 0x38
imul rcx, rax, 0x38
add rcx, qword [rdi + 0x48]
cmp rsi, rcx
jb 0x140001f60
xor edx, edx
mov rcx, rdi
call sub.gif_7.dll_DGifCloseFile
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rbp - 0x70]
mov r14d, dword [rsp + 0x5c]
jmp 0x140001cc0
lea rdx, str.comment_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
lea rcx, [rbp + 0x5c0]
test eax, eax
jne 0x140002114
xor ebx, ebx
mov r8, r13
mov edx, 0x400
mov edi, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000210a
nop word [rax + rax]
mov ebx, edi
lea rdx, [rbp + 0x5c0]
xor ecx, ecx
lea r8, str.end_n
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002070
cmp rcx, 5
jne 0x140002052
mov rdi, qword [rsp + 0x60]
jmp 0x140001cc0
lea rcx, [rbp + 0x5c0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140002080
dec rax
cmp rax, 0x400
jae 0x140002e43
lea rdx, [rbp + 0x5c0]
mov byte [rbp + rax + 0x5c0], 0
lea rcx, [rbp + 0x5c0]
call fcn.140001360
lea rcx, [rbp + 0x5c0]
mov r8d, 0xfe
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x68]
inc edi
lea rcx, [rsp + 0x50]
test ebx, ebx
mov r9d, eax
mov ebx, 0
cmovne r8d, ebx
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
je 0x140002ac0
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140002040
mov rdi, qword [rsp + 0x60]
jmp 0x140001cc2
lea rdx, str.plaintext_n
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
lea rcx, [rbp + 0x5c0]
test eax, eax
jne 0x14000222e
xor ebx, ebx
mov r8, r13
mov edx, 0x400
mov edi, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000210a
nop word [rax + rax]
xor eax, eax
lea rdx, [rbp + 0x5c0]
mov ecx, eax
lea r8, str.end_n
mov ebx, edi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000218e
cmp rcx, 5
jne 0x140002170
mov rdi, qword [rsp + 0x60]
jmp 0x140001cc0
lea rcx, [rbp + 0x5c0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400021a0
dec rax
cmp rax, 0x400
jae 0x140002e43
lea rdx, [rbp + 0x5c0]
mov byte [rbp + rax + 0x5c0], 0
lea rcx, [rbp + 0x5c0]
call fcn.140001360
xor ecx, ecx
lea rdx, [rsp + 0x68]
mov r8d, ecx
inc edi
lea rcx, [rbp + 0x5c0]
test ebx, ebx
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea rcx, [rsp + 0x50]
sete r8b
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
je 0x140002afa
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140002150
mov rdi, qword [rsp + 0x60]
jmp 0x140001cc0
lea rdx, str.graphics_control_n
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
lea rcx, [rbp + 0x5c0]
test eax, eax
jne 0x1400023e4
xor eax, eax
mov r8, r13
mov qword [rbp - 0x48], rax
mov edx, 0x400
mov dword [rbp - 0x44], 0xffffffff
mov qword [rbp - 0x50], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140002370
nop dword [rax]
nop word [rax + rax]
xor eax, eax
lea rdx, [rbp + 0x5c0]
nop dword [rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x1400022a8
cmp rax, 5
jne 0x140002290
jmp 0x140002370
movsx ecx, byte [rbp + 0x5c0]
lea rbx, [rbp + 0x5c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x1400022d1
movsx ecx, byte [rbx + 1]
inc rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x1400022c0
lea r8, [rbp - 0x50]
mov rcx, rbx
lea rdx, str.disposal_mode__d_n
call fcn.1400032c0
test eax, eax
jne 0x14000234b
lea rdx, str.user_input_flag_on_n
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002301
mov byte [rbp - 0x4c], 1
jmp 0x14000234b
lea rdx, str.user_input_flag_off_n
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002319
mov byte [rbp - 0x4c], al
jmp 0x14000234b
lea r8, [rbp - 0x48]
mov rcx, rbx
lea rdx, str.delay__d_n
call fcn.1400032c0
test eax, eax
jne 0x14000234b
lea r8, [rbp - 0x44]
mov rcx, rbx
lea rdx, str.transparent_index__d_n
call fcn.1400032c0
test eax, eax
je 0x140002b34
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea rbx, str.end_n
test rax, rax
jne 0x140002280
lea rdx, [rbp + 0x5c0]
lea rcx, [rbp - 0x50]
call sub.gif_7.dll_EGifGCBToExtension
lea rcx, [rbp + 0x5c0]
mov r9d, eax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov r8d, 0xf9
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
jne 0x140001cc0
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_GCB.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, [rsp + 0x7c]
lea rdx, str.netscape_loop__u
call fcn.1400032c0
test eax, eax
je 0x1400024a9
lea rax, str.NETSCAPE2.0
mov word [rsp + 0x58], 1
mov r9d, 0xb
mov qword [rsp + 0x20], rax
mov r8d, 0xff
mov byte [rsp + 0x5a], 0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
je 0x140002b85
mov eax, dword [rsp + 0x7c]
lea rdx, [rsp + 0x68]
mov byte [rsp + 0x59], al
lea rcx, [rsp + 0x50]
shr eax, 8
mov r9d, 3
mov byte [rsp + 0x5a], al
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
jne 0x140001cc0
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_loop_continuation.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, [rbp - 0x64]
lea rdx, str.extension__x
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
test eax, eax
je 0x1400025bf
xor eax, eax
lea rcx, [rbp + 0x5c0]
mov r8, r13
mov edx, 0x400
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001cc2
nop word [rax + rax]
xor eax, eax
lea rdx, [rbp + 0x5c0]
mov ecx, eax
lea r8, str.end_n
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000251b
cmp rcx, 5
jne 0x140002502
jmp 0x140001cc0
lea rcx, [rbp + 0x5c0]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002530
dec rax
cmp rax, 0x400
jae 0x140002e43
lea rdx, [rbp + 0x5c0]
mov byte [rbp + rax + 0x5c0], 0
lea rcx, [rbp + 0x5c0]
call fcn.140001360
mov r9d, eax
mov eax, ebx
inc ebx
test eax, eax
jne 0x140002574
mov r8d, dword [rbp - 0x64]
jmp 0x140002579
xor eax, eax
mov r8d, eax
lea rax, [rbp + 0x5c0]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call sub.gif_7.dll_GifAddExtensionBlock
test eax, eax
je 0x140002bbf
mov r8, r13
lea rcx, [rbp + 0x5c0]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400024f0
jmp 0x140001cc0
xor ebx, ebx
lea rdx, [rbp + 0x5c0]
mov ecx, ebx
lea r8, str.image_n
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002631
cmp rcx, 7
jne 0x1400025d1
xor edx, edx
mov rcx, r12
call sub.gif_7.dll_GifMakeSavedImage
mov qword [rbp - 0x70], rax
mov rsi, rax
test rax, rax
je 0x140002bf9
mov ecx, dword [rsp + 0x50]
lea rax, [rbp - 0x40]
mov dword [rsi + 0x28], ecx
lea rdi, [rbp + 0xa00]
mov rcx, qword [rsp + 0x68]
mov qword [rsi + 0x30], rcx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x68], rbx
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], rdi
jmp 0x140001cc2
test rsi, rsi
je 0x140002dee
lea r8, [rsi + 4]
lea rdx, str.image_top__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
je 0x140001cc2
mov r8, rsi
lea rdx, str.image_left__d_n
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 1
je 0x140001cc2
lea rdx, str.image_interlaced_n
lea rcx, [rbp + 0x5c0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002699
mov byte [rsi + 0x10], 1
jmp 0x140001cc2
lea r9, [rsi + 0xc]
lea r8, [rsi + 8]
lea rdx, str.image_bits__d_by__d
lea rcx, [rbp + 0x5c0]
call fcn.1400032c0
cmp eax, 2
jne 0x140002d99
lea rdx, [0x1400059b4]
lea rcx, [rbp + 0x5c0]
call sub.VCRUNTIME140.dll_strstr
movsxd rcx, dword [rsi + 8]
test rax, rax
movsxd rax, dword [rsi + 0xc]
setne r14b
imul rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1400070c0], rax
test rax, rax
je 0x140002d5f
mov eax, dword [rsi + 0xc]
lea rdx, str.gifbuild
mov dword [rsp + 0x30], eax
lea rcx, str._s:_Image__d_at___d___d____dx_d_:
mov eax, dword [rsi + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp - 0x70]
mov r9d, dword [rax]
mov rax, qword [rbp - 0x58]
mov r8d, dword [rax + 0x20]
call sub.gif_7.dll_GifQprintf
mov r15d, ebx
mov rax, qword [0x1400070c0]
mov qword [0x1400070c8], rax
cmp dword [rsi + 0xc], ebx
jle 0x140002877
nop word [rax + rax]
cmp dword [rsi + 8], 0
mov edi, ebx
jle 0x14000283c
nop dword [rax]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002d23
cmp eax, 0xa
jne 0x140002784
dec edi
inc dword [rsp + 0x54]
jmp 0x14000282f
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140002797
dec edi
jmp 0x14000282f
test r14b, r14b
je 0x140002802
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov rcx, qword [str.0123456789ABCDEF]
mov edx, eax
call sub.VCRUNTIME140.dll_strchr
mov rbx, rax
test rax, rax
je 0x140002cab
sub bl, byte [0x140007070]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
je 0x140002c6f
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov rcx, qword [str.0123456789ABCDEF]
mov edx, eax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140002c33
sub al, byte [0x140007070]
shl bl, 4
or al, bl
jmp 0x14000281c
mov edx, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140002ce7
sub al, bl
mov rcx, qword [0x1400070c8]
mov byte [rcx], al
inc rcx
mov qword [0x1400070c8], rcx
inc edi
cmp edi, dword [rsi + 8]
jl 0x140002760
xor ebx, ebx
mov rax, qword [sym.imp.gif_7.dll_GifNoisyPrint]
cmp byte [rax], 0
je 0x140002865
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, r15d
lea rdx, str._b_b_b_b__4d
mov rcx, rax
call fcn.140002f60
inc r15d
cmp r15d, dword [rsi + 0xc]
jl 0x140002750
mov rdi, qword [rsp + 0x60]
mov rax, qword [sym.imp.gif_7.dll_GifNoisyPrint]
cmp byte [rax], 0
je 0x14000289c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rsi, qword [rbp - 0x70]
mov rax, qword [0x1400070c0]
mov r15d, dword [rsp + 0x54]
mov r12, qword [rbp - 0x58]
mov r14d, dword [rsp + 0x5c]
mov qword [rsi + 0x20], rax
jmp 0x140001cc2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Invalid_color_resolution_value.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Youve_already_declared_a_global_color_map.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.No_previous_image_declaration.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Out_of_memory_while_allocating_new_color_map.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Inclusion_failed_____global_map_conflict.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, dword [r12 + 0x60]
call sub.gif_7.dll_PrintGifError
xor edx, edx
mov rcx, rdi
call sub.gif_7.dll_DGifCloseFile
xor edx, edx
mov rcx, r12
call sub.gif_7.dll_EGifCloseFile
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Inclusion_failed_____out_of_memory.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, dword [r12 + 0x60]
call sub.gif_7.dll_PrintGifError
xor edx, edx
mov rcx, rdi
call sub.gif_7.dll_DGifCloseFile
xor edx, edx
mov rcx, r12
call sub.gif_7.dll_EGifCloseFile
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Inclusion_read_failed.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, dword [rdi + 0x60]
call sub.gif_7.dll_PrintGifError
xor edx, edx
mov rcx, rdi
call sub.gif_7.dll_DGifCloseFile
xor edx, edx
mov rcx, r12
call sub.gif_7.dll_EGifCloseFile
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, dword [rbp - 0x60]
call sub.gif_7.dll_PrintGifError
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_comment_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_plaintext_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.unrecognized_directive_in_GCB_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_loop_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.out_of_memory_while_adding_extension_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Out_of_memory_while_allocating_image_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x54]
lea rdx, str._s:_d:__s_n
mov r8, qword [rsp + 0x48]
mov rcx, rax
lea rax, str.Invalid_hex_low_byte.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x54]
lea rdx, str._s:_d:__s_n
mov r8, qword [rsp + 0x48]
mov rcx, rax
lea rax, str.input_file_ended_prematurely.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x54]
lea rdx, str._s:_d:__s_n
mov r8, qword [rsp + 0x48]
mov rcx, rax
lea rax, str.Invalid_hex_high_byte.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x54]
lea rdx, str._s:_d:__s_n
mov r8, qword [rsp + 0x48]
mov rcx, rax
lea rax, str.Invalid_ASCII_pixel_key.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x54]
lea rdx, str._s:_d:__s_n
mov r8, qword [rsp + 0x48]
mov rcx, rax
lea rax, str.input_file_ended_prematurely.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Failed_to_allocate_raster_block__aborted.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Syntax_error_in_image_description.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x48]
lea rdx, str._s:_d:__s_n
mov rcx, rax
mov r9d, r15d
lea rax, str.Syntax_error_in_header_block.
mov qword [rsp + 0x20], rax
call fcn.140002f60
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140003498
int3