Function at 0x54024c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5404b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x540492
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5403de
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00416704
cmp dword [ebp - 0x18], 0
jne 0x5402ea
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
xor ecx, ecx
xor edx, edx
call fcn.005572d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.004077f4
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x54031e
mov dword [ebp - 0xc], 0xf7f1bb53
jmp 0x54031e
mov eax, dword [ebp - 4]
call fcn.0052716c
test al, al
sete dl
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.005223fc
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x5404d4
call fcn.0041635c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004077f4
cmp dword [ebp - 0xc], 0
jne 0x540354
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dl, 1
mov eax, dword [0x536b6c]
call fcn.00559e5c
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00538b34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x5403bf
mov dword [ebp - 0xc], 0xf7f17355
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dl, 1
mov eax, dword [0x5375fc]
call fcn.00559e5c
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x28]
test al, al
je 0x5403bf
cmp byte [ebp + 8], 0
je 0x540398
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x58], 2
jmp 0x54039f
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x58], 1
cmp byte [ebp + 8], 0
je 0x5403af
mov dl, 3
mov eax, dword [ebp - 0x10]
call fcn.005276ac
mov cl, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00539b80
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x5403d4
mov edx, dword [ebp - 0xc]
neg edx
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0055a0d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x540427
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x540499
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.00405780
cmp dword [ebp - 0x10], 0
je 0x540484
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x50], 0
je 0x540484
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [ebp - 0xc], 0
je 0x540484
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004077f4
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.00405780
ret