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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0x7f68947
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
sub eax, 0x89b5f19c
je 0x4086a1
jmp 0x40839e
mov eax, dword [ebp - 0x20]
sub eax, 0xa11d864e
je 0x408518
jmp 0x4083b1
mov eax, dword [ebp - 0x20]
sub eax, 0xc1c862e8
je 0x408776
jmp 0x4083c4
mov eax, dword [ebp - 0x20]
sub eax, 0xd9add37e
je 0x4086cf
jmp 0x4083d7
mov eax, dword [ebp - 0x20]
sub eax, 0xecbf5c58
je 0x40864b
jmp 0x4083ea
mov eax, dword [ebp - 0x20]
sub eax, 0xf1a3bad0
je 0x4085d8
jmp 0x4083fd
mov eax, dword [ebp - 0x20]
sub eax, 0xf521f42d
je 0x408794
jmp 0x408410
mov eax, dword [ebp - 0x20]
sub eax, 0x7f68947
je 0x4084ad
jmp 0x408423
mov eax, dword [ebp - 0x20]
sub eax, 0x1c6f4abd
je 0x4086ad
jmp 0x408436
mov eax, dword [ebp - 0x20]
sub eax, 0x1d9fcb38
je 0x4085a3
jmp 0x408449
mov eax, dword [ebp - 0x20]
sub eax, 0x2855919a
je 0x4085af
jmp 0x40845c
mov eax, dword [ebp - 0x20]
sub eax, 0x2e78376e
je 0x4087a0
jmp 0x40846f
mov eax, dword [ebp - 0x20]
sub eax, 0x3721e4d5
je 0x40876f
jmp 0x408482
mov eax, dword [ebp - 0x20]
sub eax, 0x46699075
je 0x40871d
jmp 0x408495
mov eax, dword [ebp - 0x20]
sub eax, 0x6a3e39d6
je 0x408763
jmp 0x4084a8
jmp 0x4087a7
mov ecx, dword [0x43254c]
mov eax, dword [0x432548]
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xc1c862e8
mov ecx, 0xa11d864e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43254c]
mov eax, dword [0x432548]
mov edx, ecx
sub edx, 0xa377e476
sub edx, 1
add edx, 0xa377e476
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, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xc1c862e8
mov ecx, 0x1d9fcb38
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov dword [ebp - 0x1c], 0x2855919a
jmp 0x4087a7
mov eax, dword [ebp - 0x10]
mov ecx, 0xffffffff
xor ecx, 2
mov edx, eax
xor edx, ecx
and edx, eax
mov eax, 0x3721e4d5
mov ecx, 0xf1a3bad0
cmp edx, 0
cmove eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov ecx, dword [0x43254c]
mov eax, dword [0x432548]
mov edx, ecx
sub edx, 0x1e7f73d3
sub edx, 1
add edx, 0x1e7f73d3
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, 0xf521f42d
mov ecx, 0xecbf5c58
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov ecx, dword [ebp - 0x18]
mov eax, ecx
and eax, 2
xor ecx, 2
or eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [0x43254c]
mov ecx, dword [0x432548]
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, 0xf521f42d
mov ecx, 0x89b5f19c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov dword [ebp - 0x1c], 0x1c6f4abd
jmp 0x4087a7
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub esp, 8
mov dword [ebp - 0x1c], 0xd9add37e
jmp 0x4087a7
mov eax, dword [0x43254c]
mov ecx, dword [0x432548]
mov edx, eax
add edx, 0x48da2b40
sub edx, 1
sub edx, 0x48da2b40
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, 0x2e78376e
mov ecx, 0x46699075
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov eax, dword [0x43254c]
mov ecx, dword [0x432548]
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, 0x2e78376e
mov ecx, 0x6a3e39d6
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x4087a7
mov dword [ebp - 0x1c], 0x3721e4d5
jmp 0x4087a7
add esp, 0x20
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xa11d864e
jmp 0x4087a7
mov dword [ebp - 0x1c], 0xecbf5c58
jmp 0x4087a7
mov dword [ebp - 0x1c], 0x46699075
jmp 0x408388