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

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x451ab8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407510
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
test esi, esi
jle 0x410bce
lea ecx, [esi - 1]
test ecx, ecx
js 0x410da3
cmp ecx, esi
jg 0x410da3
cmp word [eax + ecx*2], 0x5c
je 0x410bce
mov ecx, dword [eax - 8]
lea edi, [esi + 1]
mov edx, 1
sub ecx, edi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x410bad
push edi
lea ecx, [ebp - 0x14]
call fcn.00403ef0
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x14]
cmp edi, dword [eax - 8]
jg 0x410da3
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edi*2], cx
push 1
push 0x4654f0
lea ecx, [ebp - 0x14]
call fcn.00403530
lea ecx, [ebp]
call fcn.00410db0
mov byte [ebp - 4], 1
lea ecx, [ebp]
push dword [ebp - 0x14]
call fcn.00422080
or edi, 0xffffffff
test eax, eax
je 0x410cf3
mov ecx, dword [ebp + 0x25c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ecx, ecx
je 0x410c45
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x410c45
cmp word [ebp + 0x30], 0x2e
jne 0x410c45
mov ax, word [ebp + 0x32]
test ax, ax
je 0x410ccd
cmp ax, 0x2e
jne 0x410c45
cmp word [ebp + 0x34], 0
je 0x410ccd
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00422480
mov byte [ebp - 4], 2
cmp dword [ebp + 0x25c], 0
je 0x410c8f
mov eax, dword [ebp + 4]
shr eax, 4
and eax, 1
je 0x410c8f
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.00410b20
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x410c85
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x10]
call fcn.00410f10
jmp 0x410ca9
push dword [ebp - 0x10]
call ebx
test al, 1
je 0x410ca1
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x10]
call fcn.00411080
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410cc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x410cf3
test ecx, ecx
je 0x410cf3
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x410c15
mov byte [ebp - 4], 4
lea eax, [ebp + 0x260]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp + 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410d21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
push dword [ebp + 0x254]
mov dword [ebp + 0x25c], 0
call fcn.00438f5b
mov eax, dword [ebp]
add esp, 4
mov dword [ebp + 0x254], 0
test eax, eax
je 0x410d61
cmp eax, 0xffffffff
je 0x410d61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x410d80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x268]
pop ebp
ret
push 0x80070057
call fcn.00404020
int3