Function at 0x513f60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x5141c6
push ecx
push 0x641a00
call fcn.00545b40
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x5141c6
push 0xa
mov dword [ebp - 0x14], 0
mov esi, 4
call fcn.0056f8a6
push 0xffffffffffffffff
push str.data
push 5
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ecx
mov ecx, dword [0x648c18]
push eax
push edi
call fcn.005005c0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x51400f
push 2
push eax
call fcn.0056f898
add esp, 8
test ebx, ebx
je 0x51419d
push 0xa
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 4
call fcn.0056f8a6
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.data
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x20]
xor edx, edx
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00532760
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0xd], al
test ecx, ecx
je 0x51408d
push 2
push ecx
call fcn.0056f898
mov al, byte [ebp - 0xd]
add esp, 8
test al, al
je 0x514195
xor edi, edi
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00532cd0
test al, al
je 0x51418b
nop word [eax + eax]
push 0x12
mov dword [ebp - 0x18], 0
mov esi, 8
call fcn.0056f8a6
push 0xffffffffffffffff
push str.LOCATION
push 9
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00535430
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x51411a
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test esi, esi
je 0x514170
mov ecx, esi
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x514144
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push edi
call fcn.0056f898
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x51415b
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
mov edi, dword [ebp - 0x14]
add esp, 8
inc edi
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.00536a80
push edi
mov ecx, ebx
call fcn.00532cd0
test al, al
jne 0x5140b0
mov ecx, ebx
call fcn.00536a80
mov edi, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.004ff890
mov eax, dword [edi]
test eax, eax
je 0x5141b4
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret