Function at 0x300fc2f8
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
mov ebx, ecx
cmp dword [ebx + 0x1c], edi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
jne 0x300fc343
push edi
push 0x38706a76
call fcn.3010aa60
mov eax, 0x80004005
jmp 0x300fc5ad
push esi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.300fa721
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30002304
call fcn.30125676
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebx]
call fcn.30125676
mov ecx, eax
lea edx, [ebp - 0x20c]
sub ecx, edx
sar ecx, 1
sub esi, ecx
push esi
push eax
push 0x30003cf8
call fcn.30125676
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push 0x100
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call fcn.3012b1b5
cmp eax, edi
mov dword [ebp - 0x21c], eax
jne 0x300fc3fa
push edi
push 0x38706a77
call fcn.3010aa60
mov eax, 0x80004005
jmp 0x300fc5ac
mov ecx, ebx
jmp 0x300fc503
cmp esi, edi
jl 0x300fc529
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x300fc41a
mov al, byte [eax]
cmp al, 1
je 0x300fc529
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov esi, eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
mov dword [ebp - 0x214], edi
jge 0x300fc456
push edi
push 0x38706a78
call fcn.3010aa60
jmp 0x300fc4e3
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0x210]
lea ebx, [ecx + eax*2]
cmp ecx, ebx
mov esi, ecx
jae 0x300fc4e3
cmp word [esi], 0xa
jne 0x300fc4c5
cmp ecx, esi
mov dword [ebp - 0x220], edi
je 0x300fc4a3
push edi
lea eax, [ebp - 0x220]
push eax
mov eax, esi
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300fc4cd
push edi
lea eax, [ebp - 0x220]
push eax
push 4
push 0x30003cf0
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x300fc4d4
lea ecx, [esi + 2]
inc esi
inc esi
cmp esi, ebx
jb 0x300fc471
jmp 0x300fc4e3
push 0x326b656c
jmp 0x300fc4d9
push 0x326b656d
push 0x30003cc4
call fcn.300f2d34
cmp dword [ebp - 0x210], edi
je 0x300fc4fd
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x210], edi
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0xffffffffffffffff
call fcn.300fc2cf
cmp dword [ebp - 0x218], 1
mov esi, eax
je 0x300fc401
cmp esi, 0x80041010
je 0x300fc542
call fcn.30113e44
test eax, eax
je 0x300fc545
cmp esi, 0x80041003
jne 0x300fc545
xor esi, esi
inc esi
cmp esi, edi
jge 0x300fc554
push edi
push 0x38706a79
call fcn.3010aa60
cmp dword [ebp - 0x210], edi
je 0x300fc579
push edi
push 0x38706a7a
call fcn.3010aa60
push dword [ebp - 0x210]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x210], edi
cmp dword [ebp - 0x214], edi
je 0x300fc59e
push edi
push 0x38706b30
call fcn.3010aa60
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 4