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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43f56c]
mov eax, dword [0x43f568]
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 - 0x2a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x29], al
mov dword [ebp - 0x30], 0x5178a1e3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
sub eax, 0x8ca74ae0
je 0x40ec48
jmp 0x40ea77
mov eax, dword [ebp - 0x38]
sub eax, 0x8fba116b
je 0x40ed1b
jmp 0x40ea8a
mov eax, dword [ebp - 0x38]
sub eax, 0x9626e16a
je 0x40ec54
jmp 0x40ea9d
mov eax, dword [ebp - 0x38]
sub eax, 0x986edb3d
je 0x40ede5
jmp 0x40eab0
mov eax, dword [ebp - 0x38]
sub eax, 0xb48cc60e
je 0x40ed9d
jmp 0x40eac3
mov eax, dword [ebp - 0x38]
sub eax, 0xf23e7aec
je 0x40edb1
jmp 0x40ead6
mov eax, dword [ebp - 0x38]
sub eax, 0xfa2730ee
je 0x40edd3
jmp 0x40eae9
mov eax, dword [ebp - 0x38]
sub eax, 0xafd8e83
je 0x40ed27
jmp 0x40eafc
mov eax, dword [ebp - 0x38]
sub eax, 0x252677c5
je 0x40ee14
jmp 0x40eb0f
mov eax, dword [ebp - 0x38]
sub eax, 0x3631e34e
je 0x40ecc7
jmp 0x40eb22
mov eax, dword [ebp - 0x38]
sub eax, 0x47499b2a
je 0x40ebab
jmp 0x40eb35
mov eax, dword [ebp - 0x38]
sub eax, 0x5178a1e3
je 0x40eb60
jmp 0x40eb48
mov eax, dword [ebp - 0x38]
sub eax, 0x6eb50986
je 0x40ed42
jmp 0x40eb5b
jmp 0x40ee1e
mov bl, byte [ebp - 0x2a]
mov dh, byte [ebp - 0x29]
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, 0x986edb3d
mov ecx, 0x47499b2a
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40ee1e
mov ecx, dword [ebp - 0x34]
push eax
mov eax, esp
mov dword [ebp - 0x28], eax
push eax
mov eax, esp
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
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 - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 2
mov ecx, 0xffffffff
xor ecx, 0x4ea39cb3
or eax, edx
or ecx, 0x4ea39cb3
xor eax, 0xffffffff
and eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x43f56c]
mov ecx, dword [0x43f568]
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, 0x986edb3d
mov ecx, 0x8ca74ae0
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40ee1e
mov dword [ebp - 0x30], 0x9626e16a
jmp 0x40ee1e
mov ecx, dword [0x43f56c]
mov eax, dword [0x43f568]
mov edx, ecx
add edx, 0x12a65904
sub edx, 1
sub edx, 0x12a65904
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, 0x252677c5
mov ecx, 0x3631e34e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40ee1e
mov eax, dword [ebp - 0x20]
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0x19], al
mov eax, dword [0x43f56c]
mov ecx, dword [0x43f568]
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, 0x252677c5
mov ecx, 0x8fba116b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40ee1e
mov dword [ebp - 0x30], 0xafd8e83
jmp 0x40ee1e
mov dl, byte [ebp - 0x19]
mov eax, 0xfa2730ee
mov ecx, 0x6eb50986
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x30], eax
jmp 0x40ee1e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x3c], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x3bdb28ea
and eax, 0x3bdb28ea
and ecx, edx
mov edi, esi
and edi, 0x3bdb28ea
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x3c]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x3bdb28ea
and ecx, edx
or eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], 0xb48cc60e
jmp 0x40ee1e
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0xf23e7aec
jmp 0x40ee1e
mov eax, dword [ebp - 0x18]
mov ecx, 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 - 0x30], 0xfa2730ee
jmp 0x40ee1e
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004277e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x34]
push eax
mov eax, esp
push eax
mov edx, esp
mov dword [ebp - 0x40], edx
mov dword [eax], ecx
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 - 0x40]
mov dword [eax], ecx
mov dword [ebp - 0x30], 0x47499b2a
jmp 0x40ee1e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], 0x3631e34e
jmp 0x40ea61