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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543070
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xec
push ebx
push esi
push edi
mov eax, dword [0x58f860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0x10], 0
jne 0x442f08
xor eax, eax
jmp 0x443512
mov ecx, dword [ebp - 0xf0]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x442f42
mov ecx, dword [ebp - 0x14]
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x34]
call fcn.0042e670
push ecx
mov ecx, esp
mov eax, dword [ebp - 0xf0]
push eax
call fcn.0041c880
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0042e6e0
lea ecx, [ebp - 0x54]
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x442f8c
push ecx
mov ecx, esp
lea edx, [ebp - 0x54]
push edx
call fcn.0041c880
lea ecx, [ebp - 0x34]
call fcn.00443530
lea ecx, [ebp - 0x1c]
call fcn.0048b370
lea ecx, [ebp - 0x38]
call fcn.0048b7e0
lea ecx, [ebp - 0x18]
call fcn.0048b320
push 0x17
push 0
push str.MSXML2.SAXXMLReader
lea ecx, [ebp - 0x1c]
call fcn.0048b400
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x443184
lea ecx, [ebp - 0x1c]
call fcn.0048b3e0
movzx eax, al
test eax, eax
je 0x443184
push 0x17
push 0
push str.MSXML2.MXXMLWriter
lea ecx, [ebp - 0x38]
call fcn.0048b870
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x443184
lea ecx, [ebp - 0x38]
call fcn.0048b850
movzx ecx, al
test ecx, ecx
je 0x443184
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x18]
call fcn.004bf180
lea ecx, [ebp - 0x18]
call fcn.0048b360
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048b3b0
mov ecx, eax
call fcn.00443920
lea ecx, [ebp - 0x38]
call fcn.0048b820
mov dword [ebp - 0xf4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
lea ecx, [ebp - 0x38]
call fcn.0048b820
mov dword [ebp - 0xf8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xf8]
push ecx
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x3c]
call ecx
lea ecx, [ebp - 0x38]
call fcn.0048b820
mov dword [ebp - 0xfc], eax
push 0x558938
lea ecx, [ebp - 0x9c]
call fcn.00442340
mov ecx, eax
call fcn.00431490
push eax
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
lea ecx, [ebp - 0x9c]
call fcn.00431470
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xf0]
add ecx, 8
call fcn.0048b550
mov ecx, eax
call fcn.00443aa0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00443700
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0048b3b0
mov ecx, eax
call fcn.00443960
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0xb0]
call fcn.00442440
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048b820
mov ecx, eax
call fcn.004439e0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00443770
lea ecx, [ebp - 0xc0]
call fcn.00442440
push ecx
mov ecx, esp
lea edx, [ebp - 0x5c]
push edx
call fcn.00442820
mov ecx, dword [ebp - 0xf0]
add ecx, 8
call fcn.0048b550
mov ecx, eax
call fcn.00442890
lea ecx, [ebp - 0x5c]
call fcn.00431470
lea ecx, [ebp - 0x58]
call fcn.00431470
jmp 0x443184
mov dword [ebp - 4], 0xffffffff
jmp 0x4431c0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 0x14], 0
je 0x443397
mov ecx, 0xfeff
mov word [ebp - 0x68], cx
lea edx, [ebp - 0xcc]
push edx
mov ecx, dword [ebp - 0xf0]
add ecx, 8
call fcn.0048b550
mov ecx, eax
call fcn.00443aa0
mov ecx, eax
call fcn.00443620
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041c8a0
lea ecx, [ebp - 0xcc]
call fcn.00431470
lea ecx, [ebp - 0x7c]
call fcn.0041cc20
lea ecx, [eax + eax + 4]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.004c8580
add esp, 4
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x74]
push ecx
push 0
mov edx, dword [ebp - 0x70]
push edx
call fcn.00512af0
add esp, 0xc
push 2
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.00517ac7
add esp, 0x10
lea ecx, [ebp - 0x7c]
call fcn.0041cc20
shl eax, 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041cbc0
push eax
mov eax, dword [ebp - 0x74]
sub eax, 2
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 2
push ecx
call fcn.00517ac7
add esp, 0x10
mov dword [ebp - 0x64], 0
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0xf0]
add edx, 0x18
push edx
call fcn.00443be0
add esp, 0x10
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 0
push 0x558930
mov ecx, dword [ebp - 0xf0]
call fcn.0041cb20
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.005186e3
add esp, 0xc
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x443312
cmp dword [ebp - 0x60], 0
je 0x443312
mov ecx, dword [ebp - 0x60]
push ecx
push 1
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00513294
add esp, 0x10
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00512a79
add esp, 4
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.005124eb
add esp, 4
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
push edx
call fcn.005124eb
add esp, 4
mov ecx, dword [ebp - 0xf0]
call fcn.00442060
mov dword [ebp - 0xdc], 1
lea ecx, [ebp - 0x7c]
call fcn.0040f740
lea ecx, [ebp - 0x18]
call fcn.0048b340
lea ecx, [ebp - 0x38]
call fcn.0048b800
lea ecx, [ebp - 0x1c]
call fcn.0048b390
lea ecx, [ebp - 0x54]
call fcn.0040f740
lea ecx, [ebp - 0x34]
call fcn.0042e690
mov eax, dword [ebp - 0xdc]
jmp 0x443512
mov ecx, dword [ebp - 0xf0]
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x90]
call fcn.004423f0
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0xf0]
add ecx, 8
call fcn.0048b550
mov ecx, eax
call fcn.00443b60
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jl 0x4433de
mov ecx, dword [ebp - 0xf0]
call fcn.00442060
xor ecx, ecx
cmp dword [ebp - 0x80], 0
setge cl
mov dword [ebp - 0xe0], ecx
lea ecx, [ebp - 0x90]
call fcn.00442440
lea ecx, [ebp - 0x18]
call fcn.0048b340
lea ecx, [ebp - 0x38]
call fcn.0048b800
lea ecx, [ebp - 0x1c]
call fcn.0048b390
lea ecx, [ebp - 0x54]
call fcn.0040f740
lea ecx, [ebp - 0x34]
call fcn.0042e690
mov eax, dword [ebp - 0xe0]
jmp 0x443512
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret