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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x560938cb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
sub eax, 0xa64d19da
je 0x40a7ee
jmp 0x40a5bb
mov eax, dword [ebp - 0x20]
sub eax, 0xd5044556
je 0x40a706
jmp 0x40a5ce
mov eax, dword [ebp - 0x20]
sub eax, 0xde7307bf
je 0x40a6a6
jmp 0x40a5e1
mov eax, dword [ebp - 0x20]
sub eax, 0x135fc1f3
je 0x40a66a
jmp 0x40a5f4
mov eax, dword [ebp - 0x20]
sub eax, 0x19a076c7
je 0x40a7da
jmp 0x40a607
mov eax, dword [ebp - 0x20]
sub eax, 0x2c71ccfc
je 0x40a7e6
jmp 0x40a61a
mov eax, dword [ebp - 0x20]
sub eax, 0x34c7afd2
je 0x40a7ce
jmp 0x40a62d
mov eax, dword [ebp - 0x20]
sub eax, 0x53e532c7
je 0x40a6b8
jmp 0x40a640
mov eax, dword [ebp - 0x20]
sub eax, 0x560938cb
je 0x40a658
jmp 0x40a653
jmp 0x40a861
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x135fc1f3
jmp 0x40a861
mov edx, dword [ebp - 0x18]
xor edx, 0xffffffff
mov ecx, 0xffffffff
xor ecx, 2
mov eax, 0xffffffff
xor eax, 0xe60975fc
or edx, ecx
or eax, 0xe60975fc
xor edx, 0xffffffff
and edx, eax
mov eax, 0x2c71ccfc
mov ecx, 0xde7307bf
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a861
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x53e532c7
jmp 0x40a861
mov eax, dword [0x43b564]
mov ecx, dword [0x43b560]
mov edx, eax
add edx, 0x274f1680
sub edx, 1
sub edx, 0x274f1680
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, 0xa64d19da
mov ecx, 0xd5044556
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a861
mov ecx, dword [ebp - 0x10]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0xc8278fd9
and eax, 0xc8278fd9
and ecx, edx
mov edi, esi
and edi, 0xc8278fd9
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, 0xc8278fd9
and ecx, edx
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov ecx, dword [0x43b564]
mov eax, dword [0x43b560]
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, 0xa64d19da
mov ecx, 0x34c7afd2
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a861
mov dword [ebp - 0x1c], 0x19a076c7
jmp 0x40a861
mov dword [ebp - 0x1c], 0x2c71ccfc
jmp 0x40a861
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x2e9bd0a1
and eax, 0x2e9bd0a1
and ecx, edx
mov edi, esi
and edi, 0x2e9bd0a1
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x28]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x2e9bd0a1
and ecx, edx
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x1c], 0xd5044556
jmp 0x40a5a5