Function at 0x513160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1e88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x5133c6
push ecx
push 0x640948
call fcn.00544d50
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x5133c6
push 0xa
mov dword [ebp - 0x14], 0
mov esi, 4
call fcn.0056ea97
push 0xffffffffffffffff
push str.data
push 5
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
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 [0x647af8]
push eax
push edi
call fcn.004ff890
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x51320f
push 2
push eax
call fcn.0056ea89
add esp, 8
test ebx, ebx
je 0x51339d
push 0xa
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 4
call fcn.0056ea97
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.00584f75
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.00531970
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 0xd], al
test ecx, ecx
je 0x51328d
push 2
push ecx
call fcn.0056ea89
mov al, byte [ebp - 0xd]
add esp, 8
test al, al
je 0x513395
xor edi, edi
mov ecx, ebx
push edi
mov dword [ebp - 0x14], edi
call fcn.00531ee0
test al, al
je 0x51338b
nop word [eax + eax]
push 0x12
mov dword [ebp - 0x18], 0
mov esi, 8
call fcn.0056ea97
push 0xffffffffffffffff
push str.LOCATION
push 9
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00584f75
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.00534640
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x51331a
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test esi, esi
je 0x513370
mov ecx, esi
call fcn.00545f90
mov edi, eax
test edi, edi
je 0x513344
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push edi
call fcn.0056ea89
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x51335b
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
mov edi, dword [ebp - 0x14]
add esp, 8
inc edi
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.00535c90
push edi
mov ecx, ebx
call fcn.00531ee0
test al, al
jne 0x5132b0
mov ecx, ebx
call fcn.00535c90
mov edi, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.004feb60
mov eax, dword [edi]
test eax, eax
je 0x5133b4
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
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