Function at 0x41f4f9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ecx*4 + 0x4c5bc8]
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
jne 0x41f52d
lea ecx, [ebp + 0xc]
call fcn.0040de67
push dword [ebp + 0xc]
call fcn.0046c701
pop ecx
mov eax, 0x86180002
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x4094]
cmp eax, dword [edi + 0x405c]
jae 0x41f6ed
lea eax, [edi + 0x70a8]
mov dword [ebp - 0xc], eax
mov ebx, dword [edi + 0x4094]
lea eax, [ebx + 1]
mov dword [edi + 0x4094], eax
and dword [edi + ebx*4 + 0x40a4], 0
mov eax, ebx
shl eax, 5
add eax, dword [edi + 0x4050]
mov edx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x70a4]
lea eax, [edi + eax*2 + 0x60a4]
push eax
lea eax, [edi + 0x4040]
call fcn.00420c1c
pop ecx
push dword [ebp - 4]
lea esi, [ebp + 0xc]
call fcn.0041f82e
cmp dword [eax + 0x18], 8
jb 0x41f5a5
mov eax, dword [eax + 4]
jmp 0x41f5a8
add eax, 4
mov ecx, dword [edi + 0x70a4]
lea ecx, [edi + ecx*2 + 0x60a4]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x41f6d3
push dword [ebp - 4]
lea esi, [ebp + 0xc]
call fcn.0041f82e
mov eax, dword [eax + 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
call fcn.0041f82e
cmp dword [eax + 0x18], 8
jb 0x41f5e9
mov eax, dword [eax + 4]
jmp 0x41f5ec
add eax, 4
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0xc]
call fcn.0046f200
add dword [ebp - 0xc], 0x208
add esp, 0xc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [edi + 0x7ad0], eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x19], 0
jne 0x41f659
push 0x4b9f78
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x40a0]
push eax
lea eax, [edi + 0x409c]
push eax
lea eax, [edi + 0x4098]
push eax
lea eax, [edi + 0x24]
push ebx
push eax
lea eax, [edi + 0x4040]
call fcn.0042162d
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x41f704
lea eax, [edi + 0x60a4]
push eax
lea eax, [ebp - 0x14]
push eax
xor eax, eax
inc eax
call fcn.0041f86b
pop ecx
pop ecx
test eax, eax
jne 0x41f729
mov eax, dword [edi + 0x409c]
add eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 8]
call fcn.0041f920
pop ecx
pop ecx
test eax, eax
jne 0x41f729
cmp ebx, dword [ebp - 8]
jne 0x41f729
lea esi, [ebp - 0x14]
call fcn.0041f8ad
test eax, eax
jne 0x41f744
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x1d], 0
je 0x41f6cb
push dword [eax + 0x14]
lea eax, [edi + 0x60a4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
je 0x41f6ed
mov eax, dword [edi + 0x4094]
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
cmp eax, dword [edi + 0x405c]
jb 0x41f54e
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [edi + 0x4094], esi
cmp dword [ebp - 4], eax
je 0x41f749
mov esi, 0x86180005
jmp 0x41f749
lea ecx, [ebp + 0xc]
call fcn.0040de67
push dword [ebp + 0xc]
call fcn.0046c701
xor eax, eax
cmp esi, 2
setne al
pop ecx
lea eax, [eax + eax - 0x79e7fffd]
jmp 0x41f528
lea ecx, [ebp + 0xc]
call fcn.0040de67
push dword [ebp + 0xc]
call fcn.0046c701
pop ecx
mov eax, 0x86180003
jmp 0x41f528
mov esi, 0x86180003
lea ecx, [ebp + 0xc]
call fcn.0040de67
push dword [ebp + 0xc]
call fcn.0046c701
pop ecx
mov eax, esi
jmp 0x41f528