Function at 0x41edf0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x28], ecx
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
neg ecx
sbb ecx, ecx
and ecx, 0x1ffff80
add ecx, 0x80
push ecx
push 3
push 0
push 0
push pe_nt_image_headers32
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41ee6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.cannot_set_attributes__rc_u_:__s_n
call fcn.0040cc80
add esp, 0xc
cmp dword [ebp - 0x24], 5
jne 0x41ee60
push 0x4d1c48
call fcn.0040ceb0
add esp, 4
mov eax, 9
jmp 0x41f06b
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x40]
test eax, eax
je 0x41eed8
push 8
mov ecx, dword [ebp - 0x28]
add ecx, 0x28
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004bed60
add esp, 0xc
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x40]
cmp ecx, 1
jle 0x41eeb2
push 8
mov edx, dword [ebp - 0x28]
add edx, 0x30
push edx
lea eax, [ebp - 8]
push eax
call fcn.004bed60
add esp, 0xc
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x40]
cmp edx, 1
jle 0x41eed3
push 8
mov eax, dword [ebp - 0x28]
add eax, 0x38
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004bed60
add esp, 0xc
jmp 0x41ef98
cmp dword [ebp - 0x20], 0
jne 0x41ef18
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 0x10]
or edx, dword [ecx + 0x14]
je 0x41ef18
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [edx + 0x10]
push ecx
call fcn.0041ecf0
add esp, 0x10
test eax, eax
je 0x41ef18
mov dword [ebp - 0x20], 9
cmp dword [ebp - 0x20], 0
jne 0x41ef58
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0x18]
or edx, dword [ecx + 0x1c]
je 0x41ef58
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
push ecx
call fcn.0041ecf0
add esp, 0x10
test eax, eax
je 0x41ef58
mov dword [ebp - 0x20], 9
cmp dword [ebp - 0x20], 0
jne 0x41ef98
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0x20]
or edx, dword [ecx + 0x24]
je 0x41ef98
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [edx + 0x20]
push ecx
call fcn.0041ecf0
add esp, 0x10
test eax, eax
je 0x41ef98
mov dword [ebp - 0x20], 9
cmp dword [ebp - 0x20], 0
jne 0x41efef
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41efef
push 0
push 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [eax + 0x10]
push edx
call fcn.00401b30
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_set_file_time__rc_u_:__s__s_n
call fcn.0040cc80
add esp, 0x10
mov dword [ebp - 0x20], 9
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x54], 0
jne 0x41f01c
mov eax, dword [ebp + 8]
push eax
push str.no_attributes_to_set_for__s_n
call fcn.0040cc80
add esp, 8
mov dword [ebp - 0x20], 9
jmp 0x41f068
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41f068
push 0
push 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ecx + 0x10]
push eax
call fcn.00401b30
add esp, 0x10
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_attributes__rc_u_:__s__s_n
call fcn.0040cc80
add esp, 0x10
mov dword [ebp - 0x20], 9
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8