Function at 0x4eb1ac
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push 0x54
mov eax, 0x664d65
call fcn.006098b5
mov edi, ecx
mov dword [ebp - 0x20], edi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4eb1d6
and eax, 0xfffffffe
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x60]
call fcn.00417833
push ecx
mov esi, esp
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00418dea
pop ecx
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
call fcn.00419083
mov ebx, dword [ebp - 0x30]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4eb226
push ecx
mov esi, esp
lea eax, [ebx - 0x10]
push eax
call fcn.00418dea
pop ecx
add eax, 0x10
mov dword [esi], eax
lea ecx, [ebp - 0x60]
call fcn.0045f16a
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0x17
push eax
push str.MSXML2.SAXXMLReader
lea ecx, [ebp - 0x18]
call fcn.0045f37a
test eax, eax
js 0x4eb388
cmp dword [ebp - 0x18], esi
je 0x4eb388
push 0x17
push esi
push str.MSXML2.MXXMLWriter
lea ecx, [ebp - 0x14]
call fcn.0045f28d
test eax, eax
js 0x4eb388
cmp dword [ebp - 0x14], esi
je 0x4eb388
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00435691
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4eb292
push 0x80004003
call fcn.006080a0
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0051339f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4eb288
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4eb288
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x3c]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4eb288
push 0x68b55c
lea ecx, [ebp - 0x34]
call fcn.004474a7
mov ecx, dword [eax]
test ecx, ecx
je 0x4eb2d7
mov ecx, dword [ecx]
jmp 0x4eb2d9
xor ecx, ecx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x4eb2ec
call fcn.004e81e6
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 8]
call fcn.0044c797
mov ecx, eax
call fcn.0049df73
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.004474df
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x18]
call fcn.0044c785
mov ecx, eax
call fcn.00511b29
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.0044c773
mov ecx, eax
call fcn.0049deed
push eax
lea ecx, [ebp - 0x28]
call fcn.004473de
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
call fcn.004473bc
lea ecx, [edi + 8]
call fcn.0044c797
mov ecx, eax
call fcn.0051199c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4eb37c
call fcn.004e81e6
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4eb388
call fcn.004e81e6
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 0
je 0x4eb564
mov dword [ebp - 0x38], 0xfeff
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 8]
call fcn.0044c797
mov ecx, eax
call fcn.0049df73
mov ecx, eax
call fcn.0047922b
push dword [eax]
lea ecx, [ebp - 0x28]
call fcn.004177e7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4eb3d4
call fcn.004e81e6
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [eax*2 + 4]
push eax
call fcn.00609926
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x1c]
lea ecx, [edx*2 + 4]
push ecx
push 0
push eax
call fcn.0060b7a0
push 2
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx*2 + 4]
push eax
push dword [ebp - 0x24]
call fcn.00517be1
add esp, 0x20
mov eax, dword [ebp - 0x28]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00479862
push eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
call fcn.00517be1
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx*2 + 4]
push eax
push dword [ebp - 0x24]
lea eax, [edi + 0x18]
push eax
call fcn.0046ae69
add esp, 0x20
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x20], 0
push 0x68b568
push dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.0062a5ed
add esp, 0xc
test eax, eax
jne 0x4eb4a5
cmp dword [ebp - 0x20], eax
je 0x4eb4a5
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
call fcn.0062b956
push dword [ebp - 0x20]
call fcn.0062a2ec
add esp, 0x14
push dword [ebp - 0x1c]
call fcn.0060992f
push dword [ebp - 0x24]
call fcn.0060992f
pop ecx
pop ecx
mov ecx, edi
call fcn.004ac94d
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00419521
test esi, esi
je 0x4eb4d3
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4eb4e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4eb4ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebx - 0x10]
call fcn.00419521
lea ecx, [ebp - 0x60]
call fcn.00418dd0
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00419521
xor eax, eax
inc eax
jmp 0x4eb55e
call fcn.00609813
ret
push dword [edi]
lea ecx, [ebp - 0x48]
call fcn.0044752b
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 8]
call fcn.0044c797
mov ecx, eax
call fcn.00513b1a
mov dword [ebp - 0x38], eax
test eax, eax
js 0x4eb58f
mov ecx, edi
call fcn.004ac94d
xor eax, eax
cmp dword [ebp - 0x38], eax
setge al
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
je 0x4eb5ae
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4eb5bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4eb5c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebx - 0x10]
call fcn.00419521
lea ecx, [ebp - 0x60]
call fcn.00418dd0
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00419521
mov eax, dword [ebp - 0x38]
jmp 0x4eb55e