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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x434080]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x365bc84a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
sub eax, 0xaea6bf8b
je 0x40aa31
jmp 0x40a775
mov eax, dword [ebp - 0x24]
sub eax, 0xb882bf77
je 0x40aa4e
jmp 0x40a788
mov eax, dword [ebp - 0x24]
sub eax, 0xc4034df8
je 0x40a85d
jmp 0x40a79b
mov eax, dword [ebp - 0x24]
sub eax, 0xc5a69f15
je 0x40a999
jmp 0x40a7ae
mov eax, dword [ebp - 0x24]
sub eax, 0xdde3e13d
je 0x40a8a4
jmp 0x40a7c1
mov eax, dword [ebp - 0x24]
sub eax, 0xee0222e3
je 0x40a8c2
jmp 0x40a7d4
mov eax, dword [ebp - 0x24]
sub eax, 0xf4e5cbdc
je 0x40aa3d
jmp 0x40a7e7
mov eax, dword [ebp - 0x24]
sub eax, 0x315630be
je 0x40a935
jmp 0x40a7fa
mov eax, dword [ebp - 0x24]
sub eax, 0x32383501
je 0x40aa70
jmp 0x40a80d
mov eax, dword [ebp - 0x24]
sub eax, 0x365bc84a
je 0x40a84b
jmp 0x40a820
mov eax, dword [ebp - 0x24]
sub eax, 0x7070a93c
je 0x40a9eb
jmp 0x40a833
mov eax, dword [ebp - 0x24]
sub eax, 0x798bbc52
je 0x40a9a5
jmp 0x40a846
jmp 0x40aa77
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0xc4034df8
jmp 0x40aa77
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, 0xffffffff
xor ecx, 2
mov edx, eax
xor edx, ecx
and edx, eax
mov eax, 0xf4e5cbdc
mov ecx, 0xdde3e13d
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40aa77
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xee0222e3
jmp 0x40aa77
mov ecx, dword [0x435564]
mov eax, dword [0x435560]
mov edx, ecx
add edx, 0xe9c184fb
sub edx, 1
sub edx, 0xe9c184fb
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xb882bf77
mov ecx, 0x315630be
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40aa77
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x435564]
mov ecx, dword [0x435560]
mov edx, eax
add edx, 0x1c6747d8
sub edx, 1
sub edx, 0x1c6747d8
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xb882bf77
mov ecx, 0xc5a69f15
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40aa77
mov dword [ebp - 0x1c], 0x798bbc52
jmp 0x40aa77
mov eax, dword [0x435564]
mov ecx, dword [0x435560]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x32383501
mov ecx, 0x7070a93c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40aa77
mov eax, dword [0x435564]
mov ecx, dword [0x435560]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x32383501
mov ecx, 0xaea6bf8b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40aa77
mov dword [ebp - 0x1c], 0xf4e5cbdc
jmp 0x40aa77
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041e350
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x1c], 0x315630be
jmp 0x40aa77
mov dword [ebp - 0x1c], 0x7070a93c
jmp 0x40a75f