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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x43a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43b59c]
mov eax, dword [0x43b598]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x26], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x25], al
mov dword [ebp - 0x2c], 0x733f524e
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
sub eax, 0x8b9a5dfd
je 0x40a8e2
jmp 0x40a6d7
mov eax, dword [ebp - 0x34]
sub eax, 0x90c82408
je 0x40a93b
jmp 0x40a6ea
mov eax, dword [ebp - 0x34]
sub eax, 0xc17ddefa
je 0x40aa2a
jmp 0x40a6fd
mov eax, dword [ebp - 0x34]
sub eax, 0xc398ed14
je 0x40aa18
jmp 0x40a710
mov eax, dword [ebp - 0x34]
sub eax, 0xd0e58135
je 0x40a7e6
jmp 0x40a723
mov eax, dword [ebp - 0x34]
sub eax, 0xd934c2b7
je 0x40aa0c
jmp 0x40a736
mov eax, dword [ebp - 0x34]
sub eax, 0xddbe178c
je 0x40a8ce
jmp 0x40a749
mov eax, dword [ebp - 0x34]
sub eax, 0xf7c14ded
je 0x40a8a5
jmp 0x40a75c
mov eax, dword [ebp - 0x34]
sub eax, 0x217b9d1f
je 0x40a85f
jmp 0x40a76f
mov eax, dword [ebp - 0x34]
sub eax, 0x447f3b88
je 0x40a9a6
jmp 0x40a782
mov eax, dword [ebp - 0x34]
sub eax, 0x5fb7d081
je 0x40a86b
jmp 0x40a795
mov eax, dword [ebp - 0x34]
sub eax, 0x733f524e
je 0x40a7c0
jmp 0x40a7a8
mov eax, dword [ebp - 0x34]
sub eax, 0x79dc85db
je 0x40aa36
jmp 0x40a7bb
jmp 0x40aa55
mov al, byte [ebp - 0x26]
mov cl, byte [ebp - 0x25]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xc17ddefa
mov ecx, 0xd0e58135
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x40aa55
push eax
mov eax, esp
mov dword [ebp - 0x24], eax
mov ecx, dword [0x43b59c]
mov eax, dword [0x43b598]
mov edx, ecx
add edx, 0xebbd84
sub edx, 1
sub edx, 0xebbd84
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, 0xc17ddefa
mov ecx, 0x217b9d1f
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x40aa55
mov dword [ebp - 0x2c], 0x5fb7d081
jmp 0x40aa55
mov ecx, dword [ebp - 0x30]
push eax
mov eax, esp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xf7c14ded
jmp 0x40aa55
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffffffff
xor ecx, 2
mov edx, eax
xor edx, ecx
and edx, eax
mov eax, 0xc398ed14
mov ecx, 0xddbe178c
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x40aa55
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0x8b9a5dfd
jmp 0x40aa55
mov ecx, dword [ebp - 0x18]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x38], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0xad98de59
and eax, 0xad98de59
and ecx, edx
mov edi, esi
and edi, 0xad98de59
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x38]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0xad98de59
and ecx, edx
or eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 0x90c82408
jmp 0x40aa55
mov ecx, dword [0x43b59c]
mov eax, dword [0x43b598]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
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, 0x79dc85db
mov ecx, 0x447f3b88
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x40aa55
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x43b59c]
mov ecx, dword [0x43b598]
mov edx, eax
sub edx, 0x8d0a00bd
sub edx, 1
add edx, 0x8d0a00bd
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, 0x79dc85db
mov ecx, 0xd934c2b7
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x40aa55
mov dword [ebp - 0x2c], 0xc398ed14
jmp 0x40aa55
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423ec0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0xd0e58135
jmp 0x40aa55
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x14]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x2c], 0x447f3b88
jmp 0x40a6c1