Function at 0x40d360
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 dword [ebp - 0x2c], eax
mov eax, dword [0x43e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43f56c]
mov eax, dword [0x43f568]
mov edx, ecx
sub edx, 0x7c9ad2ae
sub edx, 1
add edx, 0x7c9ad2ae
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], 0xa568d8a
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
sub eax, 0x84db51ba
je 0x40d683
jmp 0x40d3cf
mov eax, dword [ebp - 0x30]
sub eax, 0x9d3b4b82
je 0x40d7ed
jmp 0x40d3e2
mov eax, dword [ebp - 0x30]
sub eax, 0xa069c30b
je 0x40d517
jmp 0x40d3f5
mov eax, dword [ebp - 0x30]
sub eax, 0xa7488ade
je 0x40d6d5
jmp 0x40d408
mov eax, dword [ebp - 0x30]
sub eax, 0xa7757527
je 0x40d629
jmp 0x40d41b
mov eax, dword [ebp - 0x30]
sub eax, 0xc8c5c041
je 0x40d84d
jmp 0x40d42e
mov eax, dword [ebp - 0x30]
sub eax, 0xfdab91ec
je 0x40d7f9
jmp 0x40d441
mov eax, dword [ebp - 0x30]
sub eax, 0x4880800
je 0x40d805
jmp 0x40d454
mov eax, dword [ebp - 0x30]
sub eax, 0xa568d8a
je 0x40d4f1
jmp 0x40d467
mov eax, dword [ebp - 0x30]
sub eax, 0x1fa8b509
je 0x40d5b6
jmp 0x40d47a
mov eax, dword [ebp - 0x30]
sub eax, 0x4aec6849
je 0x40d817
jmp 0x40d48d
mov eax, dword [ebp - 0x30]
sub eax, 0x59bdb8ef
je 0x40d740
jmp 0x40d4a0
mov eax, dword [ebp - 0x30]
sub eax, 0x5a173eb6
je 0x40d677
jmp 0x40d4b3
mov eax, dword [ebp - 0x30]
sub eax, 0x5c13720d
je 0x40d6c1
jmp 0x40d4c6
mov eax, dword [ebp - 0x30]
sub eax, 0x5edcfafb
je 0x40d839
jmp 0x40d4d9
mov eax, dword [ebp - 0x30]
sub eax, 0x5f20d04b
je 0x40d5aa
jmp 0x40d4ec
jmp 0x40d885
mov al, byte [ebp - 0x22]
mov cl, byte [ebp - 0x21]
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x4aec6849
mov ecx, 0xa069c30b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
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 dword [ebp - 0x18], 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 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, 0x4aec6849
mov ecx, 0x5f20d04b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov dword [ebp - 0x28], 0x1fa8b509
jmp 0x40d885
mov ecx, dword [0x43f56c]
mov eax, dword [0x43f568]
mov edx, ecx
add edx, 0x484b5610
sub edx, 1
sub edx, 0x484b5610
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, 0x5edcfafb
mov ecx, 0xa7757527
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
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, 0x5edcfafb
mov ecx, 0x5a173eb6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov dword [ebp - 0x28], 0x84db51ba
jmp 0x40d885
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
xor edx, 0xffffffff
mov ecx, 0xffffffff
xor ecx, 2
mov eax, 0xffffffff
xor eax, 0x8a7c44c0
or edx, ecx
or eax, 0x8a7c44c0
xor edx, 0xffffffff
and edx, eax
mov eax, 0x4880800
mov ecx, 0x5c13720d
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0xa7488ade
jmp 0x40d885
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 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, 0xc8c5c041
mov ecx, 0x59bdb8ef
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov ecx, dword [ebp - 0x14]
mov eax, ecx
xor eax, 0xffffffff
mov dword [ebp - 0x34], eax
mov esi, 0xffffffff
xor esi, 2
mov edx, 0xffffffff
xor edx, 0x66d80aca
and eax, 0x66d80aca
and ecx, edx
mov edi, esi
and edi, 0x66d80aca
mov ebx, edx
and ebx, 2
or eax, ecx
mov ecx, dword [ebp - 0x34]
or edi, ebx
xor eax, edi
or ecx, esi
xor ecx, 0xffffffff
or edx, 0x66d80aca
and ecx, edx
or eax, ecx
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x43f56c]
mov ecx, dword [0x43f568]
mov edx, eax
sub edx, 0xb8d628fe
sub edx, 1
add edx, 0xb8d628fe
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, 0xc8c5c041
mov ecx, 0x9d3b4b82
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x40d885
mov dword [ebp - 0x28], 0xfdab91ec
jmp 0x40d885
mov dword [ebp - 0x28], 0x4880800
jmp 0x40d885
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426b40
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, esp
mov dword [eax], ecx
mov eax, dword [eax]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x28], 0xa069c30b
jmp 0x40d885
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [ebp - 0x28], 0xa7757527
jmp 0x40d885
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
sub esp, 8
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x28], 0x59bdb8ef
jmp 0x40d3b9