Function at 0x140004350
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b70]
mov eax, 0x1c70
call fcn.140007d10
sub rsp, rax
mov rax, qword [0x14000f338]
xor rax, rsp
mov qword [rbp + 0x1b60], rax
xor r13d, r13d
mov rbx, rdx
mov edi, r13d
mov r14, rcx
cmp dword [0x14000f434], edi
je 0x1400043aa
cmp dword [0x14000f3f8], edi
jne 0x1400043aa
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov qword [rsp + 0x1cc0], rsi
mov r12d, 1
lea r15d, [r12 + 3]
test r14, r14
jne 0x140004417
cmp dword [0x14000f438], edi
je 0x1400048df
lea rcx, [0x14000a0ac]
call qword [sym.imp.libxml2.dll_xmlNewDoc]
xor r9d, r9d
lea r8, str.info
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.libxml2.dll_xmlNewDocNode]
mov rcx, rax
lea rdx, [0x14000a0b8]
mov rbx, rax
call qword [sym.imp.libxml2.dll_xmlNodeSetContent]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlDocSetRootElement]
jmp 0x1400048da
cmp dword [0x14000f400], edi
je 0x14000458d
cmp dword [0x14000f410], edi
je 0x140004576
cmp byte [r14], 0x2d
jne 0x140004445
cmp byte [r14 + 1], dil
jne 0x140004445
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140004455
lea rdx, [0x14000a0bc]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x1400048df
mov r9, rax
lea rcx, [rbp + 0xb60]
mov r8, r15
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x140004557
mov dword [rsp + 0x28], r13d
lea r8, [rbp + 0xb60]
mov r9d, eax
mov qword [rsp + 0x20], r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.libxml2.dll_htmlCreatePushParserCtxt]
mov rsi, rax
test rax, rax
jne 0x1400044ce
xor ecx, ecx
mov dword [0x14000f42c], 9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140005809
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140005809
mov edx, dword [0x14000f314]
mov rcx, rsi
call qword [sym.imp.libxml2.dll_htmlCtxtUseOptions]
movsxd r8, dword [0x14000f310]
lea rcx, [rbp + 0xb60]
mov r9, rbx
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x140004534
nop dword [rax + rax]
xor r9d, r9d
lea rdx, [rbp + 0xb60]
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.libxml2.dll_htmlParseChunk]
movsxd r8, dword [0x14000f310]
lea rcx, [rbp + 0xb60]
mov r9, rbx
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140004500
mov r9d, r12d
lea rdx, [rbp + 0xb60]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.libxml2.dll_htmlParseChunk]
mov rdi, qword [rsi + 0x10]
mov rcx, rsi
call qword [sym.imp.libxml2.dll_htmlFreeParserCtxt]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400048da
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400048da
mov r8d, dword [0x14000f314]
xor edx, edx
mov rcx, r14
call qword [sym.imp.libxml2.dll_htmlReadFile]
jmp 0x1400048d7
cmp dword [0x14000f410], edi
je 0x1400046f2
cmp byte [r14], 0x2d
jne 0x1400045af
cmp byte [r14 + 1], dil
jne 0x1400045af
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1400045bf
lea rdx, [0x14000a0bc]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x1400048df
mov r9, rax
lea rcx, [rbp + 0x760]
mov r8, r15
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x1400046d3
mov r9d, eax
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.libxml2.dll_xmlCreatePushParserCtxt]
mov r15, rax
test rax, rax
jne 0x140004633
xor ecx, ecx
mov dword [0x14000f42c], 9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rsi, rax
je 0x140005809
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140005809
mov edx, dword [0x14000f314]
mov rcx, r15
call qword [sym.imp.libxml2.dll_xmlCtxtUseOptions]
mov r9, rsi
lea rcx, [rbp + 0x760]
mov r8d, 0x400
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jle 0x140004693
nop
xor r9d, r9d
lea rdx, [rbp + 0x760]
mov r8d, eax
mov rcx, r15
call qword [sym.imp.libxml2.dll_xmlParseChunk]
mov r9, rsi
lea rcx, [rbp + 0x760]
mov r8d, 0x400
mov rdx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test eax, eax
jg 0x140004660
mov r9d, r12d
lea rdx, [rbp + 0x760]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.libxml2.dll_xmlParseChunk]
mov rdi, qword [r15 + 0x10]
mov rcx, r15
mov ebx, dword [r15 + 0x18]
call qword [sym.imp.libxml2.dll_xmlFreeParserCtxt]
test ebx, ebx
jne 0x1400046d3
cmp dword [0x14000f384], r13d
jne 0x1400046d3
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlFreeDoc]
mov rdi, r13
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rsi, rax
je 0x1400048da
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400048da
cmp dword [0x14000f414], edi
je 0x1400047a5
cmp byte [r14], 0x2d
jne 0x140004723
cmp byte [r14 + 1], dil
jne 0x140004723
mov r9d, dword [0x14000f314]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.libxml2.dll_xmlReadFd]
jmp 0x1400048d7
lea rdx, [0x14000a0bc]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdx, rax
test rax, rax
je 0x1400048df
test rbx, rbx
jne 0x140004772
mov ecx, dword [0x14000f314]
lea rdx, [0x1400041a0]
mov dword [rsp + 0x28], ecx
mov r9, r14
lea rcx, [0x140004250]
mov qword [rsp + 0x20], r13
mov r8, rax
call qword [sym.imp.libxml2.dll_xmlReadIO]
jmp 0x1400048d7
mov eax, dword [0x14000f314]
lea r8, [0x1400041a0]
mov dword [rsp + 0x30], eax
mov r9, rdx
mov qword [rsp + 0x28], r13
lea rdx, [0x140004250]
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.libxml2.dll_xmlCtxtReadIO]
jmp 0x1400048d7
cmp dword [0x14000f408], edi
je 0x14000482b
test rbx, rbx
jne 0x1400047cf
call qword [sym.imp.libxml2.dll_xmlNewParserCtxt]
mov rsi, rax
test rax, rax
jne 0x1400047d2
mov dword [0x14000f42c], 9
jmp 0x140005809
mov rsi, rbx
mov rax, qword [rsi]
lea rcx, [0x1400070a0]
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, r14
mov qword [rax + 0xb0], rcx
lea rcx, [0x1400075c0]
mov rax, qword [rsi]
mov qword [rax + 0xa8], rcx
lea rax, [0x140007410]
mov qword [rsi + 0xa0], rax
mov rcx, rsi
lea rax, [0x1400074f0]
mov qword [rsi + 0xa8], rax
call qword [sym.imp.libxml2.dll_xmlCtxtReadFile]
mov rdi, rax
jmp 0x140004888
cmp dword [0x14000f3b0], edi
je 0x140004898
test rbx, rbx
jne 0x140004855
call qword [sym.imp.libxml2.dll_xmlNewParserCtxt]
mov rsi, rax
test rax, rax
jne 0x140004858
mov dword [0x14000f42c], 9
jmp 0x140005809
mov rsi, rbx
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlCtxtReadFile]
cmp dword [rsi + 0x90], r13d
mov rdi, rax
mov eax, dword [0x14000f42c]
cmove eax, r15d
mov dword [0x14000f42c], eax
test rbx, rbx
jne 0x1400048da
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlFreeParserCtxt]
jmp 0x1400048da
test rbx, rbx
je 0x1400048b5
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.libxml2.dll_xmlCtxtReadFile]
jmp 0x1400048d7
cmp dword [0x14000f47c], edi
mov rcx, r14
je 0x1400048c8
call qword [sym.imp.libxml2.dll_xmlParseFile]
jmp 0x1400048d7
mov r8d, dword [0x14000f314]
xor edx, edx
call qword [sym.imp.libxml2.dll_xmlReadFile]
mov rdi, rax
test rdi, rdi
jne 0x1400048eb
mov dword [0x14000f42c], r12d
jmp 0x140005809
cmp dword [0x14000f434], r13d
je 0x140004909
cmp dword [0x14000f3f8], r13d
jne 0x140004909
lea rcx, str.Parsing
call fcn.140002200
cmp dword [0x14000f43c], r13d
je 0x140004939
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlGetIntSubset]
mov rbx, rax
test rax, rax
je 0x140004939
mov rcx, rax
call qword [sym.imp.libxml2.dll_xmlUnlinkNode]
mov rcx, rbx
mov qword [rdi + 0x50], r13
call qword [sym.imp.libxml2.dll_xmlFreeDtd]
cmp dword [0x14000f420], r13d
je 0x14000499f
cmp dword [0x14000f434], r13d
je 0x140004960
cmp dword [0x14000f3f8], r13d
jne 0x140004960
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov edx, dword [0x14000f314]
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlXIncludeProcessFlags]
mov ecx, dword [0x14000f42c]
test eax, eax
cmovs ecx, r12d
cmp dword [0x14000f434], r13d
mov dword [0x14000f42c], ecx
je 0x14000499f
cmp dword [0x14000f3f8], r13d
jne 0x14000499f
lea rcx, str.Xinclude_processing
call fcn.140002200
mov rsi, qword [0x14000f480]
test rsi, rsi
je 0x140004a3a
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlXPathNewContext]
mov rbx, rax
test rax, rax
jne 0x1400049e4
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Out_of_memory_for_XPath_n
call fcn.140002290
mov dword [0x14000f42c], 9
jmp 0x140004a3a
mov rdx, rbx
mov qword [rax + 8], rdi
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlXPathEval]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.libxml2.dll_xmlXPathFreeContext]
test rsi, rsi
jne 0x140004a29
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.XPath_evaluation_failure_n
call fcn.140002290
mov dword [0x14000f42c], 0xa
jmp 0x140004a3a
mov rcx, rsi
call fcn.140001fb0
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlXPathFreeObject]
cmp dword [0x14000f370], r13d
je 0x140004a6b
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlXPathOrderDocElems]
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x140007690]
mov rdx, r14
mov r9, rax
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlShell]
cmp dword [0x14000f380], r13d
je 0x140004ae3
cmp dword [0x14000f434], r13d
mov rbx, rdi
je 0x140004a8c
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlCopyDoc]
cmp dword [0x14000f434], r13d
mov rdi, rax
je 0x140004ac5
lea rcx, str.Copying
call fcn.140002200
cmp dword [0x14000f434], r13d
je 0x140004ac5
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov rcx, rbx
call qword [sym.imp.libxml2.dll_xmlFreeDoc]
cmp dword [0x14000f434], r13d
je 0x140004ae3
lea rcx, str.Freeing_original
call fcn.140002200
cmp dword [0x14000f3fc], r13d
je 0x140004bc9
cmp dword [0x14000f400], r13d
jne 0x140004bc9
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140004bda
nop word [rax + rax]
mov rcx, qword [rax + 0x20]
test rcx, rcx
jne 0x140004b27
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x140004b10
jmp 0x140004bda
mov r9d, 0x100
lea r8, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.libxml2.dll_xmlValidGetValidElements]
movsxd rbx, eax
mov ecx, 2
test eax, eax
jns 0x140004b5d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.could_not_get_valid_list_of_elements_n
call fcn.140002290
jmp 0x140004bda
jne 0x140004b76
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.No_element_can_be_inserted_under_root_n
call fcn.140002290
jmp 0x140004bda
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str._d_element_types_can_be_inserted_under_root:_n
mov rcx, rax
call fcn.140002290
mov rsi, rbx
test ebx, ebx
jle 0x140004bda
mov rbx, r13
nop dword [rax + rax]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + rbx*8 + 0x60]
lea rdx, [0x14000a044]
mov rcx, rax
call fcn.140002290
inc rbx
cmp rbx, rsi
jl 0x140004ba0
jmp 0x140004bda
cmp dword [0x14000f458], r13d
je 0x140004bda
mov rcx, rdi
call fcn.140006db0
cmp dword [0x14000f394], r13d
jne 0x1400051e5
cmp dword [0x14000f378], r13d
jne 0x14000516d
cmp dword [0x14000f434], r13d
je 0x140004c12
cmp dword [0x14000f3f8], r13d
jne 0x140004c12
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
cmp dword [0x14000f400], r13d
mov ecx, dword [0x14000f404]
je 0x140004d94
test ecx, ecx
jne 0x140004d94
cmp dword [0x14000f3a8], r13d
je 0x140004c59
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov rdx, rdi
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_htmlSaveFile]
jmp 0x140004d69
mov r8, qword [0x14000f418]
test r8, r8
je 0x140004ca9
cmp dword [0x14000f39c], r12d
lea rcx, [0x14000a178]
mov rax, qword [0x14000f3a0]
mov rdx, rdi
jne 0x140004c94
test rax, rax
mov r9d, r12d
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_htmlSaveFileFormat]
jmp 0x140004d69
test rax, rax
cmovne rcx, rax
xor r9d, r9d
call qword [sym.imp.libxml2.dll_htmlSaveFileFormat]
jmp 0x140004d69
cmp dword [0x14000f39c], r12d
jne 0x140004cdb
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov r9d, r12d
mov rdx, rdi
cmovne rcx, rax
xor r8d, r8d
call qword [sym.imp.libxml2.dll_htmlSaveFileFormat]
jmp 0x140004d69
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140004cf2
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140004cff
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140004d3d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.libxml2.dll_htmlDocDump]
mov ecx, dword [0x14000f42c]
mov edx, 6
test eax, eax
cmovs ecx, edx
cmp qword [0x14000f3a0], r13
mov dword [0x14000f42c], ecx
je 0x140004d69
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004d69
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14000f3a0]
lea rdx, str.failed_to_open__s_n
mov rcx, rax
call fcn.140002290
mov edx, 6
mov dword [0x14000f42c], edx
cmp dword [0x14000f434], r13d
je 0x1400051e5
cmp dword [0x14000f3f8], r13d
jne 0x140004e2c
lea rcx, str.Saving
call fcn.140002200
jmp 0x140004e2c
cmp dword [0x14000f448], r13d
je 0x140004e57
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlC14NDocDumpMemory]
test eax, eax
js 0x140004e07
mov rdx, qword [rsp + 0x40]
mov r8d, eax
mov ecx, r12d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
cmp eax, 0xffffffff
jne 0x140004df7
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cant_write_data_n
call fcn.140002290
mov rax, qword [sym.imp.libxml2.dll_xmlFree]
mov rcx, qword [rsp + 0x40]
call qword [rax]
jmp 0x140004e2c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_canonicalize_n
call fcn.140002290
mov edx, 6
mov dword [0x14000f42c], edx
cmp dword [0x14000f434], r13d
je 0x1400051e5
cmp dword [0x14000f3f8], r13d
jne 0x1400051e5
lea rcx, str.Saving
call fcn.140002200
jmp 0x1400051e5
cmp dword [0x14000f44c], r13d
je 0x140004ece
xor r9d, r9d
mov qword [rsp + 0x48], r13
lea rax, [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 2]
call qword [sym.imp.libxml2.dll_xmlC14NDocDumpMemory]
test eax, eax
js 0x140004e07
mov rdx, qword [rsp + 0x48]
mov r8d, eax
mov ecx, r12d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
cmp eax, 0xffffffff
jne 0x140004ebb
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cant_write_data_n
call fcn.140002290
mov rax, qword [sym.imp.libxml2.dll_xmlFree]
mov rcx, qword [rsp + 0x48]
call qword [rax]
jmp 0x140004e2c
cmp dword [0x14000f450], r13d
je 0x140004f44
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, r12d
mov dword [rsp + 0x20], r12d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlC14NDocDumpMemory]
test eax, eax
js 0x140004e07
mov rdx, qword [rsp + 0x50]
mov r8d, eax
mov ecx, r12d
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
cmp eax, 0xffffffff
jne 0x140004f31
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cant_write_data_n
call fcn.140002290
mov rax, qword [sym.imp.libxml2.dll_xmlFree]
mov rcx, qword [rsp + 0x50]
call qword [rax]
jmp 0x140004e2c
cmp dword [0x14000f3a8], r13d
je 0x140004f70
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov rdx, rdi
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_xmlSaveFile]
jmp 0x140004e2c
cmp dword [0x14000f3ac], r13d
je 0x1400050bb
mov r8, qword [0x14000f418]
test r8, r8
je 0x140004ffd
cmp dword [0x14000f39c], r12d
lea rbx, [0x14000a178]
mov rax, qword [0x14000f3a0]
mov rcx, rbx
mov rdx, rdi
jne 0x140004fb8
test rax, rax
mov r9d, r12d
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_xmlSaveFormatFileEnc]
jmp 0x140004fc5
test rax, rax
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_xmlSaveFileEnc]
test eax, eax
jns 0x140004e2c
mov rax, qword [0x14000f3a0]
mov ecx, 2
test rax, rax
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.failed_save_to__s_n
mov rcx, rax
call fcn.140002290
jmp 0x140004e21
cmp dword [0x14000f39c], r12d
jne 0x14000502c
mov rax, qword [0x14000f3a0]
lea rbx, [0x14000a178]
test rax, rax
mov rcx, rbx
mov r8d, r12d
mov rdx, rdi
cmovne rcx, rax
call qword [sym.imp.libxml2.dll_xmlSaveFormatFile]
jmp 0x140004fc5
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140005043
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140005050
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140005095
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.libxml2.dll_xmlDocDump]
mov ecx, dword [0x14000f42c]
mov edx, 6
test eax, eax
cmovs ecx, edx
cmp qword [0x14000f3a0], r13
mov dword [0x14000f42c], ecx
je 0x140004e2c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004e2c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14000f3a0]
lea rdx, str.failed_to_open__s_n
mov rcx, rax
call fcn.140002290
jmp 0x140004e21
mov eax, dword [0x14000f39c]
cmp eax, r12d
jne 0x1400050cb
mov r8d, r12d
jmp 0x1400050da
cmp eax, 2
mov r8d, r13d
mov edx, 0x80
cmove r8d, edx
test ecx, ecx
je 0x1400050e2
or r8d, 0x20
mov rcx, qword [0x14000f3a0]
mov rdx, qword [0x14000f418]
test rcx, rcx
jne 0x140005100
mov ecx, r12d
call qword [sym.imp.libxml2.dll_xmlSaveToFd]
jmp 0x140005106
call qword [sym.imp.libxml2.dll_xmlSaveToFilename]
mov rsi, rax
test rax, rax
je 0x140004e21
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.libxml2.dll_xmlSaveDoc]
test eax, eax
jns 0x14000515f
mov rax, qword [0x14000f3a0]
lea rbx, [0x14000a178]
test rax, rax
mov ecx, 2
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.failed_save_to__s_n
mov rcx, rax
call fcn.140002290
mov edx, 6
mov dword [0x14000f42c], edx
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlSaveClose]
jmp 0x140004e2c
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140005184
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140005191
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x1400051b9
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.libxml2.dll_xmlDebugDumpDocument]
cmp qword [0x14000f3a0], r13
je 0x1400051e5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400051e5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x14000f3a0]
lea rdx, str.failed_to_open__s_n
mov rcx, rax
call fcn.140002290
mov edx, 6
mov dword [0x14000f42c], edx
mov rdx, qword [0x14000f3b8]
mov rcx, qword [0x14000f3c0]
test rdx, rdx
jne 0x1400052f2
test rcx, rcx
jne 0x1400052f2
cmp dword [0x14000f3b4], r13d
je 0x1400054b2
call qword [sym.imp.libxml2.dll_xmlNewValidCtxt]
mov rsi, rax
test rax, rax
jne 0x140005253
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
lea rdx, str.Couldnt_allocate_validation_context_n
mov rcx, qword [rax]
call qword [rbx]
mov rcx, rdi
mov dword [0x14000f42c], 9
call qword [sym.imp.libxml2.dll_xmlFreeDoc]
jmp 0x140005809
cmp dword [0x14000f434], r13d
je 0x140005271
cmp dword [0x14000f3f8], r13d
jne 0x140005271
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov qword [rsi], r13
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rcx, qword [rax]
mov qword [rsi + 8], rcx
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rdx, rdi
mov rcx, qword [rax]
mov qword [rsi + 0x10], rcx
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlValidateDocument]
test eax, eax
jne 0x1400052c6
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
mov r8, r14
lea rdx, str.Document__s_does_not_validate_n
mov rcx, qword [rax]
call qword [rbx]
mov dword [0x14000f42c], 3
cmp dword [0x14000f434], r13d
je 0x1400052e4
cmp dword [0x14000f3f8], r13d
jne 0x1400052e4
lea rcx, str.Validating
call fcn.140002200
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlFreeValidCtxt]
jmp 0x1400054b2
cmp dword [0x14000f434], r13d
je 0x14000531e
cmp dword [0x14000f3f8], r13d
jne 0x14000531e
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rdx, qword [0x14000f3b8]
mov rcx, qword [0x14000f3c0]
mov dword [0x14000f6a8], eax
test rdx, rdx
je 0x140005325
xor ecx, ecx
call qword [sym.imp.libxml2.dll_xmlParseDTD]
cmp dword [0x14000f434], r13d
mov r15, rax
je 0x14000534c
cmp dword [0x14000f3f8], r13d
jne 0x14000534c
lea rcx, str.Parsing_DTD
call fcn.140002200
test r15, r15
jne 0x1400053a3
cmp qword [0x14000f3b8], r13
je 0x140005372
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
mov r8, qword [0x14000f3b8]
jmp 0x140005388
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
mov r8, qword [0x14000f3c0]
mov rcx, qword [rax]
lea rdx, str.Could_not_parse_DTD__s_n
call qword [rbx]
mov dword [0x14000f42c], 2
jmp 0x1400054b2
call qword [sym.imp.libxml2.dll_xmlNewValidCtxt]
mov rsi, rax
test rax, rax
jne 0x1400053e4
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
lea rdx, str.Couldnt_allocate_validation_context_n
mov rcx, qword [rax]
call qword [rbx]
mov rcx, r15
mov dword [0x14000f42c], 9
call qword [sym.imp.libxml2.dll_xmlFreeDtd]
jmp 0x140005809
mov qword [rax], r13
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rcx, qword [rax]
mov qword [rsi + 8], rcx
call qword [sym.imp.libxml2.dll___xmlGenericError]
cmp dword [0x14000f434], r13d
mov rcx, qword [rax]
mov qword [rsi + 0x10], rcx
je 0x14000541f
cmp dword [0x14000f3f8], r13d
jne 0x14000541f
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlValidateDtd]
test eax, eax
jne 0x140005482
cmp qword [0x14000f3b8], r13
je 0x140005453
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
mov r9, qword [0x14000f3b8]
jmp 0x140005469
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, rax
call qword [sym.imp.libxml2.dll___xmlGenericErrorContext]
mov r9, qword [0x14000f3c0]
mov rcx, qword [rax]
lea rdx, str.Document__s_does_not_validate_against__s_n
mov r8, r14
call qword [rbx]
mov dword [0x14000f42c], 3
cmp dword [0x14000f434], r13d
je 0x1400054a0
cmp dword [0x14000f3f8], r13d
jne 0x1400054a0
lea rcx, str.Validating_against_DTD
call fcn.140002200
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlFreeValidCtxt]
mov rcx, r15
call qword [sym.imp.libxml2.dll_xmlFreeDtd]
mov rcx, qword [0x14000f3f0]
test rcx, rcx
je 0x1400055ae
cmp dword [0x14000f434], r13d
je 0x1400054e7
cmp dword [0x14000f3f8], r13d
jne 0x1400054e7
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3f0]
mov dword [0x14000f6a8], eax
cmp dword [0x14000f378], r13d
mov edx, 2
mov eax, 4
cmovne edx, eax
cmp dword [0x14000f394], r13d
je 0x140005507
or edx, r12d
call qword [sym.imp.libxml2.dll_xmlSchematronNewValidCtxt]
mov rbx, rax
test rax, rax
je 0x14000523b
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.libxml2.dll_xmlSchematronValidateDoc]
test eax, eax
jne 0x14000554f
cmp dword [0x14000f430], r13d
jne 0x140005587
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r14
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
jmp 0x140005587
mov ecx, 2
jle 0x140005565
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_fails_to_validate_n
jmp 0x140005572
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_validation_generated_an_internal_error_n
mov r8, r14
mov rcx, rax
call fcn.140002290
mov dword [0x14000f42c], 3
mov rcx, rbx
call qword [sym.imp.libxml2.dll_xmlSchematronFreeValidCtxt]
cmp dword [0x14000f434], r13d
je 0x1400055ae
cmp dword [0x14000f3f8], r13d
jne 0x1400055ae
lea rcx, str.Validating
call fcn.140002200
mov rcx, qword [0x14000f3d0]
test rcx, rcx
je 0x14000569e
cmp dword [0x14000f434], r13d
je 0x1400055e3
cmp dword [0x14000f3f8], r13d
jne 0x1400055e3
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3d0]
mov dword [0x14000f6a8], eax
call qword [sym.imp.libxml2.dll_xmlRelaxNGNewValidCtxt]
mov rsi, rax
test rax, rax
je 0x14000523b
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, qword [rax]
call qword [sym.imp.libxml2.dll___xmlGenericError]
xor r9d, r9d
mov r8, rbx
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.libxml2.dll_xmlRelaxNGSetValidErrors]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlRelaxNGValidateDoc]
test eax, eax
jne 0x140005658
cmp dword [0x14000f430], r13d
jne 0x140005690
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r14
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlRelaxNGFreeValidCtxt]
jmp 0x14000577d
mov ecx, 2
jle 0x14000566e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_fails_to_validate_n
jmp 0x14000567b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_validation_generated_an_internal_error_n
mov r8, r14
mov rcx, rax
call fcn.140002290
mov dword [0x14000f42c], 3
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlRelaxNGFreeValidCtxt]
jmp 0x14000577d
mov rcx, qword [0x14000f3e0]
test rcx, rcx
je 0x14000579b
cmp dword [0x14000f434], r13d
je 0x1400056d3
cmp dword [0x14000f3f8], r13d
jne 0x1400056d3
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3e0]
mov dword [0x14000f6a8], eax
call qword [sym.imp.libxml2.dll_xmlSchemaNewValidCtxt]
mov rsi, rax
test rax, rax
je 0x14000523b
call qword [sym.imp.libxml2.dll___xmlGenericError]
mov rbx, qword [rax]
call qword [sym.imp.libxml2.dll___xmlGenericError]
xor r9d, r9d
mov r8, rbx
mov rcx, rsi
mov rdx, qword [rax]
call qword [sym.imp.libxml2.dll_xmlSchemaSetValidErrors]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlSchemaValidateDoc]
test eax, eax
jne 0x14000573c
cmp dword [0x14000f430], r13d
jne 0x140005774
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r14
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
jmp 0x140005774
mov ecx, 2
jle 0x140005752
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_fails_to_validate_n
jmp 0x14000575f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s_validation_generated_an_internal_error_n
mov r8, r14
mov rcx, rax
call fcn.140002290
mov dword [0x14000f42c], 3
mov rcx, rsi
call qword [sym.imp.libxml2.dll_xmlSchemaFreeValidCtxt]
cmp dword [0x14000f434], r13d
je 0x14000579b
cmp dword [0x14000f3f8], r13d
jne 0x14000579b
lea rcx, str.Validating
call fcn.140002200
cmp dword [0x14000f374], r13d
je 0x1400057c4
cmp dword [0x14000f400], r13d
jne 0x1400057c4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.libxml2.dll_xmlDebugDumpEntities]
cmp dword [0x14000f434], r13d
je 0x1400057e2
cmp dword [0x14000f3f8], r13d
jne 0x1400057e2
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f6a8], eax
mov rcx, rdi
call qword [sym.imp.libxml2.dll_xmlFreeDoc]
cmp dword [0x14000f434], r13d
je 0x140005809
cmp dword [0x14000f3f8], r13d
jne 0x140005809
lea rcx, str.Freeing
call fcn.140002200
mov rsi, qword [rsp + 0x1cc0]
mov rcx, qword [rbp + 0x1b60]
xor rcx, rsp
call fcn.140007d80
add rsp, 0x1c70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret