Function at 0x4e5028
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 0x4e5287
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ce370
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 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 0x4e5265
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4e51b2
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00414590
cmp dword [ebp - 0x18], 0
jne 0x4e50cb
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ce618
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00406d60
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4e50fc
mov dword [ebp - 0xc], 0xffffd4ed
jmp 0x4e50fc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2c], 0
sete dl
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004c70e0
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x4e52a8
call fcn.004142a8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00406d60
cmp dword [ebp - 0xc], 0
jne 0x4e512d
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d7dec]
call fcn.004d8d90
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.004d4f28
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004da798
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4e5193
mov dword [ebp - 0xc], 0xffffd4ff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4d8bf0]
call fcn.004db95c
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
call fcn.004d33b4
test al, al
je 0x4e5193
cmp byte [ebp + 8], 0
je 0x4e516c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x64], 2
jmp 0x4e5173
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x64], 1
cmp byte [ebp + 8], 0
je 0x4e5183
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x120], 3
mov cl, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004dbb34
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4e51a8
mov edx, dword [ebp - 0xc]
neg edx
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004cef88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e51fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e526c
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x14], edx
call fcn.00404e68
cmp dword [ebp - 0x10], 0
je 0x4e5257
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
je 0x4e5257
mov eax, dword [ebp - 0x10]
call fcn.004d3224
cmp dword [ebp - 0xc], 0
je 0x4e5257
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.00406dec
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.00406d60
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x10], edx
call fcn.00404e68
ret