Function at 0x5049ad
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x583596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
xor edi, edi
xor ebp, ebp
call fcn.00504220
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], edi
call fcn.00504220
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x168], 1
call fcn.00504250
mov ebx, dword [esp + 0x16c]
test ebx, ebx
je 0x504bdb
mov eax, dword [esp + 0x170]
test eax, eax
je 0x504bdb
push ebp
push ebx
call fcn.00564901
add esp, 8
test eax, eax
jl 0x504bdb
push ebp
lea ecx, [esp + 0x24]
call fcn.004eec80
push eax
call fcn.00564901
add esp, 8
test eax, eax
jge 0x504a4a
push 1
lea ecx, [esp + 0x24]
call fcn.004eec80
push eax
call fcn.00504730
add esp, 8
test eax, eax
je 0x504bde
push ebx
mov ecx, esi
call fcn.005048b0
test eax, eax
jne 0x504a5d
xor edi, edi
jmp 0x504bde
push 2
push 0
push ebx
call fcn.00508fc0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x504a77
xor edi, edi
jmp 0x504bde
mov eax, dword [esi + 8]
test eax, eax
je 0x504a9c
push ebp
mov ecx, esi
call fcn.005045e0
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x504a9c
mov dword [esi + 0x1c], 0
xor edi, edi
jmp 0x504bde
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x30]
push ecx
push edi
push ebp
call fcn.00509030
add esp, 0xc
test eax, eax
jne 0x504b92
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.005042b0
lea eax, [esp + 0x10]
push eax
call fcn.00504670
lea ecx, [esp + 0x38]
push ecx
call fcn.00504700
add esp, 8
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
call fcn.005042d0
test byte [esp + 0x138], 0x10
je 0x504b2c
push 0
lea ecx, [esp + 0x14]
call fcn.004eec80
push eax
call fcn.00564901
add esp, 8
test eax, eax
jge 0x504b6e
push 1
lea ecx, [esp + 0x14]
call fcn.004eec80
push eax
call fcn.00504730
add esp, 8
test eax, eax
je 0x504a95
jmp 0x504b6e
push 0x80
lea ecx, [esp + 0x14]
call fcn.004e2f20
push eax
call ebx
push 2
push 0
lea ecx, [esp + 0x18]
call fcn.004e2f20
push eax
push edi
push ebp
call fcn.00509140
add esp, 0x14
test eax, eax
jne 0x504a95
push 0x80
lea ecx, [esp + 0x14]
call fcn.004e2f20
push eax
call ebx
lea eax, [esp + 0x10]
mov dword [esi + 0x20], edi
push eax
lea ecx, [esi + 0xc]
inc edi
call fcn.005042b0
mov ecx, esi
call fcn.005045b0
mov eax, dword [esi + 4]
test eax, eax
jne 0x504ba6
jmp 0x504aa2
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], ecx
mov ecx, esi
call fcn.005045b0
mov ecx, esi
call fcn.00504570
push ebp
call fcn.00509190
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.00504240
lea ecx, [esp + 0x20]
mov dword [esp + 0x164], 0xffffffff
call fcn.00504240
mov eax, 1
jmp 0x504c26
or edi, 0xffffffff
mov edx, dword [esi + 0x1c]
mov ecx, esi
mov dword [esi + 0x20], edx
call fcn.005045b0
mov ecx, esi
call fcn.00504570
test ebp, ebp
je 0x504bff
push ebp
call fcn.00509190
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call fcn.00504240
lea ecx, [esp + 0x20]
mov dword [esp + 0x164], 0xffffffff
call fcn.00504240
mov eax, edi
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 8