Function at 0x41bd40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
lea ecx, [ebx + ebx]
add eax, ecx
mov dword [esp + 0x24], ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.0041ae30
mov esi, eax
mov edx, 0x4c2948
mov eax, dword [esp + 0x18]
lea ecx, [eax + esi*2]
call fcn.0041ae30
add eax, esi
mov dword [esp + 0x14], 1
mov esi, dword [ebp + 8]
dec ebx
add ebx, eax
mov eax, dword [edi + 0xb50]
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 + 0x8a0]
mov dword [esp + 0x18], eax
call fcn.0041b700
cmp dword [edi + 0x864], 0
je 0x41bdf0
test byte [ebp + 0x14], 1
je 0x41bdf0
push 0x10
xor eax, eax
push esi
mov word [esi + ebx*2 - 2], ax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov word [esi + ebx*2 - 2], ax
cmp dword [edi + 0x684], 6
jne 0x41be37
mov eax, dword [edi + 0x690]
and eax, 0x1800
or eax, 0
je 0x41be37
mov eax, ebx
mov dword [esp + 0x1c], 1
sub eax, dword [ebp + 0xc]
lea eax, [eax*2 + 4]
push eax
mov eax, dword [edi + 0x838]
push dword [esp + 0x1c]
add eax, dword [esp + 0x2c]
push eax
call fcn.0047f730
add esp, 0xc
jmp 0x41be3f
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x20], 0
mov ecx, dword [ebp + 0x20]
jne 0x41bec1
mov eax, dword [edi + 0xb50]
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]
mov eax, dword [ebp + 8]
push ebx
push eax
mov dword [esp + 0x34], edx
call fcn.0041bc90
mov ecx, dword [edi + 0xb50]
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 0x41beae
jg 0x41bea9
cmp eax, dword [esp + 0x24]
jbe 0x41beae
and dword [esp + 0x10], 0xfffffffb
cmp dword [edi + 0xff4], 0
jne 0x41c011
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
cmp ecx, 3
je 0x41c011
mov eax, dword [edi + 0xb50]
mov ecx, dword [esp + 0x28]
cmp ecx, dword [eax + 0x90]
jne 0x41c011
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x94]
jne 0x41c011
mov ecx, dword [edi + 0xb54]
test ecx, ecx
je 0x41bf1f
cmp dword [edi + 0x684], 6
jne 0x41bf1f
mov eax, dword [edi + 0x690]
and eax, 0x100000
or eax, 0
jne 0x41bf1f
and cl, 5
cmp cl, 1
je 0x41c011
xor eax, eax
mov word [esi + ebx*2 - 2], ax
cmp dword [edi + 0x864], eax
je 0x41bfcb
cmp dword [esp + 0x1c], 0
mov eax, esi
mov dword [esp + 0x18], eax
je 0x41bf65
mov eax, dword [ebp + 0xc]
sub ebx, eax
dec ebx
push ebx
push eax
push dword [edi + 0x838]
push esi
call fcn.0041c4f0
test eax, eax
je 0x41bf63
mov eax, dword [edi + 0x838]
mov dword [esp + 0x18], eax
jmp 0x41bf65
mov eax, esi
mov edx, dword [edi + 0x790]
mov ecx, eax
mov ebx, dword [esp + 0x10]
or edx, ebx
call fcn.004578c0
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41bfcb
mov eax, dword [edi + 0xb50]
add dword [eax + 0xf0], 1
adc dword [eax + 0xf4], 0
test bl, 4
je 0x41bfad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x41bfad
and dword [edi + 0x8a0], 0xfffffffb
mov eax, dword [edi + 0x84c]
mov ecx, dword [esp + 0x18]
push 0
lea eax, [ecx + eax*2]
mov ecx, edi
push eax
push str.RemoveDirectory
call fcn.00419420
jmp 0x41c011
cmp dword [edi + 0x854], 0
je 0x41c003
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 + 0x84c]
lea eax, [esi + eax*2]
push eax
call fcn.00416d90
mov eax, dword [edi + 0xb50]
add dword [eax + 0x58], 1
adc dword [eax + 0x5c], 0
push dword [ebp + 8]
mov ecx, edi
call fcn.0041b7a0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20