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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41c88b
push eax
mov eax, 0x1998
mov dword fs:[0], esp
call fcn.00409ac0
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.00406940
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.004161c3
mov eax, dword [0x42819c]
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.00406980
test eax, eax
jne 0x403a2f
mov esi, dword [esp + 0x19b8]
push 0x42822c
mov ecx, esi
call fcn.00415dfa
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x403cac
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.00409c60
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.00414b40
add esp, 0xc
lea ecx, [esp + 0x19c0]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415b01
push 0x4244dc
push 0x424228
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b8], 5
call fcn.00414ce3
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.00409430
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.00406bb0
cmp eax, 0x38
jne 0x403c09
mov eax, dword [esp + 0x19c0]
lea ecx, [esp + 0x1d0]
mov esi, dword [eax - 8]
push esi
push eax
call fcn.00406bb0
cmp eax, esi
jne 0x403c09
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.00406b20
cmp eax, 0x65
jne 0x403c09
cmp byte [esp + 0x64], 0x64
jne 0x403c09
lea eax, [esp + 0x65]
push eax
call fcn.00409c4a
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x403c09
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.004162d5
test eax, eax
jne 0x403c23
mov esi, dword [esp + 0x19b8]
push 0x42822c
mov ecx, esi
call fcn.00415dfa
mov ebx, 1
jmp 0x403c97
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x11d8]
push 0x7d0
push ecx
lea ecx, [esp + 0x1d8]
call fcn.00406b20
mov esi, eax
mov ebx, 1
test esi, esi
je 0x403c69
lea edx, [esp + 0x11d8]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.0041642c
add ebp, esi
cmp ebp, edi
jl 0x403c27
jne 0x403c69
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
call fcn.004164f0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x403c81
push 0x42822c
jmp 0x403c89
lea eax, [esp + 0xcc]
push eax
mov esi, dword [esp + 0x19bc]
mov ecx, esi
call fcn.00415dfa
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x19b0], 4
call fcn.00415d8c
lea ecx, [esp + 0x18]
mov byte [esp + 0x19b0], 3
call fcn.00416218
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x19b0], 2
call fcn.00406950
lea ecx, [esp + 0x19bc]
mov byte [esp + 0x19b0], bl
call fcn.00415d8c
lea ecx, [esp + 0x19c0]
mov byte [esp + 0x19b0], 0
call fcn.00415d8c
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