Function at 0x41d180
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebx + ebx]
mov edi, ecx
mov dword [esp + 0x24], eax
add eax, esi
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.0041ca10
dec ebx
mov dword [esp + 0x14], 1
add ebx, eax
mov eax, dword [edi + 0xb60]
push ebx
push esi
mov ecx, dword [eax + 0x90]
mov eax, dword [eax + 0x94]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x14]
and eax, 0x400
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
mov ecx, edi
mov eax, dword [edi + 0x8b0]
mov dword [esp + 0x18], eax
call fcn.0041c900
cmp dword [edi + 0x874], 0
je 0x41d218
test byte [ebp + 0x14], 1
je 0x41d218
push 0x10
xor eax, eax
push esi
mov word [esi + ebx*2 - 2], ax
call dword [sym.imp.KERNEL30.dll_SetFileAttributesW]
mov eax, 0x5c
mov word [esi + ebx*2 - 2], ax
cmp dword [edi + 0x694], 7
jne 0x41d25f
mov eax, dword [edi + 0x6a0]
and eax, 0x1800
or eax, 0
je 0x41d25f
mov eax, ebx
mov dword [esp + 0x18], 1
sub eax, dword [ebp + 0xc]
lea eax, [eax*2 + 4]
push eax
mov eax, dword [edi + 0x848]
push dword [esp + 0x20]
add eax, dword [esp + 0x2c]
push eax
call fcn.00489a20
add esp, 0xc
jmp 0x41d267
mov dword [esp + 0x18], 0
cmp dword [esp + 0x20], 0
mov ecx, dword [ebp + 0x20]
jne 0x41d2e8
mov eax, dword [edi + 0xb60]
push dword [ebp + 0x24]
push ecx
mov edx, dword [eax + 0xf8]
mov ecx, edi
add edx, dword [eax + 0xf0]
mov esi, dword [eax + 0xfc]
adc esi, dword [eax + 0xf4]
push ebx
push dword [ebp + 8]
mov dword [esp + 0x34], edx
call fcn.0041d0d0
mov ecx, dword [edi + 0xb60]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xf8]
add eax, dword [ecx + 0xf0]
mov edx, dword [ecx + 0xfc]
adc edx, dword [ecx + 0xf4]
cmp edx, esi
jl 0x41d2d5
jg 0x41d2d0
cmp eax, dword [esp + 0x24]
jbe 0x41d2d5
and dword [esp + 0x10], 0xfffffffb
cmp dword [edi + 0x100c], 0
jne 0x41d438
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
cmp ecx, 3
je 0x41d438
mov eax, dword [edi + 0xb60]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x90]
jne 0x41d438
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x94]
jne 0x41d438
mov ecx, dword [edi + 0xb64]
test ecx, ecx
je 0x41d346
cmp dword [edi + 0x694], 7
jne 0x41d346
mov eax, dword [edi + 0x6a0]
and eax, 0x100000
or eax, 0
jne 0x41d346
and cl, 5
cmp cl, 1
je 0x41d438
xor eax, eax
mov word [esi + ebx*2 - 2], ax
cmp dword [edi + 0x874], eax
je 0x41d3f2
cmp dword [esp + 0x18], 0
mov eax, esi
mov dword [esp + 0x1c], eax
je 0x41d38c
mov eax, dword [ebp + 0xc]
sub ebx, eax
dec ebx
push ebx
push eax
push dword [edi + 0x848]
push esi
call fcn.0041d700
test eax, eax
je 0x41d38a
mov eax, dword [edi + 0x848]
mov dword [esp + 0x1c], eax
jmp 0x41d38c
mov eax, esi
mov edx, dword [edi + 0x7a0]
mov ecx, eax
mov ebx, dword [esp + 0x10]
or edx, ebx
call fcn.0045cd40
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41d3f2
mov eax, dword [edi + 0xb60]
add dword [eax + 0xf0], 1
adc dword [eax + 0xf4], 0
test bl, 4
je 0x41d3d4
call dword [sym.imp.KERNEL30.dll_GetLastError]
cmp eax, 0x91
jne 0x41d3d4
and dword [edi + 0x8b0], 0xfffffffb
mov eax, dword [edi + 0x85c]
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
push str.RemoveDirectory
call fcn.0041a620
jmp 0x41d438
cmp dword [edi + 0x864], 0
je 0x41d42a
push 0
push 0xffffffffffffffff
xor eax, eax
cmp dword [esp + 0x28], eax
push 0xffffffffffffffff
push dword [ebp + 0x1c]
setne al
push dword [ebp + 0x18]
push ecx
lea eax, [eax*8 + 0x22]
mov ecx, edi
push eax
mov eax, dword [edi + 0x85c]
lea eax, [esi + eax*2]
push eax
call fcn.00417da0
mov eax, dword [edi + 0xb60]
add dword [eax + 0x58], 1
adc dword [eax + 0x5c], 0
push dword [ebp + 8]
mov ecx, edi
call fcn.0041c9a0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20