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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0xe3790163
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
sub eax, 0x9867883d
je 0x407feb
jmp 0x407e69
mov eax, dword [ebp - 0x20]
sub eax, 0xa37043d9
je 0x407fc9
jmp 0x407e7c
mov eax, dword [ebp - 0x20]
sub eax, 0xcd99fc52
je 0x4080e5
jmp 0x407e8f
mov eax, dword [ebp - 0x20]
sub eax, 0xe3790163
je 0x407f06
jmp 0x407ea2
mov eax, dword [ebp - 0x20]
sub eax, 0xd7bb9c
je 0x407f55
jmp 0x407eb5
mov eax, dword [ebp - 0x20]
sub eax, 0x70e425a
je 0x4080dd
jmp 0x407ec8
mov eax, dword [ebp - 0x20]
sub eax, 0x2b643135
je 0x40805e
jmp 0x407edb
mov eax, dword [ebp - 0x20]
sub eax, 0x2fbca70c
je 0x407f70
jmp 0x407eee
mov eax, dword [ebp - 0x20]
sub eax, 0x79f1ad12
je 0x4080d1
jmp 0x407f01
jmp 0x4080ec
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 2
mov ecx, 0xffffffff
xor ecx, 0xfd69c9d5
or eax, edx
or ecx, 0xfd69c9d5
xor eax, 0xffffffff
and eax, ecx
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0x11], al
mov dword [ebp - 0x1c], 0xd7bb9c
jmp 0x4080ec
mov dl, byte [ebp - 0x11]
mov eax, 0x70e425a
mov ecx, 0x2fbca70c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4080ec
mov ecx, dword [ebp - 0x18]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x3c42efd4
and eax, 0x3c42efd4
and ecx, edx
mov edi, esi
and edi, 0x3c42efd4
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x24]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x3c42efd4
and ecx, edx
or eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xa37043d9
jmp 0x4080ec
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x1c], 0x9867883d
jmp 0x4080ec
mov ecx, dword [0x439564]
mov eax, dword [0x439560]
mov edx, ecx
sub edx, 0x53afb0bf
sub edx, 1
add edx, 0x53afb0bf
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, 0xcd99fc52
mov ecx, 0x2b643135
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4080ec
mov ecx, dword [0x439564]
mov eax, dword [0x439560]
mov edx, ecx
add edx, 0x182c8e6a
sub edx, 1
sub edx, 0x182c8e6a
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xcd99fc52
mov ecx, 0x79f1ad12
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4080ec
mov dword [ebp - 0x1c], 0x70e425a
jmp 0x4080ec
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x2b643135
jmp 0x407e53