Function at 0x140001bbb
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x318
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2b0], rcx
mov qword [rbp + 0x2b8], rdx
mov qword [rbp + 0x2c0], r8
mov dword [rbp + 0x2c8], r9d
mov dword [rbp + 0x28c], 0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x268], 0
mov dword [rbp + 0x288], 0
mov qword [rbp - 0x28], 0
cmp qword [rbp + 0x2b0], 0
jne 0x140001c48
lea r8, str.directory___NULL
lea rax, str.program_Iterate
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x140002a35
cmp qword [rbp + 0x2b8], 0
jne 0x140001c76
lea r8, str.settings___NULL
lea rax, str.program_Iterate
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_return_if_fail_warning]
call rax
jmp 0x140002a35
mov dword [rbp + 0x28c], 0
mov qword [rbp + 0x270], 0
lea rdx, [rbp - 0x28]
mov rax, qword [rbp + 0x2b0]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_open]
call rax
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x268], rax
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140001d34
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x28]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x1e1
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, [0x1400190e0]
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002a35
mov dword [rbp + 0x25c], 0
mov qword [rbp + 0x250], 0
mov dword [rbp + 0x284], 0
mov dword [rbp + 0x280], 0
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x248], rax
mov rax, qword [rbp + 0x248]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_read_name]
call rax
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0
je 0x14000286a
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x230], rax
mov rax, qword [rbp + 0x230]
mov edx, 0
mov rcx, rax
call sym.string_get
cmp al, 0x2e
sete al
movzx eax, al
mov dword [rbp + 0x25c], eax
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x228], rax
mov rdx, qword [rbp + 0x228]
mov rax, qword [rbp + 0x2b0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x220], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x250], rax
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
je 0x140001e90
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_EncryptHiddenFiles
mov dword [rbp + 0x214], eax
mov eax, dword [rbp + 0x214]
mov dword [rbp + 0x210], eax
cmp dword [rbp + 0x210], 0
sete al
movzx eax, al
and eax, dword [rbp + 0x25c]
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x280], eax
jmp 0x140001e9a
mov dword [rbp + 0x280], 0
cmp dword [rbp + 0x280], 0
je 0x140001fca
mov dword [rbp - 0x2c], 0
mov dword [rbp - 0x30], 0
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_IncludeFiles
mov dword [rbp + 0x204], eax
mov eax, dword [rbp + 0x204]
mov dword [rbp + 0x200], eax
lea rdx, [rbp - 0x2c]
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_FileSet
mov qword [rbp + 0x1f8], rax
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0x1f4], eax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x1e8], rax
mov eax, dword [rbp + 0x1f4]
mov dword [rbp + 0x1e4], eax
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_IncludeExtensions
mov dword [rbp + 0x1e0], eax
mov eax, dword [rbp + 0x1e0]
mov dword [rbp + 0x1dc], eax
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_ExtensionsSet
mov qword [rbp + 0x1d0], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp + 0x1cc], eax
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 0x1c0], rax
mov eax, dword [rbp + 0x1cc]
mov dword [rbp + 0x1bc], eax
mov r9d, dword [rbp + 0x1e4]
mov r8, qword [rbp + 0x1e8]
mov edx, dword [rbp + 0x200]
mov rax, qword [rbp + 0x208]
mov ecx, dword [rbp + 0x1bc]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x1c0]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rbp + 0x1dc]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call sym.program_Filter
mov dword [rbp + 0x284], eax
jmp 0x140001fd4
mov dword [rbp + 0x284], 0
cmp dword [rbp + 0x284], 0
je 0x14000269d
mov rax, qword [0x14001e048]
mov qword [rbp + 0x168], rax
mov rax, qword [0x14001e050]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x158], rax
lea r8, [rbp - 0x28]
mov rcx, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x2b8]
mov rax, qword [rbp + 0x158]
mov r10, qword [rbp + 0x168]
mov r9, r8
mov r8, rcx
mov rcx, rax
call r10
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140002109
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
je 0x1400025ca
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x250], 0
cmp qword [rbp + 0x268], 0
je 0x14000209d
mov rax, qword [rbp + 0x268]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x268], 0
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x28]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x241
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, str.file__s:_line__d:_unexpected_error:__s___s___d_
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002a35
mov qword [rbp + 0x150], 0
mov qword [rbp + 0x148], 0
mov dword [rbp - 0x34], 0
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x140], rax
mov rax, qword [rbp + 0x140]
lea rdx, [0x140019140]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x130], rax
cmp qword [rbp + 0x130], 0
jne 0x140002290
call sym.error_type_quark
lea r8, [0x140019143]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_error_new_literal]
call rax
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x28], rax
cmp qword [rbp + 0x150], 0
je 0x1400021cb
mov rax, qword [rbp + 0x150]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x150], 0
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax]
call sym.error_type_quark
cmp ebx, eax
je 0x1400025cd
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x250], 0
cmp qword [rbp + 0x268], 0
je 0x140002224
mov rax, qword [rbp + 0x268]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x268], 0
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x28]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x26d
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, str.file__s:_line__d:_unexpected_error:__s___s___d_
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002a35
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x128], rax
lea rdx, [rbp - 0x34]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sym.string_get_data
mov qword [rbp + 0x120], rax
mov eax, dword [rbp - 0x34]
mov dword [rbp + 0x11c], eax
mov rax, qword [rbp + 0x120]
mov qword [rbp + 0x110], rax
mov eax, dword [rbp + 0x11c]
mov dword [rbp + 0x10c], eax
cmp qword [rbp + 0x110], 0
je 0x1400022ff
mov eax, dword [rbp + 0x10c]
movsxd rdx, eax
mov rax, qword [rbp + 0x110]
mov rcx, rax
call sym._vala_array_dup1
jmp 0x140002306
mov rax, qword [rbp + 0x110]
mov qword [rbp + 0x100], rax
mov eax, dword [rbp + 0x10c]
mov dword [rbp + 0xfc], eax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x148], rax
mov eax, dword [rbp + 0xfc]
mov dword [rbp + 0xf8], eax
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0xe0], rax
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xdc]
movsxd rdx, eax
mov rcx, qword [rbp + 0xe8]
mov rax, qword [rbp + 0xe0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0xc8], rax
mov eax, dword [rbp + 0xf8]
mov dword [rbp - 0x38], eax
mov rdx, qword [rbp + 0xd0]
lea rax, [rbp - 0x38]
mov r9, rdx
mov r8d, 4
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0xc0], rax
mov rax, qword [0x14001e038]
mov qword [rbp + 0xb8], rax
mov eax, dword [0x14001e040]
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0xb4]
movsxd rdx, eax
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xb8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov rcx, rax
call sym.fflush
mov rax, qword [rbp + 0x148]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x148], 0
cmp qword [rbp + 0x150], 0
je 0x140002488
mov rax, qword [rbp + 0x150]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x150], 0
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0xa0], rax
call sym.program_GenerateIV
mov rdx, rax
lea rax, str._llu
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_strdup_printf]
call rax
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_AppendedExtension
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov rcx, rax
call sym.string_to_string
mov qword [rbp + 0x78], rax
mov rdx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x90]
mov r9d, 0
mov r8, rdx
lea rdx, [0x140019098]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_strconcat]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x2b0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_rename]
call rax
mov rax, qword [rbp + 0x58]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x58], 0
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x90], 0
mov dword [rbp + 0x28c], 1
jmp 0x1400025de
nop
jmp 0x1400025ce
nop
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x140002847
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x250], 0
cmp qword [rbp + 0x268], 0
je 0x140002631
mov rax, qword [rbp + 0x268]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x268], 0
mov rax, qword [rbp - 0x28]
mov ebx, dword [rax + 4]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_quark_to_string]
call rax
mov rdx, qword [rbp - 0x28]
mov rdx, qword [rdx + 8]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x2a5
lea r9, str.C:_msys64_home_poco_main.vala.c
lea r8, [0x1400190e0]
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_log]
call rax
lea rax, [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_clear_error]
call rax
jmp 0x140002a35
mov dword [rbp + 0x27c], 0
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x1b0]
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
je 0x140002715
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_EncryptHiddenDirectories
mov dword [rbp + 0x1ac], eax
mov eax, dword [rbp + 0x1ac]
mov dword [rbp + 0x1a8], eax
cmp dword [rbp + 0x1a8], 0
sete al
movzx eax, al
and eax, dword [rbp + 0x25c]
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x27c], eax
jmp 0x14000271f
mov dword [rbp + 0x27c], 0
cmp dword [rbp + 0x27c], 0
je 0x140002847
mov dword [rbp + 0x278], 0
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_IncludeDirectories
mov dword [rbp + 0x1a4], eax
mov eax, dword [rbp + 0x1a4]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
jne 0x1400027dc
mov dword [rbp - 0x3c], 0
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x198], rax
lea rdx, [rbp - 0x3c]
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_DirectorySet
mov qword [rbp + 0x190], rax
mov eax, dword [rbp - 0x3c]
mov dword [rbp + 0x18c], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x180], rax
mov eax, dword [rbp + 0x18c]
mov dword [rbp + 0x17c], eax
mov eax, dword [rbp + 0x17c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x198]
mov rax, qword [rbp + 0x180]
mov r8, rcx
mov rcx, rax
call sym._vala_string_array_contains
mov dword [rbp + 0x278], eax
jmp 0x1400027e6
mov dword [rbp + 0x278], 0
cmp dword [rbp + 0x278], 0
je 0x14000280f
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x250], 0
jmp 0x140002865
mov rax, qword [rbp + 0x250]
mov qword [rbp + 0x170], rax
mov r8d, dword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x2c0]
mov rdx, qword [rbp + 0x2b8]
mov rax, qword [rbp + 0x170]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call sym.program_Iterate
mov rax, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x250], 0
jmp 0x140001d34
nop
cmp dword [rbp + 0x28c], 0
je 0x1400028f9
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_NoteFilename
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x40], rax
mov rdx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x2b0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov edx, 0x10
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_file_test]
call rax
test eax, eax
sete al
movzx eax, al
mov dword [rbp + 0x288], eax
mov rax, qword [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 0x30], 0
jmp 0x140002903
mov dword [rbp + 0x288], 0
cmp dword [rbp + 0x288], 0
je 0x140002a0c
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
call sym.settings_get_NoteFilename
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x18], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x2b0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_build_filename]
call rax
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
lea rdx, [0x140019157]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_fopen]
call rax
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 8]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_free]
call rax
mov qword [rbp + 8], 0
mov rax, qword [rbp - 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400029f1
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x2c8]
movsxd rdx, eax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x2c0]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fflush
cmp qword [rbp + 0x28], 0
je 0x140002a0c
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.fclose
mov qword [rbp + 0x28], 0
cmp qword [rbp + 0x268], 0
je 0x140002a34
mov rax, qword [rbp + 0x268]
mov rcx, rax
mov rax, qword [sym.imp.libglib_2.0_0.dll_g_dir_close]
call rax
mov qword [rbp + 0x268], 0
nop
add rsp, 0x318
pop rbx
pop rbp
ret