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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554376
mov eax, dword fs:[0]
push eax
mov eax, 0x32ac
call fcn.0052a310
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
mov ebx, edx
mov dword [ebp - 0x32ac], edi
mov dword [ebp - 0x32b4], ebx
cmp dword [edi + 0x70], ecx
jne 0x404b60
or eax, 0xffffffff
jmp 0x404fb2
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x32a8], ecx
je 0x404f72
push 2
pop esi
sub eax, esi
je 0x404d88
dec eax
je 0x404bd6
dec eax
jne 0x404fac
push dword [ebx + 4]
lea eax, [ebp - 0x326c]
push eax
call fcn.0040464a
pop ecx
pop ecx
mov ebx, eax
lea eax, [edi + 0x74]
mov dword [ebp - 4], 1
call fcn.00409383
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x326c]
call fcn.00409659
mov eax, dword [ebp - 0x32b4]
cmp dword [eax + 0x24], edi
je 0x404fac
or dword [ebp - 0x32a8], 0xffffffff
jmp 0x404fac
push dword [ebx + 4]
lea eax, [ebp - 0x32a4]
push eax
call fcn.0040464a
pop ecx
pop ecx
lea ecx, [edi + 0x74]
mov ebx, eax
mov dword [ebp - 4], 3
mov eax, ecx
mov dword [ebp - 0x18], ecx
call fcn.00409383
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x32a4]
call fcn.00409659
push dword [ebp - 0x18]
lea esi, [ebp - 0x3250]
call fcn.00408277
mov dword [ebp - 4], 4
mov edi, dword [ebp - 0x32ac]
mov eax, dword [edi + 0x68]
xor ebx, ebx
cmp eax, ebx
je 0x404c6a
cmp dword [ebp - 0x323c], 8
mov ecx, dword [ebp - 0x3250]
jae 0x404c45
mov ecx, esi
push ecx
push dword [edi + 0x6c]
call eax
mov ecx, eax
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x404c50
sub eax, edx
sar eax, 1
lea esi, [ebp - 0x3250]
call fcn.00409cec
cmp dword [ebp - 0x323c], 8
mov ecx, dword [ebp - 0x3250]
jae 0x404c7f
lea ecx, [ebp - 0x3250]
lea eax, [edi + 0x48]
cmp dword [eax + 0x14], 8
jb 0x404c8a
mov eax, dword [eax]
push ebx
push ecx
push eax
push ebx
lea eax, [ebp - 0x2218]
push 0x800
push eax
call fcn.00525585
mov esi, dword [ebp - 0x32b4]
push dword [esi + 0x14]
call fcn.00525378
add esp, 0x1c
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x2218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404d1f
lea eax, [ebp - 0x32b8]
push eax
movzx eax, word [esi + 0x1a]
push eax
movzx eax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x404d18
lea eax, [ebp - 0x32b0]
push eax
lea eax, [ebp - 0x32b8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x404d18
lea eax, [ebp - 0x32b0]
push eax
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [esi + 0x1c]
xor ecx, ecx
test al, 1
je 0x404d2a
inc ecx
test al, 4
je 0x404d31
or ecx, 4
test al, 2
je 0x404d38
or ecx, 2
test al, 0x20
je 0x404d3f
or ecx, 0x20
push ecx
lea eax, [ebp - 0x2218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi + 0x64]
test eax, eax
je 0x404d73
cmp dword [ebp - 0x323c], 8
mov ecx, dword [ebp - 0x3250]
jae 0x404d69
lea ecx, [ebp - 0x3250]
push dword [esi]
push ecx
push 1
push dword [edi + 0x6c]
call eax
xor eax, eax
inc eax
mov dword [ebp - 0x32a8], eax
push eax
lea esi, [ebp - 0x3250]
jmp 0x404fa1
push dword [ebx + 4]
lea eax, [ebp - 0x3234]
push eax
call fcn.0040464a
pop ecx
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [edi + 0x68]
test eax, eax
je 0x404de6
cmp dword [ebp - 0x3220], 8
mov ecx, dword [ebp - 0x3234]
jae 0x404db8
lea ecx, [ebp - 0x3234]
push ecx
push dword [edi + 0x6c]
call eax
mov dword [ebp - 0x32ac], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x404dc7
mov ecx, dword [ebp - 0x32ac]
sub eax, edx
sar eax, 1
lea esi, [ebp - 0x3234]
call fcn.00409cec
cmp dword [ebp - 0x3220], 8
mov ecx, dword [edi + 0xa0]
mov edx, dword [ebp - 0x3234]
jae 0x404e01
lea edx, [ebp - 0x3234]
lea eax, [edi + 0x90]
cmp dword [eax + 0x14], 8
jb 0x404e0f
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.005235b2
add esp, 0xc
test eax, eax
je 0x404e38
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x3234]
xor edi, edi
call fcn.00409659
xor eax, eax
jmp 0x404fb2
mov eax, dword [edi + 0x64]
xor esi, esi
cmp eax, esi
je 0x404e75
cmp dword [ebp - 0x3220], 8
mov ecx, dword [ebp - 0x3234]
jae 0x404e56
lea ecx, [ebp - 0x3234]
push dword [ebx]
push ecx
push esi
push dword [edi + 0x6c]
call eax
test al, al
jne 0x404e75
or dword [ebp - 0x32a8], 0xffffffff
lea esi, [ebp - 0x3234]
jmp 0x404f9f
cmp dword [ebp - 0x3220], 8
mov ecx, dword [ebp - 0x3234]
jae 0x404e8a
lea ecx, [ebp - 0x3234]
lea eax, [edi + 0x48]
cmp dword [eax + 0x14], 8
jb 0x404e95
mov eax, dword [eax]
push esi
push ecx
push eax
push esi
mov ebx, 0x800
lea eax, [ebp - 0x1218]
push ebx
push eax
call fcn.00525585
push esi
push esi
push esi
push esi
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1218]
push eax
call fcn.0052569e
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3218]
push ebx
push eax
call fcn.00525585
lea eax, [ebp - 0x3218]
add esp, 0x54
push eax
call fcn.004048d0
pop ecx
test al, al
je 0x404e63
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x404f28
test al, 1
je 0x404f28
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x180
push 0x40
push 0x8121
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0x32a8]
push eax
call fcn.0052443e
add esp, 0x14
mov dword [ebp - 4], ebx
push 1
cmp dword [ebp - 0x32a8], esi
jg 0x404f6a
cmp dword [edi + 0xac], esi
lea esi, [ebp - 0x3234]
je 0x404fa5
jmp 0x404e2a
lea esi, [ebp - 0x3234]
jmp 0x404fa5
cmp dword [edi + 0x84], ecx
jne 0x404fac
push dword [ebx + 4]
lea eax, [ebp - 0x3288]
push eax
call fcn.0040464a
pop ecx
pop ecx
mov ebx, eax
and dword [ebp - 4], 0
lea eax, [edi + 0x74]
call fcn.00409383
lea esi, [ebp - 0x3288]
push 1
or dword [ebp - 4], 0xffffffff
xor edi, edi
call fcn.00409659
mov eax, dword [ebp - 0x32a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005220b2
leave
ret 4