Function at 0x586610
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ab35
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x5f30a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.0041e820
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 4], 0
jne 0x586665
jmp 0x586882
lea ecx, [ebp - 0xb8]
call fcn.0041e820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xbc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00472880
push eax
mov ecx, dword [ebp - 0xc8]
call fcn.00586470
test eax, eax
jne 0x5866cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041e800
jmp 0x586882
lea eax, [ebp - 0x10]
push eax
call fcn.00580ec0
add esp, 4
test eax, eax
jne 0x5866ff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041e800
jmp 0x586882
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00426620
push 0x5dacd4
lea ecx, [ebp - 0x10]
call fcn.0041d180
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.00472880
push eax
lea ecx, [ebp - 0xb4]
call fcn.00561190
mov byte [ebp - 4], 3
lea eax, [ebp - 0xb4]
push eax
push 0
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00580770
add esp, 0xc
test eax, eax
jne 0x586782
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.00561120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041e800
jmp 0x586882
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409010
push 0x5dacdc
push 0x5dace0
mov ecx, dword [ebp + 0xc]
call fcn.00426200
push 0
lea ecx, [ebp - 0x10]
call fcn.00472880
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00472880
push eax
call fcn.00425ec0
add esp, 0xc
test eax, eax
jne 0x5867f2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.00561120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041e800
jmp 0x586882
push 0
lea eax, [ebp - 0xc0]
push eax
call fcn.0057e4f0
add esp, 8
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xd0]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00409010
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.0041e800
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00426620
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.00561120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.0041e800
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041e800
xor ecx, ecx
jne 0x586654
lea ecx, [ebp - 0x10]
call fcn.0040d690
movzx edx, al
test edx, edx
jne 0x5868b3
lea ecx, [ebp - 0x10]
call fcn.00472880
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5868b3
lea ecx, [ebp - 0x10]
call fcn.00472880
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041e800
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10