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

Disassembly:
push 0xffffffffffffffff
push 0x468466
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x480424]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480424]
xor eax, esp
push eax
lea eax, [esp + 0x274]
mov dword fs:[0], eax
mov eax, dword [0x47e024]
mov esi, dword [esp + 0x284]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x27c], 0
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 1
call fcn.004237db
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x46d81c
push 0x46d81c
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.0042c0fd
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4355f0
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, dword [0x47e020]
je 0x4355c9
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4355c9
push esi
call fcn.0043c708
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, dword [0x47e020]
je 0x4355e7
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x4355e7
push esi
call fcn.0043c708
add esp, 4
xor eax, eax
jmp 0x435767
mov ecx, 0x46d818
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435626
test dx, dx
je 0x435622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435626
add eax, 4
add ecx, 4
test dx, dx
jne 0x435600
xor eax, eax
jmp 0x43562b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435701
mov ecx, 0x46d810
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435666
test dx, dx
je 0x435662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435666
add eax, 4
add ecx, 4
test dx, dx
jne 0x435640
xor eax, eax
jmp 0x43566b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x435701
cmp dword [esp + 0x288], 0
je 0x435701
push esi
lea ecx, [esp + 0x1c]
call fcn.004237db
lea ecx, [esp + 0x1c]
push ecx
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0x5c
call fcn.0042c0fd
lea edx, [esp + 0x4c]
push edx
mov eax, edx
push eax
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.0042c0fd
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4356d1
and eax, 0xfffffffe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [esp + 0x20], 0x10
je 0x4356fa
mov ecx, dword [esp + 0x28c]
mov edx, dword [esp + 0x288]
push ecx
push edx
push ebp
call fcn.00435500
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x435701
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4355f0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x47e020]
je 0x435744
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x435744
push esi
call fcn.0043c708
add esp, 4
lea edx, [ebp - 0xc]
cmp edx, dword [0x47e020]
je 0x435762
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x435762
push esi
call fcn.0043c708
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x274]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0043c7e6
add esp, 0x26c
ret