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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55746f
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5d7b20]
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x154], esi
call fcn.00459852
xor ebx, ebx
push esi
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.00406430
push 0x5c
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
mov dword [ebp - 0x144], ebx
call fcn.00418d70
push 4
push str..
lea ecx, [ebp - 0x140]
call fcn.00405330
mov edx, dword [ebp - 0x140]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41e7a6
push ebx
lea ecx, [ebp - 0x140]
call fcn.004045b0
mov edx, dword [ebp - 0x140]
push ebx
push edx
lea ecx, [ebp - 0x174]
call fcn.004598f9
test eax, eax
je 0x41eb53
mov eax, dword [ebp - 0x154]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00406430
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 2
call fcn.004594c2
test eax, eax
jne 0x41e801
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x41eae2
push str.Couldnt_find_next_file.
push 0x56dce8
call fcn.00415550
add esp, 8
lea ecx, [ebp - 0x174]
call fcn.00459814
test eax, eax
jne 0x41eab3
push 0x5c
lea ecx, [ebp - 0x13c]
call fcn.00418d70
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x174]
call fcn.00459bd5
push eax
lea edx, [ebp - 0x14c]
push 0x56825c
push edx
mov byte [ebp - 4], 3
call fcn.00418ee0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.00405330
mov eax, dword [ebp - 0x14c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e888
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e8ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41e8ec
mov edx, dword [ebp - 0x13c]
and eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InUseFileOnDirectory_SetFileAttributess_ErrorCode__0x_x_n
call fcn.00415550
add esp, 8
mov eax, dword [ebp - 0x174]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [ebp - 0x174]
call edx
test eax, eax
je 0x41e940
mov edx, dword [ebp - 0x13c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x41e92b
push 0
lea ecx, [ebp - 0x13c]
call fcn.004045b0
mov edx, dword [ebp - 0x13c]
push edi
push edx
call fcn.0041e700
add esp, 8
or dword [ebp - 0x144], eax
jmp 0x41eab3
mov eax, dword [ebp - 0x13c]
push 0x5c
push eax
call fcn.0053dd9b
mov esi, eax
add esp, 8
test esi, esi
je 0x41eab3
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e960
sub eax, edx
sar eax, 1
inc eax
push eax
push esi
call fcn.0053fbf4
add esp, 8
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e993
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004021b0
mov ebx, dword [edi + 4]
lea edx, [ebp - 0x2c]
push edx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.004022a0
mov dword [ebp - 0x158], eax
cmp eax, dword [edi + 4]
je 0x41e9f3
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x41e9d7
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401550
test eax, eax
js 0x41e9f3
lea eax, [ebp - 0x158]
jmp 0x41ea02
mov ecx, dword [edi + 4]
mov dword [ebp - 0x150], ecx
lea eax, [ebp - 0x150]
cmp dword [eax], ebx
mov byte [ebp - 4], 2
setne bl
cmp dword [ebp - 0x18], 8
jb 0x41ea1d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00449b7c
add esp, 4
test bl, bl
je 0x41ea34
push esi
push str.ShareFile__s__is_not_checked._n
call fcn.00415550
add esp, 8
jmp 0x41eab3
push 0x88
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.0053e550
mov edx, dword [ebp - 0x13c]
add esp, 0xc
lea ecx, [ebp - 0xac]
push 3
mov dword [ebp - 0xb0], ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.0040b3a0
mov ecx, dword [ebp - 0xb0]
push 0x12
lea eax, [ebp - 0x138]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
cmp eax, edx
je 0x41ea9b
push eax
call fcn.0053f854
add esp, 4
cmp esi, 0xffffffff
je 0x41eaa9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41eab3
mov dword [ebp - 0x144], 1
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e7bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e7bb
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x174]
call fcn.004593dc
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.00459884
mov eax, dword [ebp - 0x144]
jmp 0x41eb8d
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.00459884
xor eax, eax
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.0053e1ad
mov esp, ebp
pop ebp
ret