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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0x89a71fd8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
sub eax, 0x81d3cac5
je 0x40d6b8
jmp 0x40d3bf
mov eax, dword [ebp - 0x28]
sub eax, 0x89a71fd8
je 0x40d495
jmp 0x40d3d2
mov eax, dword [ebp - 0x28]
sub eax, 0xaced1dc1
je 0x40d550
jmp 0x40d3e5
mov eax, dword [ebp - 0x28]
sub eax, 0xb045a154
je 0x40d59e
jmp 0x40d3f8
mov eax, dword [ebp - 0x28]
sub eax, 0xbd49ed5a
je 0x40d645
jmp 0x40d40b
mov eax, dword [ebp - 0x28]
sub eax, 0xe8d91df7
je 0x40d617
jmp 0x40d41e
mov eax, dword [ebp - 0x28]
sub eax, 0xfc5fcf84
je 0x40d623
jmp 0x40d431
mov eax, dword [ebp - 0x28]
sub eax, 0xfc643b3c
je 0x40d4dc
jmp 0x40d444
mov eax, dword [ebp - 0x28]
sub eax, 0xbd786b9
je 0x40d733
jmp 0x40d457
mov eax, dword [ebp - 0x28]
sub eax, 0x33f386da
je 0x40d73f
jmp 0x40d46a
mov eax, dword [ebp - 0x28]
sub eax, 0x48864857
je 0x40d4f7
jmp 0x40d47d
mov eax, dword [ebp - 0x28]
sub eax, 0x6899b3f0
je 0x40d72b
jmp 0x40d490
jmp 0x40d746
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 2
mov ecx, 0xffffffff
xor ecx, 0x692a55a4
or eax, edx
or ecx, 0x692a55a4
xor eax, 0xffffffff
and eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0xfc643b3c
jmp 0x40d746
mov edx, dword [ebp - 0x18]
mov eax, 0xbd49ed5a
mov ecx, 0x48864857
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40d746
mov ecx, dword [ebp - 0x20]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x2c], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x1dc11ac7
and eax, 0x1dc11ac7
and ecx, edx
mov edi, esi
and edi, 0x1dc11ac7
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x2c]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x1dc11ac7
and ecx, edx
or eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xaced1dc1
jmp 0x40d746
mov eax, dword [0x43e57c]
mov ecx, dword [0x43e578]
mov edx, eax
add edx, 0x58d59517
sub edx, 1
sub edx, 0x58d59517
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, 0xbd786b9
mov ecx, 0xb045a154
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40d746
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43e57c]
mov eax, dword [0x43e578]
mov edx, ecx
sub edx, 0x42b46197
sub edx, 1
add edx, 0x42b46197
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, 0xbd786b9
mov ecx, 0xe8d91df7
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40d746
mov dword [ebp - 0x24], 0xfc5fcf84
jmp 0x40d746
mov eax, dword [ebp - 0x14]
mov ecx, 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 - 0x24], 0xbd49ed5a
jmp 0x40d746
mov ecx, dword [0x43e57c]
mov eax, dword [0x43e578]
mov edx, ecx
add edx, 0xe6d5e34e
sub edx, 1
sub edx, 0xe6d5e34e
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, 0x33f386da
mov ecx, 0x81d3cac5
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40d746
mov ecx, dword [0x43e57c]
mov eax, dword [0x43e578]
mov edx, ecx
sub edx, 0x9763ac38
sub edx, 1
add edx, 0x9763ac38
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, 0x33f386da
mov ecx, 0x6899b3f0
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x24], eax
jmp 0x40d746
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x24], 0xb045a154
jmp 0x40d746
mov dword [ebp - 0x24], 0x81d3cac5
jmp 0x40d3a9