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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41c84b
push eax
mov eax, 0x1998
mov dword fs:[0], esp
call fcn.004099f0
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 + 0x19b8], 2
call fcn.004068b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.00416185
mov eax, dword [0x4280fc]
xor ecx, ecx
push 0xa
mov byte [esp + 0x19b4], 4
mov cx, word [eax + 6]
mov edx, dword [eax + 2]
push ecx
push edx
lea ecx, [esp + 0x1dc]
call fcn.004068f0
test eax, eax
jne 0x4039ef
mov esi, dword [esp + 0x19b8]
push 0x42818c
mov ecx, esi
call fcn.00415daa
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x403c6c
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.00409b90
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.00414af0
add esp, 0xc
lea ecx, [esp + 0x19c0]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415ab1
push 0x4244a4
push 0x424200
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b8], 5
call fcn.00414c93
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 + 0x19c0]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00409360
mov eax, dword [esp + 0x19cc]
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.00406b20
cmp eax, 0x38
jne 0x403bc9
mov eax, dword [esp + 0x19c0]
lea ecx, [esp + 0x1d0]
mov esi, dword [eax - 8]
push esi
push eax
call fcn.00406b20
cmp eax, esi
jne 0x403bc9
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.00406a90
cmp eax, 0x65
jne 0x403bc9
cmp byte [esp + 0x64], 0x64
jne 0x403bc9
lea eax, [esp + 0x65]
push eax
call fcn.00409b7a
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x403bc9
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.00416297
test eax, eax
jne 0x403be3
mov esi, dword [esp + 0x19b8]
push 0x42818c
mov ecx, esi
call fcn.00415daa
mov ebx, 1
jmp 0x403c57
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x11d8]
push 0x7d0
push ecx
lea ecx, [esp + 0x1d8]
call fcn.00406a90
mov esi, eax
mov ebx, 1
test esi, esi
je 0x403c29
lea edx, [esp + 0x11d8]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.004163ee
add ebp, esi
cmp ebp, edi
jl 0x403be7
jne 0x403c29
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
call fcn.004164b2
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x403c41
push 0x42818c
jmp 0x403c49
lea eax, [esp + 0xcc]
push eax
mov esi, dword [esp + 0x19bc]
mov ecx, esi
call fcn.00415daa
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x19b0], 4
call fcn.00415d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.004161da
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x19b0], 2
call fcn.004068c0
lea ecx, [esp + 0x19bc]
mov byte [esp + 0x19b0], bl
call fcn.00415d3c
lea ecx, [esp + 0x19c0]
mov byte [esp + 0x19b0], 0
call fcn.00415d3c
mov ecx, dword [esp + 0x19a8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x19a4
ret