Function at 0x548fb0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c237
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5da084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov esi, ecx
mov dword [ebp - 0x1c], 0
or edi, 0xffffffff
cmp byte [0x5df50d], 0
je 0x549034
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00543e90
mov dword [ebp - 4], 0
push dword [eax]
push str.GsDeleteFile:_sFile_s_n
call fcn.005438c0
mov dword [ebp - 4], edi
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x549034
cmp dword [ecx + 4], 0
jle 0x549034
push ecx
call fcn.00577de8
add esp, 4
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.005447c0
add eax, 0x10
mov dword [ebp - 0x14], eax
sub esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0054aa10
test eax, eax
je 0x549065
sub esp, 0xc
call fcn.00543e30
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00414d80
mov ebx, dword [ebp + 8]
mov edx, ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
call fcn.00548be0
mov esi, dword [ebp - 0x18]
add esp, 8
test al, al
je 0x5491d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5492a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov edx, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
call fcn.00544000
add esp, 4
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00544730
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5490e9
cmp dword [ecx + 4], 0
jle 0x5490e9
push ecx
call fcn.00577de8
add esp, 4
cmp dword [ebp - 0x20], 5
jne 0x5491b9
cmp byte [0x5df50d], 0
je 0x54910a
push esi
push str.GsDeleteFile:_SetFileAttributes:_sWinPathPfx_s_n
call fcn.005438c0
add esp, 8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x549224
push dword [ebp - 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.00544000
add esp, 4
mov edx, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00414d80
mov eax, dword [edx]
mov ecx, str.Cannot_delete_file__set_attrs_:
mov dword [ebp - 0x1c], 1
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00544610
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00544730
mov ecx, dword [ebp - 0x10]
mov eax, edi
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x549194
cmp dword [ecx + 4], 0
jle 0x549194
push ecx
call fcn.00577de8
add esp, 4
mov byte [ebp - 4], 2
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 8], eax
dec eax
test eax, eax
jg 0x5491b9
cmp dword [ecx + 4], 0
jle 0x5491b9
push ecx
call fcn.00577de8
add esp, 4
cmp byte [0x5df50d], 0
je 0x5491d1
push dword [ebx]
push str.GsDeleteFile:_err_s_n
call fcn.005438c0
add esp, 8
xor bl, bl
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
test eax, eax
jg 0x5491f1
cmp dword [esi + 4], 0
jle 0x5491f1
push esi
call fcn.00577de8
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 8], edi
dec edi
test edi, edi
jg 0x549210
cmp dword [eax + 4], 0
jle 0x549210
push eax
call fcn.00577de8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x5df50d], 0
je 0x54923b
push esi
push str.GsDeleteFile:_DeleteFile2:_sWinPathPfx_s_n
call fcn.005438c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x549289
push dword [ebp - 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.00544000
add esp, 4
mov edx, eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00414d80
mov eax, dword [edx]
mov ecx, str.Cannot_delete_file__2nd_try_:
mov dword [ebp - 0x1c], 2
push dword [eax - 0x10]
push eax
call fcn.00416660
mov edx, ecx
jmp 0x54915c
cmp byte [0x5df50d], 0
je 0x5492bc
push str.GsDeleteFile:_ret_OK_after_retry_n
call fcn.005438c0
add esp, 4
mov bl, 1
jmp 0x5491d3
cmp byte [0x5df50d], 0
je 0x5492bc
push str.GsDeleteFile:_ret_OK_n
call fcn.005438c0
add esp, 4
mov bl, 1
jmp 0x5491d3