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

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x478020
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a6024]
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
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x42374c
lea ecx, [edi - 1]
test ecx, ecx
js 0x42391e
cmp ecx, edi
jg 0x42391e
cmp word [eax + ecx*2], 0x5c
je 0x42374c
mov ecx, dword [eax - 8]
lea esi, [edi + 1]
mov edx, 1
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x423731
push esi
lea ecx, [ebp - 0x14]
call fcn.00404dc0
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
mov word [eax + edi*2], cx
cmp esi, dword [eax - 8]
jg 0x42391e
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
push 1
push 0x48ebd0
lea ecx, [ebp - 0x14]
call fcn.00404870
lea ecx, [ebp]
call fcn.00401a80
mov byte [ebp - 4], 2
lea ecx, [ebp]
mov esi, dword [ebp - 0x14]
push esi
call fcn.00420c70
or ebx, 0xffffffff
test eax, eax
je 0x423871
mov ecx, dword [ebp + 0x25c]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ecx, ecx
je 0x4237c0
mov eax, dword [ebp + 4]
shr eax, 4
test eax, 1
je 0x4237c0
cmp word [ebp + 0x30], 0x2e
jne 0x4237c0
mov ax, word [ebp + 0x32]
test ax, ax
je 0x42384b
cmp ax, 0x2e
jne 0x4237c0
cmp word [ebp + 0x34], 0
je 0x42384b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.004210d0
mov byte [ebp - 4], 3
cmp dword [ebp + 0x25c], 0
je 0x423809
test byte [ebp + 4], 0x10
je 0x423809
mov dl, 1
lea ecx, [ebp - 0x10]
call fcn.004236a0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4237ff
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00423930
jmp 0x423827
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x42381f
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00423aa0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423845
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 0x423871
test ecx, ecx
je 0x423871
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 0x42378e
mov byte [ebp - 4], 5
lea eax, [ebp + 0x260]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp + 0x260]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42389f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
push dword [ebp + 0x254]
mov dword [ebp + 0x25c], 0
call fcn.00452f38
mov eax, dword [ebp]
add esp, 4
mov dword [ebp + 0x254], 0
test eax, eax
je 0x4238df
cmp eax, 0xffffffff
je 0x4238df
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4238fb
mov ecx, dword [esi]
push esi
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.00452869
lea esp, [ebp + 0x268]
pop ebp
ret
push 0x80070057
call fcn.00402f30
int3