Function at 0x1001e030
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10044990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
push str.__xml_version_1.0__encoding_utf_8_____n_site_rules_
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], edi
call fcn.10001f40
mov eax, dword [edi + 0x20]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x2c], 0
je 0x1001e10f
mov bl, 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x10]
call fcn.10031040
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call fcn.10008db0
mov al, byte [esi + 0x75]
test al, al
jne 0x1001e0e3
mov eax, dword [esi + 8]
mov cl, byte [eax + 0x75]
test cl, cl
jne 0x1001e0c2
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x75]
test cl, cl
jne 0x1001e0e3
mov esi, eax
mov eax, dword [esi]
mov cl, byte [eax + 0x75]
test cl, cl
je 0x1001e0b5
jmp 0x1001e0e3
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x75]
test cl, cl
jne 0x1001e0e1
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x1001e0e1
mov esi, eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x75]
test cl, cl
je 0x1001e0d0
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e106
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, dword [edi + 0x20]
jne 0x1001e076
push str.__site_rules_
lea ecx, [esp + 0x10]
call fcn.1001da90
mov eax, dword [0x100555f8]
mov ecx, 0x100555f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x28]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x100481d0
push eax
mov byte [esp + 0x3c], 2
call fcn.10005730
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x1001e240
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
mov al, byte [edi + 0x34]
test al, al
je 0x1001e1bc
mov eax, esi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x1001e1b1
dec eax
or eax, 0xfffffff8
inc eax
je 0x1001e1bc
mov edx, 8
sub edx, eax
add esi, edx
push ebp
push esi
call fcn.10035f23
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
push 0
mov edi, ebp
rep stosd dword es:[edi], eax
push 0
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ebp
push ecx
push eax
push 0
push 0xfde9
mov byte [esp + 0x50], 3
call ebx
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 0x34]
test cl, cl
je 0x1001e213
push esi
push ebp
push ebp
lea ecx, [eax + 0x38]
call fcn.10034be0
push 0
lea eax, [esp + 0x20]
push eax
push esi
mov esi, dword [esp + 0x2c]
push ebp
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.1003673d
add esp, 4
pop ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x1001e266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e28b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret