Function at 0x1400048c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov r12d, dword [0x14007bd14]
mov edi, edx
xor edx, edx
mov dword [rsp + 0x60], r12d
mov r15d, 1
mov dword [rsp + 0x48], edx
mov rbx, rcx
mov dword [rsp + 0x34], r15d
mov rcx, qword [0x14007bc80]
lea eax, [rdi - 1]
mov dword [rsp + 0x38], edx
mov rsi, r9
mov dword [rsp + 0x64], edx
mov r13, r8
mov dword [rsp + 0x58], edx
mov r14d, edx
mov qword [rsp + 0x50], rcx
mov rbp, rcx
mov dword [rsp + 0x74], edx
mov dword [rsp + 0x88], edx
mov dword [rsp + 0x78], edx
mov qword [rsp + 0xa0], rdx
mov dword [rsp + 0x84], 0xffffffff
cmp eax, r15d
jbe 0x1400049bb
mov rcx, rbx
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
jne 0x140004a96
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
je 0x140004990
mov rcx, qword [0x14007bc80]
mov r12d, r15d
jmp 0x1400049be
cmp dword [0x14007b008], r14d
jl 0x1400049b2
cmp r13, qword [section..data]
jne 0x1400049b2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x84], eax
mov rcx, qword [0x14007bc80]
jmp 0x1400049c3
mov r12d, edx
mov dword [rsp + 0x60], r12d
cmp edi, r15d
jne 0x1400049e4
mov r8d, dword [0x14007b0e0]
mov rdx, rcx
mov rcx, rbx
call sub.zlib.dll_gzread
movsxd r12, eax
mov qword [rsp + 0x68], r12
jmp 0x140004a40
cmp edi, 2
jne 0x140004a0f
mov r8d, dword [0x14007b0e0]
mov rdx, rcx
mov rcx, rbx
call sub.LIBBZ2.dll_BZ2_bzread
movsxd r12, eax
mov qword [rsp + 0x68], r12
test eax, eax
jns 0x140004a40
lea eax, [rdi + 1]
jmp 0x140005a4e
test r12d, r12d
je 0x140004a25
mov rdx, qword [0x14007b0e0]
mov r8, rbx
call fcn.1400061e0
jmp 0x140004a38
mov r8, qword [0x14007b0e0]
mov r9, rbx
mov rdx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x68], rax
mov r12, rax
mov rdi, qword [0x14007bc80]
mov ebx, dword [0x14007bc88]
lea r13, [rdi + r12]
mov qword [rsp + 0x40], r13
cmp ebx, 2
je 0x140004aa0
cmp dword [0x14007bc8c], 6
je 0x140004aa0
mov eax, 0x400
mov r8, r12
cmp r12, rax
mov rcx, rdi
cmova r8, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memchr
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
mov dword [rsp + 0x74], ecx
test ecx, ecx
je 0x140004aa3
cmp ebx, r15d
jne 0x140004aa3
mov eax, 1
jmp 0x140005a4e
xor r12d, r12d
cmp rbp, r13
jae 0x140005822
mov rbx, qword [0x14007b010]
mov rsi, rbp
nop word [rax + rax]
mov eax, dword [0x14007b008]
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x80], r12d
test eax, eax
js 0x140004ae1
cmp dword [rsp + 0x58], eax
jge 0x1400057e9
mov rbp, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call fcn.140001e90
movsxd rcx, dword [rsp + 0x30]
mov r12, rax
sub r12, rcx
mov qword [rsp + 0x90], rcx
sub r12, rsi
mov rdx, rax
mov rax, rbp
mov r10, r12
sub rax, rsi
cmp dword [0x14007bd1c], 0
cmovne r10, rax
mov qword [rsp + 0x98], r10
test ecx, ecx
jne 0x140004c1a
mov rcx, qword [0x14007b0e0]
add rcx, rdi
cmp rdx, rcx
jne 0x140004c1a
mov rax, qword [0x14007b018]
cmp rbx, rax
jae 0x1400058d1
lea rdi, [rbx + rbx]
cmp rdi, rax
cmova rdi, rax
lea rbp, [rdi + rdi*2]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140005877
mov rbx, qword [0x14007bc80]
mov rcx, rax
mov r8, qword [0x14007b0e0]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [0x14007b0e0], rbp
mov rax, r14
mov rbp, qword [rsp + 0x50]
sub rax, rbx
add rbp, rax
mov qword [0x14007b010], rdi
mov rcx, rbx
mov qword [rsp + 0x50], rbp
add rsi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rsp + 0x68]
mov r9, qword [0x14007b0e0]
mov eax, dword [rsp + 0x60]
sub r9, r12
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
lea r8, [r14 + r12]
mov qword [0x14007bc80], r14
mov dword [rsp + 0x20], eax
call fcn.140002120
mov rdi, qword [0x14007bc80]
add r12, rax
mov rbx, qword [0x14007b010]
mov qword [rsp + 0x68], r12
lea r13, [rdi + r12]
mov qword [rsp + 0x40], r13
jmp 0x1400057d7
lea rax, [rsp + 0x5c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r10
mov rcx, rsi
call fcn.1400043e0
cmp eax, dword [0x14007bd10]
mov r13d, eax
mov dword [rsp + 0x4c], eax
je 0x140004fa3
xor ecx, ecx
mov dword [rsp + 0x70], ecx
nop
mov eax, dword [0x14007b0ec]
cmp eax, 3
je 0x140004a96
cmp dword [0x14007bd2c], 0
mov dword [rsp + 0x80], 1
jne 0x1400059c7
cmp dword [0x14007bcfc], 0
jne 0x140005629
cmp dword [0x14007bd30], 0
jne 0x140005629
cmp dword [rsp + 0x74], 0
jne 0x140005982
cmp eax, 2
je 0x140005932
cmp dword [0x14007bd3c], 0
je 0x1400050cb
cmp dword [0x14007bd10], 0
jne 0x14000562d
mov r15, qword [rsp + 0x118]
test r15, r15
je 0x140004cf0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x14007b0d8]
lea rdx, str._s_c
mov rcx, rax
mov r8, r15
call fcn.140002190
cmp dword [0x14007bd20], 0
je 0x140004d1d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r13d, dword [rsp + 0x34]
lea rdx, str._lu:
mov rcx, rax
mov r8d, r13d
call fcn.140002190
jmp 0x140004d22
mov r13d, dword [rsp + 0x34]
cmp dword [0x14007bd18], 0
je 0x140004d5e
mov rax, qword [0x14007bcd8]
mov ecx, 1
mov ebx, dword [rax + 8]
mov edi, dword [rax]
sub ebx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str._d__d_r_n
mov rcx, rax
mov r8d, edi
call fcn.140002190
jmp 0x140004e88
cmp dword [0x14007bd08], 0
je 0x140004d9e
mov rax, qword [0x14007bcd8]
mov ecx, 1
mov ebx, dword [rsp + 0x48]
mov edi, dword [rax + 8]
sub edi, dword [rax]
add ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, edi
lea rdx, str._d__d_r_n
mov rcx, rax
mov r8d, ebx
call fcn.140002190
jmp 0x140004e88
mov rcx, qword [0x14007bbc0]
xor edx, edx
test rcx, rcx
je 0x140004dca
movsxd rax, dword [rsp + 0x5c]
mov r8, rsi
mov r9, qword [0x14007bcd8]
mov qword [rsp + 0x20], rax
call fcn.140001bb0
jmp 0x140004e6e
mov rbx, qword [0x14007bbe0]
test rbx, rbx
je 0x140004e60
mov ebp, dword [rsp + 0x5c]
nop
mov eax, dword [rbx + 8]
test eax, eax
je 0x140004deb
cmp eax, ebp
jge 0x140004e54
add eax, eax
movsxd rcx, eax
mov rax, qword [0x14007bcd8]
lea r14, [rcx*8]
mov edi, dword [rax + rcx*8 + 8]
sub edi, dword [r14 + rax]
test edi, edi
jle 0x140004e54
test edx, edx
je 0x140004e3a
cmp qword [0x14007bbb8], 0
je 0x140004e3a
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bbb8]
lea rdx, [0x140056978]
mov rcx, rax
call fcn.140002190
mov rax, qword [0x14007bcd8]
mov edx, edi
mov rcx, qword [r14 + rax]
add rcx, rsi
call fcn.140006090
mov edx, 1
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140004de0
test edx, edx
jne 0x140004e6e
test r15, r15
jne 0x140004e6e
cmp dword [0x14007bd20], r15d
je 0x140004e88
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14005547c]
call fcn.140002190
cmp dword [0x14007bd14], 0
je 0x140004ea5
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rax, qword [0x14007bcd8]
xor r15d, r15d
mov rcx, qword [0x14007bcc0]
mov dword [rsp + 0x4c], r15d
mov rbx, qword [rax + 8]
call fcn.1400128d0
cmp rbx, rax
ja 0x140004efe
cmp rbx, qword [rsp + 0x98]
jae 0x14000501e
cmp dword [0x14007bd38], r15d
lea rbx, [rax + 1]
je 0x140004efe
movzx eax, byte [rbx + rsi]
and al, 0xc0
cmp al, 0x80
jne 0x140004efe
nop
movzx eax, byte [rbx + rsi + 1]
inc rbx
and al, 0xc0
cmp al, 0x80
je 0x140004ef0
mov rbp, qword [rsp + 0x40]
cmp rbx, r12
jbe 0x140004f6d
mov r14, qword [rsp + 0x90]
lea rax, [r14 + r12]
mov rdx, rbp
add rsi, rax
lea r8, [rsp + 0x30]
mov eax, dword [rsp + 0x30]
mov rcx, rsi
add eax, r12d
inc r13d
add dword [rsp + 0x48], eax
cdqe
sub rbx, rax
call fcn.140001e90
movsxd r14, dword [rsp + 0x30]
mov r12, rax
sub r12, r14
mov r15, rbp
sub r15, rsi
sub r12, rsi
mov qword [rsp + 0x98], r15
cmp rbx, r12
ja 0x140004f10
mov r15d, dword [rsp + 0x4c]
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x90], r14
mov rdx, qword [rsp + 0x98]
lea rax, [rsp + 0x5c]
mov r9, rbx
mov qword [rsp + 0x20], rax
mov r8d, 4
mov rcx, rsi
call fcn.1400043e0
cmp eax, dword [0x14007bd10]
mov r13d, eax
mov dword [rsp + 0x4c], eax
jne 0x140004c50
mov edi, dword [rsp + 0x34]
cmp dword [0x14007bd1c], 0
je 0x14000501e
cmp dword [0x14007bd10], 0
je 0x14000501e
test r13d, r13d
je 0x14000501e
mov rax, qword [0x14007bcd8]
mov rbx, qword [rax + 8]
mov rax, rsi
add rbx, rsi
cmp rsi, rbx
jae 0x140005000
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x7c]
mov rdx, rbp
mov rcx, rax
call fcn.140001e90
cmp rax, rbx
ja 0x140004ffc
inc edi
cmp rax, rbx
jb 0x140004fe0
mov dword [rsp + 0x34], edi
lea r8, [rsp + 0x7c]
mov rdx, rbp
mov rcx, rbx
call fcn.140001e90
mov r12, rax
movsxd rax, dword [rsp + 0x7c]
sub r12, rax
sub r12, rsi
mov r14d, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x30]
inc dword [rsp + 0x34]
lea rax, [r12 + rcx]
add rsi, rax
lea eax, [r12 + rcx]
add dword [rsp + 0x48], eax
lea eax, [r14 + 1]
cmp dword [rsp + 0x80], 0
mov r12, qword [rsp + 0x68]
cmove eax, r14d
cmp dword [rsp + 0x60], 0
mov dword [rsp + 0x58], eax
mov ebp, eax
je 0x14000568e
mov rdi, qword [0x14007b0e0]
cmp r12, rdi
jae 0x14000568e
mov r14, qword [rsp + 0xa0]
sub rdi, rsi
add rdi, qword [0x14007bc80]
mov rcx, r14
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
je 0x1400050b1
mov byte [rbx + rsi], al
inc rbx
cmp eax, 0xa
je 0x1400050b1
cmp rbx, rdi
jae 0x1400050b1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
jne 0x140005093
mov r13, qword [rsp + 0x40]
add r12, rbx
add r13, rbx
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x40], r13
jmp 0x140005693
cmp dword [0x14007bbc8], 0
mov dword [rsp + 0x78], 1
jle 0x1400051f6
mov r14d, dword [rsp + 0x38]
test r14d, r14d
je 0x1400051f6
mov rbp, qword [rsp + 0x50]
xor ebx, ebx
mov rdi, rbp
cmp rbp, rsi
jae 0x1400051e8
cmp ebx, dword [0x14007bbc8]
jge 0x140005126
lea r8, [rsp + 0x90]
mov rdx, rsi
mov rcx, rdi
call fcn.140001e90
inc ebx
mov rdi, rax
cmp rax, rsi
jb 0x140005101
cmp rbp, rdi
jae 0x1400051e5
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x118]
nop dword [rax]
test r13, r13
je 0x140005169
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x14007b0dc]
lea rdx, str._s_c
mov rcx, rax
mov r8, r13
call fcn.140002190
cmp dword [0x14007bd20], 0
je 0x140005192
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, r14d
lea rdx, str._lu_
mov rcx, rax
call fcn.140002190
inc r14d
lea r8, [rsp + 0x90]
mov rdx, r15
mov rcx, rbp
call fcn.140001e90
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
mov edx, 1
sub r8, rbp
mov r9, rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, rbx
cmp rbx, rdi
jb 0x140005140
mov r13d, dword [rsp + 0x4c]
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x50], rbx
cmp rbp, rsi
je 0x1400051f6
mov dword [0x14007bd0c], 1
jmp 0x1400051ff
cmp dword [0x14007bd0c], 0
je 0x14000522e
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.___r_n
call fcn.140002190
mov ecx, 1
mov dword [0x14007bd0c], 0
mov dword [rsp + 0x70], ecx
jmp 0x140005232
mov ecx, dword [rsp + 0x70]
mov ebx, dword [0x14007bbcc]
test ebx, ebx
jle 0x14000537e
mov r14, qword [0x14007bc80]
xor ebp, ebp
mov r15, qword [rsp + 0x50]
mov rdi, rsi
cmp rsi, r14
jbe 0x14000528c
mov r13d, dword [rsp + 0x38]
nop dword [rax + rax]
test r13d, r13d
je 0x14000526a
cmp rdi, r15
jbe 0x140005283
cmp ebp, ebx
jge 0x140005283
mov rdx, r14
mov rcx, rdi
inc ebp
call fcn.140005e50
mov rdi, rax
cmp rax, r14
ja 0x140005260
mov r13d, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x70]
cmp dword [rsp + 0x38], 0
jbe 0x1400052bc
cmp rdi, r15
jbe 0x1400052bc
test ecx, ecx
jne 0x1400052bc
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.___r_n
call fcn.140002190
mov ebx, dword [0x14007bbcc]
mov r14, qword [rsp + 0x40]
cmp rdi, rsi
jae 0x140005383
mov r15d, dword [rsp + 0x34]
mov r13, qword [rsp + 0x118]
test r13, r13
je 0x140005300
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x14007b0dc]
lea rdx, str._s_c
mov rcx, rax
mov r8, r13
call fcn.140002190
cmp dword [0x14007bd20], 0
je 0x14000532d
mov ebx, r15d
mov ecx, 1
sub ebx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str._lu_
mov rcx, rax
call fcn.140002190
dec ebp
lea r8, [rsp + 0x90]
mov rdx, r14
mov rcx, rdi
call fcn.140001e90
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
mov edx, 1
sub r8, rdi
mov r9, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdi, rbx
cmp rbx, rsi
jb 0x1400052d7
mov r13d, dword [rsp + 0x4c]
mov ebx, dword [0x14007bbcc]
jmp 0x140005383
mov r14, qword [rsp + 0x40]
cmp dword [0x14007bbc8], 0
jg 0x140005390
test ebx, ebx
jle 0x14000539b
mov dword [rsp + 0x88], 1
mov rbx, qword [rsp + 0x118]
test rbx, rbx
je 0x1400053cc
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x14007b0d8]
lea rdx, str._s_c
mov rcx, rax
mov r8, rbx
call fcn.140002190
cmp dword [0x14007bd20], 0
je 0x1400053f9
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r15d, dword [rsp + 0x34]
lea rdx, str._lu:
mov rcx, rax
mov r8d, r15d
call fcn.140002190
jmp 0x1400053fe
mov r15d, dword [rsp + 0x34]
cmp dword [0x14007bd1c], 0
jne 0x140005414
cmp dword [0x14007bd00], 0
je 0x140005602
cmp dword [0x14007bd10], 0
jne 0x140005602
mov rax, qword [0x14007bcd8]
mov rcx, qword [rax + 8]
mov rdx, qword [rax]
cmp rdx, rcx
jbe 0x14000543b
mov qword [rax], rcx
mov qword [rax + 8], rdx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007bcd8]
mov edx, 1
mov r9, rax
mov rcx, rsi
mov r8, qword [r8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [0x14007bcd8]
mov edx, dword [rax + 8]
mov rcx, qword [rax]
sub edx, dword [rax]
add rcx, rsi
call fcn.140006090
movsxd rbp, dword [rsp + 0x30]
mov r13, qword [rsp + 0x98]
add rbp, r12
nop dword [rax + rax]
mov rcx, qword [0x14007bcc0]
call fcn.1400128d0
mov rcx, rax
mov rax, qword [0x14007bcd8]
mov rdi, qword [rax + 8]
mov rbx, rdi
cmp rdi, rcx
ja 0x1400054de
cmp dword [0x14007bd38], 0
lea rbx, [rcx + 1]
je 0x1400054de
movzx eax, byte [rbx + rsi]
and al, 0xc0
cmp al, 0x80
jne 0x1400054de
nop dword [rax]
movzx eax, byte [rbx + rsi + 1]
inc rbx
and al, 0xc0
cmp al, 0x80
je 0x1400054d0
cmp rbx, rbp
jbe 0x14000553b
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
add eax, r12d
add rsi, rbp
add dword [rsp + 0x48], eax
mov rdx, r14
cdqe
mov rcx, rsi
sub rbx, rax
sub rdi, rax
inc r15d
call fcn.140001e90
mov r12, rax
mov r13, r14
movsxd rax, dword [rsp + 0x30]
sub r13, rsi
sub r12, rax
sub r12, rsi
lea rbp, [rax + r12]
cmp rbx, rbp
ja 0x1400054f0
mov dword [rsp + 0x34], r15d
movsxd rbp, dword [rsp + 0x30]
add rbp, r12
cmp rbx, rbp
je 0x1400055ce
lea rax, [rsp + 0x5c]
mov r9, rbx
mov r8d, 4
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, rsi
call fcn.1400043e0
test eax, eax
je 0x1400055ce
mov rax, qword [0x14007bcd8]
mov rcx, qword [rax + 8]
mov rdx, qword [rax]
cmp rdx, rcx
jbe 0x140005588
mov qword [rax], rcx
mov qword [rax + 8], rdx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, [rdi + rsi]
mov edx, 1
mov r9, rax
mov rax, qword [0x14007bcd8]
mov r8, qword [rax]
sub r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [0x14007bcd8]
mov edx, dword [rax + 8]
mov rcx, qword [rax]
sub edx, dword [rax]
add rcx, rsi
call fcn.140006090
jmp 0x140005490
mov r13d, dword [rsp + 0x4c]
mov ebx, r12d
sub ebx, edi
add ebx, dword [rsp + 0x30]
test ebx, ebx
jle 0x140005632
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movsxd r8, ebx
lea rcx, [rdi + rsi]
mov r9, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140005632
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movsxd rbx, dword [rsp + 0x30]
mov edx, 1
mov r9, rax
mov rcx, rsi
lea r8, [r12 + rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140005636
inc dword [rsp + 0x64]
mov r14, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
cmp dword [0x14007bd14], 0
je 0x140005653
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov edi, dword [rsp + 0x34]
xor r15d, r15d
movsxd rbp, ebx
add rbp, r12
add rbp, rsi
lea eax, [rdi + 1]
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x78], r15d
je 0x140005684
cmp rbp, r14
jb 0x140005684
test ebx, ebx
jne 0x140005684
call fcn.140006790
mov rbp, qword [rsp + 0x40]
jmp 0x140004fa7
mov r13, qword [rsp + 0x40]
cmp r12, qword [0x14007b0e0]
mov rdi, qword [0x14007bc80]
mov rbx, qword [0x14007b010]
jb 0x1400057d2
lea rax, [rdi + rbx*2]
mov dword [rsp + 0x58], ebp
cmp rsi, rax
jbe 0x1400057d2
cmp dword [0x14007bbc8], 0
mov r12d, dword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
jle 0x14000570c
test r12d, r12d
je 0x14000570c
lea rax, [rbx + rdi]
cmp r14, rax
jae 0x14000570c
mov r9, qword [rsp + 0x118]
mov r8, r13
mov rdx, r14
mov ecx, r12d
call fcn.140001d40
mov rdi, qword [0x14007bc80]
xor r12d, r12d
mov rbx, qword [0x14007b010]
mov dword [rsp + 0x38], r12d
lea r8, [rbx + rbx]
mov rcx, rdi
lea rdx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [0x14007b010]
mov edx, dword [rsp + 0x108]
sub rsi, rax
lea rcx, [rdi + rax*2]
cmp edx, 1
jne 0x14000574d
mov rdx, rcx
mov r8d, eax
mov rcx, qword [rsp + 0x100]
call sub.zlib.dll_gzread
cdqe
jmp 0x140005798
cmp edx, 2
jne 0x140005769
mov rdx, rcx
mov r8d, eax
mov rcx, qword [rsp + 0x100]
call sub.LIBBZ2.dll_BZ2_bzread
cdqe
jmp 0x140005798
cmp dword [rsp + 0x60], 0
je 0x140005782
mov r8, qword [rsp + 0x100]
mov rdx, rax
call fcn.1400061e0
jmp 0x140005798
mov r9, qword [rsp + 0x100]
mov r8, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, qword [0x14007b010]
mov rdi, qword [0x14007bc80]
mov dword [rsp + 0x58], ebp
lea rcx, [rax + rbx*2]
mov qword [rsp + 0x68], rcx
lea r13, [rdi + rcx]
mov qword [rsp + 0x40], r13
test r12d, r12d
je 0x1400057d2
sub r14, rbx
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x50], r14
mov rbp, r14
jmp 0x1400057d7
mov rbp, qword [rsp + 0x50]
mov r14d, dword [rsp + 0x38]
cmp rsi, r13
jae 0x14000581a
xor r12d, r12d
jmp 0x140004ac0
mov ecx, dword [rsp + 0x84]
test ecx, ecx
js 0x140005811
mov edx, dword [rsp + 0x48]
xor r8d, r8d
add edx, ecx
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [0x14007b008]
test eax, eax
mov r15d, r12d
sete r15b
mov rsi, qword [rsp + 0x118]
cmp dword [0x14007bd3c], 0
jne 0x140005857
mov eax, dword [0x14007bd30]
or eax, dword [0x14007bcfc]
jne 0x140005857
mov r9, rsi
mov r8, r13
mov rdx, rbp
mov ecx, r14d
call fcn.140001d40
mov eax, dword [rsp + 0x88]
or dword [0x14007bd0c], eax
cmp dword [0x14007b0ec], 3
jne 0x1400059ce
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
jmp 0x140005945
mov rcx, qword [rsp + 0x110]
lea rax, [0x1400554be]
test rcx, rcx
lea rsi, str._of_file
mov rbx, rcx
mov ecx, 2
cmove rbx, rax
cmove rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x34]
lea rdx, str.pcre2grep:_line__lu_s_s_is_too_long_for_the_internal_buffer_npcre2grep:_not_enough_memory_to_increase_the_buffer_size_to__zu_n
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov r9, rsi
mov qword [rsp + 0x20], rbx
call fcn.140002190
mov eax, 2
jmp 0x140005a4e
mov rcx, qword [rsp + 0x110]
lea rax, [0x1400554be]
test rcx, rcx
lea rsi, str._of_file
mov rbx, rcx
mov ecx, 2
cmove rbx, rax
cmove rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rsp + 0x34]
lea rdx, str.pcre2grep:_line__lu_s_s_is_too_long_for_the_internal_buffer_npcre2grep:_the_maximum_buffer_size_is__zu_npcre2grep:_use_the___max_buffer_size_option_to_change_it_n
mov rcx, rax
mov r9, rsi
mov rax, qword [0x14007b010]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140002190
mov eax, 2
jmp 0x140005a4e
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x118]
mov rcx, rax
lea rdx, [0x140056978]
call fcn.140002190
cmp qword [0x14007b0d0], 0
mov ecx, 1
jne 0x1400059ab
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
lea rdx, [0x1400563a4]
mov rcx, rax
call fcn.140002190
xor eax, eax
jmp 0x140005a4e
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x110]
lea rdx, str.Binary_file__s_matches_r_n
mov rcx, rax
call fcn.140002190
xor eax, eax
jmp 0x140005a4e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14007b0d0]
lea rdx, [0x140056978]
mov rcx, rax
call fcn.140002190
xor eax, eax
jmp 0x140005a4e
cmp dword [0x14007bcfc], 0
mov ebx, dword [rsp + 0x64]
je 0x140005a45
cmp dword [0x14007bd2c], 0
jne 0x140005a45
test ebx, ebx
jne 0x1400059f0
cmp dword [0x14007bd24], ebx
jne 0x140005a45
test rsi, rsi
je 0x140005a22
cmp dword [0x14007b0ec], 0
je 0x140005a22
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x14007b0d8]
lea rdx, str._s_c
mov rcx, rax
mov r8, rsi
call fcn.140002190
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str._lu_r_n
mov rcx, rax
call fcn.140002190
inc dword [0x14007bc90]
add dword [0x14007bc94], ebx
mov eax, r15d
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret