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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 0x18], 0x8008000d
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x1025a70
cmp word [eax], cx
je 0x1025a70
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebx + 0x14]
push esi
push edi
push 7
add eax, 0x78
pop ecx
lea esi, [ebx + 0x3e4]
lea edi, [ebp - 0x48]
push eax
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
call fcn.01011bcc
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1025464
mov dword [ebp - 0x18], 0x8008000e
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a68
test byte [eax + 0x1c], 1
je 0x1025a68
push dword [ebp - 4]
push 0x10043cc
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1025a68
mov edi, dword [ebp - 4]
push edi
mov esi, eax
push 0
push esi
call sub.msvcrt.dll_memset
lea eax, [edi + esi]
lea ecx, [esi + 0x78]
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp ecx, eax
ja 0x1025487
cmp edi, 0x78
jae 0x10254ab
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10254ab
test byte [eax + 0x1c], 1
je 0x10254ab
push 0x10043cc
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov edx, dword [ebp - 0x10]
push 0x1e
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x78]
mov dword [ebp - 0xc], 0x78
test esi, esi
je 0x1025a3b
cmp esi, edx
jl 0x1025a3b
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x1025a3b
cmp eax, dword [ebp - 4]
ja 0x1025a3b
cmp dword [ebp - 0x48], 0
jbe 0x1025514
and dword [esi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x24], esi
add esi, eax
mov dword [ebp - 0xc], 0x80
test esi, esi
je 0x1025a20
cmp esi, edx
jl 0x1025a20
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x1025a20
cmp eax, dword [ebp - 4]
ja 0x1025a20
cmp dword [ebp - 0x30], 0
jbe 0x1025564
mov dword [esi], 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x1c], esi
add esi, eax
add dword [ebp - 0xc], 8
test esi, esi
je 0x1025a05
cmp esi, edx
jl 0x1025a05
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
lea edx, [eax + esi]
cmp edx, dword [ebp - 0x14]
ja 0x1025a05
cmp eax, dword [ebp - 4]
ja 0x1025a05
cmp dword [ebp - 0x3c], 0
jbe 0x10255b4
mov dword [esi], 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x20], esi
add esi, eax
add dword [ebp - 0xc], 8
mov dword [ebp - 0x28], 0x98
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
push dword [eax + ecx]
mov ecx, ebx
call fcn.01024d04
mov ecx, ebx
jmp 0x1025748
mov ecx, dword [edi]
lea eax, [ebp + ecx*4 - 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x1025617
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x102573a
test byte [eax + 0x1c], 2
je 0x102573a
push dword [edi + 4]
push 0x10043cc
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x102573a
mov eax, ecx
sub eax, 0
je 0x10256ec
sub eax, 3
je 0x10256af
dec eax
dec eax
je 0x1025677
dec eax
jne 0x10257bc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10257e3
cmp eax, dword [ebp - 0x10]
jl 0x10257e3
mov ecx, dword [ebp - 0x30]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10257e3
cmp ecx, dword [ebp - 4]
ja 0x10257e3
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push edi
call fcn.01024e58
add dword [ebp - 0x1c], 0x10
jmp 0x1025728
test esi, esi
je 0x1025809
cmp esi, dword [ebp - 0x10]
jl 0x1025809
mov eax, dword [ebp - 0x34]
lea ecx, [eax + esi]
cmp ecx, dword [ebp - 0x14]
ja 0x1025809
cmp eax, dword [ebp - 4]
ja 0x1025809
mov ecx, dword [ebp - 8]
push eax
push esi
push edi
call fcn.01025025
add esi, eax
jmp 0x1025728
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x102582f
cmp eax, dword [ebp - 0x10]
jl 0x102582f
mov ecx, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x102582f
cmp ecx, dword [ebp - 4]
ja 0x102582f
push ecx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
push edi
call fcn.01024efb
add dword [ebp - 0x20], eax
jmp 0x1025728
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1025889
cmp eax, dword [ebp - 0x10]
jl 0x1025889
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x1025889
cmp ecx, dword [ebp - 4]
ja 0x1025889
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push edi
call fcn.01024d80
add dword [ebp - 0x24], 0xc
test eax, eax
je 0x1025855
mov ecx, dword [ebp - 0x2c]
sub ebx, eax
add dword [ebp - 0xc], eax
mov dword [ecx], ebx
push dword [edi + 8]
mov ecx, dword [ebp - 8]
call fcn.01024d04
mov ecx, dword [ebp - 8]
push 0x10
mov edi, eax
push edi
call fcn.01024d4d
test eax, eax
jne 0x10255d4
add dword [ebp - 0x28], 4
cmp dword [ebp - 0x28], 0x3e4
jl 0x10255bb
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jne 0x10259db
mov esi, dword [ebp - 0x10]
push edi
push esi
call fcn.01015643
mov dword [esi + 0xc], eax
mov eax, dword [0x1035014]
mov ebx, 0x1035014
cmp eax, ebx
je 0x10258af
test byte [eax + 0x1c], 4
je 0x10258af
push edi
push dword [ebp + 8]
mov edi, 0x10043cc
push edi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004f4d
jmp 0x10258b4
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push ecx
push 0x10043cc
push 0x16
jmp 0x1025879
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0x13
jmp 0x1025a54
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0x15
jmp 0x1025a54
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0x14
jmp 0x1025a54
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push dword [edi + 4]
push 0x10043cc
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1025a5f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0x12
jmp 0x1025a54
mov edi, 0x10043cc
xor esi, esi
push esi
push 0x80
push 2
push 1
call fcn.01014c87
push eax
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x102599d
push 0x2080
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1025913
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x1025913
test byte [eax + 0x1c], 2
je 0x1025913
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1025956
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 4]
je 0x102598c
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x102598f
test byte [eax + 0x1c], 1
je 0x102598f
push ecx
push dword [ebp - 4]
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bd5c
jmp 0x102598f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x102597c
test byte [eax + 0x1c], 1
je 0x102597c
push esi
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
test esi, esi
jle 0x102598c
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1025a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1035014]
cmp eax, ebx
je 0x10259c3
test byte [eax + 0x1c], 1
je 0x10259c3
push esi
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
test esi, esi
jle 0x10259d3
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
jmp 0x1025a5f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push dword [ebp - 0xc]
push edi
push 0x10043cc
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bd5c
jmp 0x1025a5f
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0x10
jmp 0x1025a54
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0xf
jmp 0x1025a54
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a5f
test byte [eax + 0x1c], 1
je 0x1025a5f
push 0x10043cc
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
push dword [ebp - 0x10]
call fcn.01011bdc
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
jmp 0x1025a99
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1025a94
test byte [eax + 0x1c], 1
je 0x1025a94
push 0x10043cc
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
mov eax, 0x80080057
leave
ret 4