Function at 0x501fed
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x537221
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebp
call fcn.00501620
lea ecx, [esp + 0x14]
mov dword [esp + 0x17c], ebp
call fcn.00501620
mov edi, dword [esp + 0x188]
lea ecx, [esp + 0x24]
push edi
mov byte [esp + 0x180], 1
call fcn.00501690
mov ebx, dword [esp + 0x184]
test ebx, ebx
je 0x502265
test edi, edi
je 0x502265
cmp byte [edi], 0
je 0x502265
push ebp
push ebx
call fcn.00500ca0
add esp, 8
test eax, eax
jl 0x502265
push ebp
lea ecx, [esp + 0x28]
call fcn.004bb3c0
push eax
call fcn.00500ca0
add esp, 8
test eax, eax
jge 0x502091
push 1
lea ecx, [esp + 0x28]
call fcn.004bb3c0
push eax
call fcn.00501d40
add esp, 8
test eax, eax
jne 0x502091
xor edi, edi
jmp 0x502268
push ebx
mov ecx, esi
call fcn.00501eb0
test eax, eax
jne 0x5020a4
xor edi, edi
jmp 0x502268
push edi
xor edi, edi
push 2
push edi
push ebx
call fcn.005065a0
mov ebp, eax
add esp, 0x10
cmp ebp, edi
je 0x502268
cmp dword [esi + 8], edi
je 0x5020da
push ebp
mov ecx, esi
call fcn.00501bf0
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x5020da
mov dword [esi + 0x1c], edi
jmp 0x502268
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push edi
push ebp
call fcn.00506610
add esp, 0xc
test eax, eax
jne 0x50221c
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.005016f0
lea edx, [esp + 0x14]
push edx
call fcn.00501c80
lea eax, [esp + 0x50]
push eax
call fcn.00501d10
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00501710
test byte [esp + 0x150], 0x10
je 0x502172
push 0
lea ecx, [esp + 0x18]
call fcn.004bb3c0
push eax
call fcn.00500ca0
add esp, 8
test eax, eax
jge 0x5021d7
push 1
lea ecx, [esp + 0x18]
call fcn.004bb3c0
push eax
call fcn.00501d40
add esp, 8
test eax, eax
je 0x50209d
jmp 0x5021d7
lea ecx, [esp + 0x34]
call fcn.005012e0
push 2
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.004bb3b0
push eax
push edi
push ebp
call fcn.00506720
add esp, 0x14
test eax, eax
jne 0x5021ff
lea edx, [esp + 0x34]
push 0x80
push edx
lea ecx, [esp + 0x1c]
call fcn.004bb3b0
push eax
call fcn.00500b70
add esp, 8
push eax
call ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 1
mov dword [esp + 0x34], 0xf4d1f4
call fcn.005014e0
mov dword [esi + 0x20], edi
lea eax, [esp + 0x14]
inc edi
push eax
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call fcn.005016f0
mov ecx, esi
call fcn.00501bc0
mov eax, dword [esi + 4]
test eax, eax
jne 0x502230
jmp 0x5020e0
lea ecx, [esp + 0x34]
xor edi, edi
mov byte [esp + 0x17c], 1
mov dword [esp + 0x34], 0xf4d1f4
call fcn.005014e0
jmp 0x502268
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], ecx
mov ecx, esi
call fcn.00501bc0
mov ecx, esi
call fcn.00501b80
push ebp
call fcn.00506770
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 0
call fcn.00501640
lea ecx, [esp + 0x24]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00501640
mov eax, 1
jmp 0x5022b0
or edi, 0xffffffff
mov edx, dword [esi + 0x1c]
mov ecx, esi
mov dword [esi + 0x20], edx
call fcn.00501bc0
mov ecx, esi
call fcn.00501b80
test ebp, ebp
je 0x502289
push ebp
call fcn.00506770
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 0
call fcn.00501640
lea ecx, [esp + 0x24]
mov dword [esp + 0x17c], 0xffffffff
call fcn.00501640
mov eax, edi
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret 8