Function at 0x40f3a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43146b
push eax
mov eax, 0x199c
mov dword fs:[0], esp
call fcn.0041c1e0
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x14], ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x19bc], 2
call fcn.00416d40
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b4], 3
call fcn.00428e50
mov eax, dword [0x4413dc]
xor ecx, ecx
push 0xa
mov byte [esp + 0x19b8], 4
mov cx, word [eax + 6]
mov edx, dword [eax + 2]
push ecx
push edx
lea ecx, [esp + 0x1dc]
call fcn.00416d90
test eax, eax
jne 0x40f43f
mov esi, dword [esp + 0x19bc]
push 0x441314
mov ecx, esi
call fcn.00428960
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x40f6bc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xcc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0xd0]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xcc]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.tmp_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd4]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xd4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041c9cd
add esp, 0xc
lea ecx, [esp + 0x19c4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00428667
push 0x43b17c
push 0x43b1ec
lea ecx, [esp + 0x18]
mov byte [esp + 0x19bc], 5
call fcn.004274d9
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xcc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xe
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, str.GETFILE
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1e
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x19c4]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0041bf00
mov eax, dword [esp + 0x19d0]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov eax, dword [eax - 8]
push 0x38
push ecx
lea ecx, [esp + 0x1d8]
mov dword [esp + 0x68], eax
call fcn.00416ff0
cmp eax, 0x38
jne 0x40f619
mov eax, dword [esp + 0x19c4]
lea ecx, [esp + 0x1d0]
mov esi, dword [eax - 8]
push esi
push eax
call fcn.00416ff0
cmp eax, esi
jne 0x40f619
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x64]
rep stosd dword es:[edi], eax
push 0x65
push edx
lea ecx, [esp + 0x1d8]
stosb byte es:[edi], al
call fcn.00416f60
cmp eax, 0x65
jne 0x40f619
cmp byte [esp + 0x64], 0x64
jne 0x40f619
lea eax, [esp + 0x65]
push eax
call fcn.0041c36a
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40f619
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0xcc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
lea eax, [esp + 0xd0]
push 0x1041
push eax
lea ecx, [esp + 0x24]
call fcn.00428f62
test eax, eax
jne 0x40f633
mov esi, dword [esp + 0x19bc]
push 0x441314
mov ecx, esi
call fcn.00428960
mov ebx, 1
jmp 0x40f6a7
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x11dc]
push 0x7d0
push ecx
lea ecx, [esp + 0x1d8]
call fcn.00416f60
mov esi, eax
mov ebx, 1
test esi, esi
je 0x40f679
lea edx, [esp + 0x11dc]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.004290b9
add ebp, esi
cmp ebp, edi
jl 0x40f637
jne 0x40f679
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
call fcn.0042917d
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40f691
push 0x441314
jmp 0x40f699
lea eax, [esp + 0xcc]
push eax
mov esi, dword [esp + 0x19c0]
mov ecx, esi
call fcn.00428960
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x19b4], 4
call fcn.004288f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b4], 3
call fcn.00428ea5
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x19b4], 2
call fcn.00416d60
lea ecx, [esp + 0x19c0]
mov byte [esp + 0x19b4], bl
call fcn.004288f2
lea ecx, [esp + 0x19c4]
mov byte [esp + 0x19b4], 0
call fcn.004288f2
mov ecx, dword [esp + 0x19ac]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x19a8
ret