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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41c80b
push eax
mov eax, 0x1998
mov dword fs:[0], esp
call fcn.00409a40
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.004068d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.00416143
mov eax, dword [0x42812c]
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.00406910
test eax, eax
jne 0x403a0f
mov esi, dword [esp + 0x19b8]
push 0x4281bc
mov ecx, esi
call fcn.00415d7a
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x403c8c
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.00409be0
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.00414ac0
add esp, 0xc
lea ecx, [esp + 0x19c0]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415a81
push 0x4244cc
push 0x424218
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b8], 5
call fcn.00414c63
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.004093b0
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.00406b40
cmp eax, 0x38
jne 0x403be9
mov eax, dword [esp + 0x19c0]
lea ecx, [esp + 0x1d0]
mov esi, dword [eax - 8]
push esi
push eax
call fcn.00406b40
cmp eax, esi
jne 0x403be9
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.00406ab0
cmp eax, 0x65
jne 0x403be9
cmp byte [esp + 0x64], 0x64
jne 0x403be9
lea eax, [esp + 0x65]
push eax
call fcn.00409bca
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x403be9
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.00416255
test eax, eax
jne 0x403c03
mov esi, dword [esp + 0x19b8]
push 0x4281bc
mov ecx, esi
call fcn.00415d7a
mov ebx, 1
jmp 0x403c77
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x11d8]
push 0x7d0
push ecx
lea ecx, [esp + 0x1d8]
call fcn.00406ab0
mov esi, eax
mov ebx, 1
test esi, esi
je 0x403c49
lea edx, [esp + 0x11d8]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.004163ac
add ebp, esi
cmp ebp, edi
jl 0x403c07
jne 0x403c49
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
call fcn.00416470
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x403c61
push 0x4281bc
jmp 0x403c69
lea eax, [esp + 0xcc]
push eax
mov esi, dword [esp + 0x19bc]
mov ecx, esi
call fcn.00415d7a
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x19b0], 4
call fcn.00415d0c
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.00416198
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x19b0], 2
call fcn.004068e0
lea ecx, [esp + 0x19bc]
mov byte [esp + 0x19b0], bl
call fcn.00415d0c
lea ecx, [esp + 0x19c0]
mov byte [esp + 0x19b0], 0
call fcn.00415d0c
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