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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43f080]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x44056c]
mov eax, dword [0x440568]
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 - 0x22], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x21], al
mov dword [ebp - 0x28], 0x61aa2e6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
sub eax, 0x89c01041
je 0x40e402
jmp 0x40e125
mov eax, dword [ebp - 0x30]
sub eax, 0xab4fa4de
je 0x40e441
jmp 0x40e138
mov eax, dword [ebp - 0x30]
sub eax, 0xac6d9618
je 0x40e3ae
jmp 0x40e14b
mov eax, dword [ebp - 0x30]
sub eax, 0xc68f7a72
je 0x40e3e0
jmp 0x40e15e
mov eax, dword [ebp - 0x30]
sub eax, 0xcc18f353
je 0x40e234
jmp 0x40e171
mov eax, dword [ebp - 0x30]
sub eax, 0xd3921be3
je 0x40e393
jmp 0x40e184
mov eax, dword [ebp - 0x30]
sub eax, 0xde776a80
je 0x40e308
jmp 0x40e197
mov eax, dword [ebp - 0x30]
sub eax, 0x61aa2e6
je 0x40e20e
jmp 0x40e1aa
mov eax, dword [ebp - 0x30]
sub eax, 0x6cda53e
je 0x40e2ae
jmp 0x40e1bd
mov eax, dword [ebp - 0x30]
sub eax, 0x40b2f735
je 0x40e412
jmp 0x40e1d0
mov eax, dword [ebp - 0x30]
sub eax, 0x4a434fb7
je 0x40e3cc
jmp 0x40e1e3
mov eax, dword [ebp - 0x30]
sub eax, 0x5a440a60
je 0x40e387
jmp 0x40e1f6
mov eax, dword [ebp - 0x30]
sub eax, 0x6be82051
je 0x40e2ba
jmp 0x40e209
jmp 0x40e44e
mov al, byte [ebp - 0x22]
mov cl, byte [ebp - 0x21]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x40b2f735
mov ecx, 0xcc18f353
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40e44e
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, esp
mov dword [ebp - 0x20], eax
push eax
mov eax, esp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
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 - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [0x44056c]
mov ecx, dword [0x440568]
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, 0x40b2f735
mov ecx, 0x6cda53e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40e44e
mov dword [ebp - 0x28], 0x6be82051
jmp 0x40e44e
mov eax, dword [0x44056c]
mov ecx, dword [0x440568]
mov edx, eax
add edx, 0xc02f16e4
sub edx, 1
sub edx, 0xc02f16e4
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, 0xab4fa4de
mov ecx, 0xde776a80
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40e44e
mov eax, dword [ebp - 0x18]
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 2
mov ecx, 0xffffffff
xor ecx, 0x488e2119
or eax, edx
or ecx, 0x488e2119
xor eax, 0xffffffff
and eax, ecx
cmp eax, 0
sete al
and al, 1
mov byte [ebp - 0x11], al
mov eax, dword [0x44056c]
mov ecx, dword [0x440568]
mov edx, eax
add edx, 0x84a92319
sub edx, 1
sub edx, 0x84a92319
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, 0xab4fa4de
mov ecx, 0x5a440a60
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40e44e
mov dword [ebp - 0x28], 0xd3921be3
jmp 0x40e44e
mov dl, byte [ebp - 0x11]
mov eax, 0x89c01041
mov ecx, 0xac6d9618
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40e44e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0x4a434fb7
jmp 0x40e44e
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0xc68f7a72
jmp 0x40e44e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x28], 0x89c01041
jmp 0x40e44e
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00427fe0
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, esp
push eax
mov edx, esp
mov dword [ebp - 0x34], 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 - 0x34]
mov dword [eax], ecx
mov dword [ebp - 0x28], 0xcc18f353
jmp 0x40e44e
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], 0xde776a80
jmp 0x40e10f