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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x1199f3de
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
sub eax, 0x9b0a4199
je 0x40a837
jmp 0x40a59a
mov eax, dword [ebp - 0x24]
sub eax, 0xab5f1289
je 0x40a843
jmp 0x40a5ad
mov eax, dword [ebp - 0x24]
sub eax, 0xb7ecb539
je 0x40a849
jmp 0x40a5c0
mov eax, dword [ebp - 0x24]
sub eax, 0xcbcbfb54
je 0x40a785
jmp 0x40a5d3
mov eax, dword [ebp - 0x24]
sub eax, 0xd1cfb49f
je 0x40a7d3
jmp 0x40a5e6
mov eax, dword [ebp - 0x24]
sub eax, 0xf649064b
je 0x40a779
jmp 0x40a5f9
mov eax, dword [ebp - 0x24]
sub eax, 0x1199f3de
je 0x40a670
jmp 0x40a60c
mov eax, dword [ebp - 0x24]
sub eax, 0x2fc1f92c
je 0x40a6c3
jmp 0x40a61f
mov eax, dword [ebp - 0x24]
sub eax, 0x30b23f89
je 0x40a855
jmp 0x40a632
mov eax, dword [ebp - 0x24]
sub eax, 0x37b4c2af
je 0x40a694
jmp 0x40a645
mov eax, dword [ebp - 0x24]
sub eax, 0x4a138015
je 0x40a6df
jmp 0x40a658
mov eax, dword [ebp - 0x24]
sub eax, 0x571336d9
je 0x40a72d
jmp 0x40a66b
jmp 0x40a872
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x37b4c2af
jmp 0x40a872
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, 0xffffffff
xor ecx, 2
mov edx, eax
xor edx, ecx
and edx, eax
mov eax, 0xab5f1289
mov ecx, 0x2fc1f92c
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a872
mov ecx, dword [ebp - 0x18]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x4a138015
jmp 0x40a872
mov eax, dword [0x43753c]
mov ecx, dword [0x437538]
mov edx, eax
add edx, 0x7684c5a5
sub edx, 1
sub edx, 0x7684c5a5
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, 0xb7ecb539
mov ecx, 0x571336d9
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a872
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [0x43753c]
mov ecx, dword [0x437538]
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, 0xb7ecb539
mov ecx, 0xf649064b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a872
mov dword [ebp - 0x1c], 0xcbcbfb54
jmp 0x40a872
mov eax, dword [0x43753c]
mov ecx, dword [0x437538]
mov edx, eax
add edx, 0x6c333134
sub edx, 1
sub edx, 0x6c333134
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, 0x30b23f89
mov ecx, 0xd1cfb49f
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a872
mov eax, dword [ebp - 0xc]
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 eax, dword [0x43753c]
mov ecx, dword [0x437538]
mov edx, eax
sub edx, 0x134e9bb0
sub edx, 1
add edx, 0x134e9bb0
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, 0x30b23f89
mov ecx, 0x9b0a4199
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40a872
mov dword [ebp - 0x1c], 0xab5f1289
jmp 0x40a872
add esp, 0x28
pop esi
pop ebp
ret
mov dword [ebp - 0x1c], 0x571336d9
jmp 0x40a872
mov eax, dword [ebp - 0xc]
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], 0xd1cfb49f
jmp 0x40a584