Function at 0x1400041e0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1b70]
mov eax, 0x1c70
call fcn.140007d40
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 rsi, rcx
cmp dword [0x14000f430], edi
je 0x140004239
cmp dword [0x14000f3f8], edi
jne 0x140004239
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov qword [rsp + 0x1cc0], r14
mov r12d, 1
lea r15d, [r12 + 3]
test rsi, rsi
jne 0x1400042a2
cmp dword [0x14000f434], edi
je 0x1400046b4
lea rcx, [0x14000a0ac]
call sub.libxml2.dll_xmlNewDoc
xor r9d, r9d
lea r8, str.info
xor edx, edx
mov rcx, rax
mov rdi, rax
call sub.libxml2.dll_xmlNewDocNode
lea rdx, [0x14000a0b8]
mov rcx, rax
mov rbx, rax
call sub.libxml2.dll_xmlNodeSetContent
mov rdx, rbx
mov rcx, rdi
call sub.libxml2.dll_xmlDocSetRootElement
jmp 0x1400046af
cmp dword [0x14000f400], edi
je 0x1400043b5
cmp dword [0x14000f410], edi
mov rcx, rsi
je 0x1400043a2
lea rdx, [0x14000a0bc]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x1400046b4
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 0x140004394
mov dword [rsp + 0x28], r13d
lea r8, [rbp + 0xb60]
mov r9d, eax
mov qword [rsp + 0x20], rsi
xor edx, edx
xor ecx, ecx
call sub.libxml2.dll_htmlCreatePushParserCtxt
mov edx, dword [0x14000f314]
mov rcx, rax
mov r14, rax
call sub.libxml2.dll_xmlCtxtUseOptions
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 0x140004373
xor r9d, r9d
lea rdx, [rbp + 0xb60]
mov r8d, eax
mov rcx, r14
call sub.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 0x140004340
mov r9d, r12d
lea rdx, [rbp + 0xb60]
xor r8d, r8d
mov rcx, r14
call sub.libxml2.dll_htmlParseChunk
mov rdi, qword [r14 + 0x10]
mov rcx, r14
call sub.libxml2.dll_htmlFreeParserCtxt
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400046af
mov r8d, dword [0x14000f314]
xor edx, edx
call sub.libxml2.dll_htmlReadFile
jmp 0x1400046ac
cmp dword [0x14000f410], edi
je 0x1400044e5
cmp byte [rsi], 0x2d
jne 0x1400043d6
cmp byte [rsi + 1], dil
jne 0x1400043d6
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1400043e6
lea rdx, [0x14000a0bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
je 0x1400046b4
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 0x1400044c6
mov r9d, eax
mov qword [rsp + 0x20], rsi
lea r8, [rbp + 0x760]
xor edx, edx
xor ecx, ecx
call sub.libxml2.dll_xmlCreatePushParserCtxt
mov edx, dword [0x14000f314]
mov rcx, rax
mov r15, rax
call sub.libxml2.dll_xmlCtxtUseOptions
mov r9, r14
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 0x140004492
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rbp + 0x760]
mov r8d, eax
mov rcx, r15
call sub.libxml2.dll_xmlParseChunk
mov r9, r14
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 0x140004460
mov r9d, r12d
lea rdx, [rbp + 0x760]
xor r8d, r8d
mov rcx, r15
call sub.libxml2.dll_xmlParseChunk
mov rdi, qword [r15 + 0x10]
mov rcx, r15
mov ebx, dword [r15 + 0x18]
call sub.libxml2.dll_xmlFreeParserCtxt
test ebx, ebx
jne 0x1400044c6
mov rcx, rdi
call sub.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 r14, rax
je 0x1400046af
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400046af
cmp dword [0x14000f414], edi
je 0x140004594
cmp byte [rsi], 0x2d
jne 0x140004514
cmp byte [rsi + 1], dil
jne 0x140004514
mov r9d, dword [0x14000f314]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.libxml2.dll_xmlReadFd
jmp 0x1400046ac
lea rdx, [0x14000a0bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdx, rax
test rax, rax
je 0x1400046b4
test rbx, rbx
jne 0x140004562
mov ecx, dword [0x14000f314]
lea rdx, [0x140004030]
mov dword [rsp + 0x28], ecx
mov r9, rsi
lea rcx, [0x1400040e0]
mov qword [rsp + 0x20], r13
mov r8, rax
call sub.libxml2.dll_xmlReadIO
jmp 0x1400046ac
mov eax, dword [0x14000f314]
lea r8, [0x140004030]
mov dword [rsp + 0x30], eax
mov r9, rdx
mov qword [rsp + 0x28], r13
lea rdx, [0x1400040e0]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call sub.libxml2.dll_xmlCtxtReadIO
jmp 0x1400046ac
cmp dword [0x14000f408], edi
je 0x14000460f
test rbx, rbx
jne 0x1400045ab
call sub.libxml2.dll_xmlNewParserCtxt
mov r14, rax
jmp 0x1400045ae
mov r14, rbx
test r14, r14
je 0x1400046b4
mov rax, qword [r14]
lea rcx, [0x140006d20]
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, rsi
mov qword [rax + 0xb0], rcx
lea rcx, [0x140007260]
mov rax, qword [r14]
mov qword [rax + 0xa8], rcx
lea rax, [0x1400070b0]
mov qword [r14 + 0xa0], rax
mov rcx, r14
lea rax, [0x140007190]
mov qword [r14 + 0xa8], rax
call sub.libxml2.dll_xmlCtxtReadFile
mov rdi, rax
jmp 0x140004661
cmp dword [0x14000f3b0], edi
je 0x140004670
test rbx, rbx
jne 0x140004626
call sub.libxml2.dll_xmlNewParserCtxt
mov r14, rax
jmp 0x140004629
mov r14, rbx
test r14, r14
je 0x1400046b4
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call sub.libxml2.dll_xmlCtxtReadFile
cmp dword [r14 + 0x90], r13d
mov rdi, rax
mov eax, dword [0x14000f42c]
cmove eax, r15d
mov dword [0x14000f42c], eax
test rbx, rbx
jne 0x1400046af
mov rcx, r14
call sub.libxml2.dll_xmlFreeParserCtxt
jmp 0x1400046af
test rbx, rbx
je 0x14000468c
mov r9d, dword [0x14000f314]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call sub.libxml2.dll_xmlCtxtReadFile
jmp 0x1400046ac
cmp dword [0x14000f478], edi
mov rcx, rsi
je 0x14000469e
call sub.libxml2.dll_xmlParseFile
jmp 0x1400046ac
mov r8d, dword [0x14000f314]
xor edx, edx
call sub.libxml2.dll_xmlReadFile
mov rdi, rax
test rdi, rdi
jne 0x1400046c0
mov dword [0x14000f42c], r12d
jmp 0x140005535
cmp dword [0x14000f430], r13d
je 0x1400046de
cmp dword [0x14000f3f8], r13d
jne 0x1400046de
lea rcx, str.Parsing
call fcn.140002200
cmp dword [0x14000f438], r13d
je 0x140004707
mov rcx, rdi
call sub.libxml2.dll_xmlGetIntSubset
mov rbx, rax
test rax, rax
je 0x140004707
mov rcx, rax
call sub.libxml2.dll_xmlUnlinkNode
mov rcx, rbx
call sub.libxml2.dll_xmlFreeDtd
cmp dword [0x14000f420], r13d
je 0x14000476c
cmp dword [0x14000f430], r13d
je 0x14000472e
cmp dword [0x14000f3f8], r13d
jne 0x14000472e
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov edx, dword [0x14000f314]
mov rcx, rdi
call sub.libxml2.dll_xmlXIncludeProcessFlags
mov ecx, dword [0x14000f42c]
test eax, eax
cmovs ecx, r12d
cmp dword [0x14000f430], r13d
mov dword [0x14000f42c], ecx
je 0x14000476c
cmp dword [0x14000f3f8], r13d
jne 0x14000476c
lea rcx, str.Xinclude_processing
call fcn.140002200
mov r14, qword [0x14000f480]
test r14, r14
je 0x140004804
mov rcx, rdi
call sub.libxml2.dll_xmlXPathNewContext
mov rbx, rax
test rax, rax
jne 0x1400047b0
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 0x140004804
mov rdx, rbx
mov qword [rax + 8], rdi
mov rcx, r14
call sub.libxml2.dll_xmlXPathEval
mov rcx, rbx
mov r14, rax
call sub.libxml2.dll_xmlXPathFreeContext
test r14, r14
jne 0x1400047f4
lea ecx, [r14 + 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 0x140004804
mov rcx, r14
call fcn.140001fb0
mov rcx, r14
call sub.libxml2.dll_xmlXPathFreeObject
cmp dword [0x14000f370], r13d
je 0x140004833
mov rcx, rdi
call sub.libxml2.dll_xmlXPathOrderDocElems
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x140007330]
mov rdx, rsi
mov r9, rax
mov rcx, rdi
call sub.libxml2.dll_xmlShell
cmp dword [0x14000f380], r13d
je 0x1400048a9
cmp dword [0x14000f430], r13d
mov rbx, rdi
je 0x140004854
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov edx, r12d
mov rcx, rdi
call sub.libxml2.dll_xmlCopyDoc
cmp dword [0x14000f430], r13d
mov rdi, rax
je 0x14000488c
lea rcx, str.Copying
call fcn.140002200
cmp dword [0x14000f430], r13d
je 0x14000488c
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov rcx, rbx
call sub.libxml2.dll_xmlFreeDoc
cmp dword [0x14000f430], r13d
je 0x1400048a9
lea rcx, str.Freeing_original
call fcn.140002200
cmp dword [0x14000f3fc], r13d
je 0x140004989
cmp dword [0x14000f400], r13d
jne 0x140004989
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14000499a
mov rcx, qword [rax + 0x20]
test rcx, rcx
jne 0x1400048e7
mov rax, qword [rax + 0x30]
test rax, rax
jne 0x1400048d0
jmp 0x14000499a
mov r9d, 0x100
lea r8, [rsp + 0x60]
xor edx, edx
call sub.libxml2.dll_xmlValidGetValidElements
movsxd rbx, eax
mov ecx, 2
test eax, eax
jns 0x14000491c
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 0x14000499a
jne 0x140004935
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 0x14000499a
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 r14, rbx
test ebx, ebx
jle 0x14000499a
mov rbx, r13
nop word [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, r14
jl 0x140004960
jmp 0x14000499a
cmp dword [0x14000f454], r13d
je 0x14000499a
mov rcx, rdi
call fcn.140006a50
cmp dword [0x14000f394], r13d
jne 0x140004f96
cmp dword [0x14000f378], r13d
jne 0x140004f1f
cmp dword [0x14000f430], r13d
je 0x1400049d2
cmp dword [0x14000f3f8], r13d
jne 0x1400049d2
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
cmp dword [0x14000f400], r13d
mov ecx, dword [0x14000f404]
je 0x140004b4f
test ecx, ecx
jne 0x140004b4f
cmp dword [0x14000f3a8], r13d
je 0x140004a18
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov rdx, rdi
cmovne rcx, rax
call sub.libxml2.dll_htmlSaveFile
jmp 0x140004b24
mov r8, qword [0x14000f418]
test r8, r8
je 0x140004a66
cmp dword [0x14000f39c], r12d
lea rcx, [0x14000a178]
mov rax, qword [0x14000f3a0]
mov rdx, rdi
jne 0x140004a52
test rax, rax
mov r9d, r12d
cmovne rcx, rax
call sub.libxml2.dll_htmlSaveFileFormat
jmp 0x140004b24
test rax, rax
cmovne rcx, rax
xor r9d, r9d
call sub.libxml2.dll_htmlSaveFileFormat
jmp 0x140004b24
cmp dword [0x14000f39c], r12d
jne 0x140004a97
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov r9d, r12d
mov rdx, rdi
cmovne rcx, rax
xor r8d, r8d
call sub.libxml2.dll_htmlSaveFileFormat
jmp 0x140004b24
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140004aae
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140004abb
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140004af8
mov rdx, rdi
mov rcx, rax
call sub.libxml2.dll_htmlDocDump
mov ecx, dword [0x14000f42c]
test eax, eax
mov edx, 6
cmovs ecx, edx
cmp qword [0x14000f3a0], r13
mov dword [0x14000f42c], ecx
je 0x140004b24
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004b24
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 [0x14000f430], r13d
je 0x140004f96
cmp dword [0x14000f3f8], r13d
jne 0x140004be7
lea rcx, str.Saving
call fcn.140002200
jmp 0x140004be7
cmp dword [0x14000f444], r13d
je 0x140004c12
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 sub.libxml2.dll_xmlC14NDocDumpMemory
test eax, eax
js 0x140004bc2
mov rdx, qword [rsp + 0x40]
mov r8d, eax
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0xffffffff
jne 0x140004bb2
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 0x140004be7
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 [0x14000f430], r13d
je 0x140004f96
cmp dword [0x14000f3f8], r13d
jne 0x140004f96
lea rcx, str.Saving
call fcn.140002200
jmp 0x140004f96
cmp dword [0x14000f448], r13d
je 0x140004c89
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 sub.libxml2.dll_xmlC14NDocDumpMemory
test eax, eax
js 0x140004bc2
mov rdx, qword [rsp + 0x48]
mov r8d, eax
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0xffffffff
jne 0x140004c76
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 0x140004be7
cmp dword [0x14000f44c], r13d
je 0x140004cff
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 sub.libxml2.dll_xmlC14NDocDumpMemory
test eax, eax
js 0x140004bc2
mov rdx, qword [rsp + 0x50]
mov r8d, eax
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
cmp eax, 0xffffffff
jne 0x140004cec
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 0x140004be7
cmp dword [0x14000f3a8], r13d
je 0x140004d2a
mov rax, qword [0x14000f3a0]
lea rcx, [0x14000a178]
test rax, rax
mov rdx, rdi
cmovne rcx, rax
call sub.libxml2.dll_xmlSaveFile
jmp 0x140004be7
cmp dword [0x14000f3ac], r13d
je 0x140004e71
mov r8, qword [0x14000f418]
test r8, r8
je 0x140004db5
cmp dword [0x14000f39c], r12d
lea rbx, [0x14000a178]
mov rax, qword [0x14000f3a0]
mov rcx, rbx
mov rdx, rdi
jne 0x140004d71
test rax, rax
mov r9d, r12d
cmovne rcx, rax
call sub.libxml2.dll_xmlSaveFormatFileEnc
jmp 0x140004d7d
test rax, rax
cmovne rcx, rax
call sub.libxml2.dll_xmlSaveFileEnc
test eax, eax
jns 0x140004be7
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 0x140004bdc
cmp dword [0x14000f39c], r12d
jne 0x140004de3
mov rax, qword [0x14000f3a0]
lea rbx, [0x14000a178]
test rax, rax
mov rcx, rbx
mov r8d, r12d
mov rdx, rdi
cmovne rcx, rax
call sub.libxml2.dll_xmlSaveFormatFile
jmp 0x140004d7d
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140004dfa
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140004e07
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140004e4b
mov rdx, rdi
mov rcx, rax
call sub.libxml2.dll_xmlDocDump
mov ecx, dword [0x14000f42c]
test eax, eax
mov edx, 6
cmovs ecx, edx
cmp qword [0x14000f3a0], r13
mov dword [0x14000f42c], ecx
je 0x140004be7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004be7
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 0x140004bdc
mov eax, dword [0x14000f39c]
cmp eax, r12d
jne 0x140004e81
mov r8d, r12d
jmp 0x140004e90
cmp eax, 2
mov r8d, r13d
mov edx, 0x80
cmove r8d, edx
test ecx, ecx
je 0x140004e98
or r8d, 0x20
mov rcx, qword [0x14000f3a0]
mov rdx, qword [0x14000f418]
test rcx, rcx
jne 0x140004eb5
mov ecx, r12d
call sub.libxml2.dll_xmlSaveToFd
jmp 0x140004eba
call sub.libxml2.dll_xmlSaveToFilename
mov r14, rax
test rax, rax
je 0x140004bdc
mov rdx, rdi
mov rcx, rax
call sub.libxml2.dll_xmlSaveDoc
test eax, eax
jns 0x140004f12
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, r14
call sub.libxml2.dll_xmlSaveClose
jmp 0x140004be7
mov rcx, qword [0x14000f3a0]
test rcx, rcx
jne 0x140004f36
mov ecx, r12d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x140004f43
lea rdx, [0x14000a17c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x140004f6a
mov rdx, rdi
mov rcx, rax
call sub.libxml2.dll_xmlDebugDumpDocument
cmp qword [0x14000f3a0], r13
je 0x140004f96
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004f96
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 0x14000508d
test rcx, rcx
jne 0x14000508d
cmp dword [0x14000f3b4], r13d
je 0x14000522f
call sub.libxml2.dll_xmlNewValidCtxt
mov r14, rax
test rax, rax
jne 0x140004ff4
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
lea rdx, str.Couldnt_allocate_validation_context_n
mov rcx, qword [rax]
call qword [rbx]
lea ecx, [r14 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x14000f430], r13d
je 0x140005012
cmp dword [0x14000f3f8], r13d
jne 0x140005012
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov qword [r14], r13
call sub.libxml2.dll___xmlGenericError
mov rcx, qword [rax]
mov qword [r14 + 8], rcx
call sub.libxml2.dll___xmlGenericError
mov rdx, rdi
mov rcx, qword [rax]
mov qword [r14 + 0x10], rcx
mov rcx, r14
call sub.libxml2.dll_xmlValidateDocument
test eax, eax
jne 0x140005062
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
mov r8, rsi
lea rdx, str.Document__s_does_not_validate_n
mov rcx, qword [rax]
call qword [rbx]
mov dword [0x14000f42c], 3
cmp dword [0x14000f430], r13d
je 0x140005080
cmp dword [0x14000f3f8], r13d
jne 0x140005080
lea rcx, str.Validating
call fcn.140002200
mov rcx, r14
call sub.libxml2.dll_xmlFreeValidCtxt
jmp 0x14000522f
cmp dword [0x14000f430], r13d
je 0x1400050b9
cmp dword [0x14000f3f8], r13d
jne 0x1400050b9
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rdx, qword [0x14000f3b8]
mov rcx, qword [0x14000f3c0]
mov dword [0x14000f69c], eax
test rdx, rdx
je 0x1400050c0
xor ecx, ecx
call sub.libxml2.dll_xmlParseDTD
cmp dword [0x14000f430], r13d
mov r15, rax
je 0x1400050e6
cmp dword [0x14000f3f8], r13d
jne 0x1400050e6
lea rcx, str.Parsing_DTD
call fcn.140002200
test r15, r15
jne 0x140005139
cmp qword [0x14000f3b8], r13
je 0x14000510a
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
mov r8, qword [0x14000f3b8]
jmp 0x14000511e
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.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 0x14000522f
call sub.libxml2.dll_xmlNewValidCtxt
mov r14, rax
test rax, rax
jne 0x14000516a
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
lea rdx, str.Couldnt_allocate_validation_context_n
mov rcx, qword [rax]
call qword [rbx]
lea ecx, [r14 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rax], r13
call sub.libxml2.dll___xmlGenericError
mov rcx, qword [rax]
mov qword [r14 + 8], rcx
call sub.libxml2.dll___xmlGenericError
cmp dword [0x14000f430], r13d
mov rcx, qword [rax]
mov qword [r14 + 0x10], rcx
je 0x1400051a3
cmp dword [0x14000f3f8], r13d
jne 0x1400051a3
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov r8, r15
mov rdx, rdi
mov rcx, r14
call sub.libxml2.dll_xmlValidateDtd
test eax, eax
jne 0x140005201
cmp qword [0x14000f3b8], r13
je 0x1400051d4
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
mov r9, qword [0x14000f3b8]
jmp 0x1400051e8
call sub.libxml2.dll___xmlGenericError
mov rbx, rax
call sub.libxml2.dll___xmlGenericErrorContext
mov r9, qword [0x14000f3c0]
mov rcx, qword [rax]
lea rdx, str.Document__s_does_not_validate_against__s_n
mov r8, rsi
call qword [rbx]
mov dword [0x14000f42c], 3
cmp dword [0x14000f430], r13d
je 0x14000521f
cmp dword [0x14000f3f8], r13d
jne 0x14000521f
lea rcx, str.Validating_against_DTD
call fcn.140002200
mov rcx, r14
call sub.libxml2.dll_xmlFreeValidCtxt
mov rcx, r15
call sub.libxml2.dll_xmlFreeDtd
mov rcx, qword [0x14000f3f0]
test rcx, rcx
je 0x140005313
cmp dword [0x14000f430], r13d
je 0x140005264
cmp dword [0x14000f3f8], r13d
jne 0x140005264
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3f0]
mov dword [0x14000f69c], eax
cmp dword [0x14000f378], r13d
mov edx, 2
mov eax, 4
cmovne edx, eax
cmp dword [0x14000f394], r13d
je 0x140005284
or edx, r12d
call sub.libxml2.dll_xmlSchematronNewValidCtxt
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.libxml2.dll_xmlSchematronValidateDoc
mov ecx, 2
test eax, eax
jne 0x1400052ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
jmp 0x1400052ed
jle 0x1400052cb
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 0x1400052d8
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, rsi
mov rcx, rax
call fcn.140002290
mov dword [0x14000f42c], 3
mov rcx, rbx
call sub.libxml2.dll_xmlSchematronFreeValidCtxt
cmp dword [0x14000f430], r13d
je 0x140005313
cmp dword [0x14000f3f8], r13d
jne 0x140005313
lea rcx, str.Validating
call fcn.140002200
mov rcx, qword [0x14000f3d0]
test rcx, rcx
je 0x1400053e7
cmp dword [0x14000f430], r13d
je 0x140005348
cmp dword [0x14000f3f8], r13d
jne 0x140005348
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3d0]
mov dword [0x14000f69c], eax
call sub.libxml2.dll_xmlRelaxNGNewValidCtxt
mov r14, rax
call sub.libxml2.dll___xmlGenericError
mov rbx, qword [rax]
call sub.libxml2.dll___xmlGenericError
xor r9d, r9d
mov r8, rbx
mov rcx, r14
mov rdx, qword [rax]
call sub.libxml2.dll_xmlRelaxNGSetValidErrors
mov rdx, rdi
mov rcx, r14
call sub.libxml2.dll_xmlRelaxNGValidateDoc
mov ecx, 2
test eax, eax
jne 0x1400053a7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
mov rcx, r14
call sub.libxml2.dll_xmlRelaxNGFreeValidCtxt
jmp 0x1400054ab
jle 0x1400053b8
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 0x1400053c5
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, rsi
mov rcx, rax
call fcn.140002290
mov rcx, r14
mov dword [0x14000f42c], 3
call sub.libxml2.dll_xmlRelaxNGFreeValidCtxt
jmp 0x1400054ab
mov rcx, qword [0x14000f3e0]
test rcx, rcx
je 0x1400054c9
cmp dword [0x14000f430], r13d
je 0x14000541c
cmp dword [0x14000f3f8], r13d
jne 0x14000541c
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov rcx, qword [0x14000f3e0]
mov dword [0x14000f69c], eax
call sub.libxml2.dll_xmlSchemaNewValidCtxt
mov r14, rax
call sub.libxml2.dll___xmlGenericError
mov rbx, qword [rax]
call sub.libxml2.dll___xmlGenericError
xor r9d, r9d
mov r8, rbx
mov rcx, r14
mov rdx, qword [rax]
call sub.libxml2.dll_xmlSchemaSetValidErrors
mov rdx, rdi
mov rcx, r14
call sub.libxml2.dll_xmlSchemaValidateDoc
mov ecx, 2
test eax, eax
jne 0x140005470
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rsi
lea rdx, str._s_validates_n
mov rcx, rax
call fcn.140002290
jmp 0x1400054a3
jle 0x140005481
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 0x14000548e
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, rsi
mov rcx, rax
call fcn.140002290
mov dword [0x14000f42c], 3
mov rcx, r14
call sub.libxml2.dll_xmlSchemaFreeValidCtxt
cmp dword [0x14000f430], r13d
je 0x1400054c9
cmp dword [0x14000f3f8], r13d
jne 0x1400054c9
lea rcx, str.Validating
call fcn.140002200
cmp dword [0x14000f374], r13d
je 0x1400054f1
cmp dword [0x14000f400], r13d
jne 0x1400054f1
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 sub.libxml2.dll_xmlDebugDumpEntities
cmp dword [0x14000f430], r13d
je 0x14000550f
cmp dword [0x14000f3f8], r13d
jne 0x14000550f
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [0x14000f69c], eax
mov rcx, rdi
call sub.libxml2.dll_xmlFreeDoc
cmp dword [0x14000f430], r13d
je 0x140005535
cmp dword [0x14000f3f8], r13d
jne 0x140005535
lea rcx, str.Freeing
call fcn.140002200
mov r14, qword [rsp + 0x1cc0]
mov rcx, qword [rbp + 0x1b60]
xor rcx, rsp
call fcn.140007db0
add rsp, 0x1c70
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret