Function at 0x41fa30
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c50e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov edi, dword [esp + 0x58]
lea esi, [edi + 0x2c]
call fcn.0040ad00
test al, al
jne 0x41faac
mov ecx, dword [esp + 0x50]
lea eax, [edi + 0x10]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040aaf0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov eax, esi
mov byte [esp + 0x54], 1
call fcn.004017d0
mov byte [esp + 0x48], bl
cmp dword [esp + 0x3c], 8
jb 0x41faac
mov edx, dword [esp + 0x28]
push edx
call fcn.004abbe4
add esp, 4
cmp dword [edi + 0x98], ebx
je 0x41fad0
cmp dword [edi + 0x70], 3
jne 0x41fe09
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x58]
call fcn.00414490
jmp 0x41fe09
push esi
call fcn.0040b850
add esp, 4
test al, al
push esi
je 0x41fb4b
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push 0xb7
mov ecx, ebp
call edx
test al, al
jne 0x41fe09
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push 0xb7
push esi
push 0x10000001
mov ecx, ebp
call edx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x41fb44
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fb44
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fb44
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x41fe45
call fcn.0040b780
add esp, 4
test al, al
jne 0x41fbd4
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
push esi
mov ecx, ebp
call edx
test al, al
jne 0x41fbd4
mov eax, dword [ebp]
mov edx, dword [eax + 0x30]
push esi
push 0xb7
mov ecx, ebp
call edx
test al, al
jne 0x41fe09
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
push 0xb7
push esi
push 0x10000001
mov ecx, ebp
call edx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
cmp esi, ebx
je 0x41fb44
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fb44
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fb44
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x41fe45
mov eax, edi
mov dword [esp + 0x50], ebx
call fcn.00414470
test eax, eax
jbe 0x41fcc0
mov al, byte [ebp + 0x110]
test al, al
jne 0x41fcc0
mov ebx, dword [esp + 0x58]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41fc0e
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp dword [esp + 0x50], eax
jb 0x41fc13
call fcn.004ac22f
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x50]
mov edi, dword [ecx + edx*8 + 4]
test edi, edi
lea eax, [ecx + edx*8]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
je 0x41fc3b
lea eax, [edi + 4]
mov edx, 1
lock xadd dword [eax], edx
sub esp, 8
test edi, edi
mov eax, esp
mov byte [esp + 0x50], 2
mov dword [eax], ecx
mov dword [esp + 0x20], esp
mov dword [eax + 4], edi
je 0x41fc5e
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x5c]
push edx
push esi
mov ecx, ebp
call fcn.0041fa30
test al, al
mov byte [esp + 0x48], 0
je 0x41fd0f
test edi, edi
je 0x41fca6
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fca6
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fca6
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov edi, dword [esp + 0x50]
add edi, 1
mov eax, ebx
mov dword [esp + 0x50], edi
call fcn.00414470
cmp edi, eax
jb 0x41fbe7
mov al, byte [ebp + 0x110]
test al, al
je 0x41fd8a
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x41fd08
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fd08
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fd08
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x41fe45
test edi, edi
je 0x41fd3d
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fd3d
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fd3d
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x41fb44
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fb44
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fb44
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x41fe45
mov edi, dword [esp + 0x58]
mov ecx, dword [edi + 0x60]
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x41fda0
mov eax, dword [esi + 4]
jmp 0x41fda3
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41fdb7
call ebp
cmp dword [esi + 0x18], ebx
jb 0x41fdc1
mov esi, dword [esi + 4]
jmp 0x41fdc4
add esi, 4
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41fe07
lea ecx, [edi + 0x58]
push ecx
lea edx, [edi + 0x50]
push edx
add edi, 0x48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x41fe09
call ebp
mov dword [esp + 0x48], 0xffffffff
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x41fe43
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41fe43
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41fe43
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x10