Function at 0x486bf0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x546040
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00516fef
mov eax, dword [ebp + 0x30]
xor esi, esi
lea ebx, [ebp + 8]
cmp eax, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x10], ebx
mov dword [ebx], esi
mov dword [ebp + 0xc], esi
je 0x486c6b
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x486c6b
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.005170e4
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0x10
mov ecx, dword [esp + 0x7c]
push esi
push 0x1001
mov eax, dword [ecx]
lea ecx, [esp + 0x1c]
push eax
call fcn.005171a1
test eax, eax
jne 0x486cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
mov dword [edx], eax
call fcn.005170e4
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 0x10
push 4
push ebx
lea ecx, [esp + 0x1c]
call fcn.005172f8
push esi
push 0x1000
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0051af01
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
add edx, 4
lea ecx, [esp + 0x24]
cmp edx, eax
mov byte [esp + 0x70], 1
mov dword [ebp + 0x10], ecx
jbe 0x486d01
lea ecx, [esp + 0x24]
call fcn.0051b212
mov eax, dword [esp + 0x48]
push edi
mov dword [eax], 0x13131b9
mov edx, dword [esp + 0x4c]
mov eax, dword [ebp + 0x40]
add edx, 4
cmp eax, esi
mov dword [esp + 0x4c], edx
jle 0x486d9a
mov edi, dword [ebp + 0x38]
cmp edi, esi
je 0x486dc0
mov eax, edi
mov edi, dword [edi]
lea ecx, [esp + 0x7c]
mov esi, dword [eax + 8]
push esi
call fcn.00512659
push 0x5c
lea ecx, [esp + 0x80]
mov byte [esp + 0x78], 2
call fcn.0050e776
mov ebx, dword [esi + 8]
mov ecx, dword [esp + 0x88]
mov dword [esi + 8], 1
mov edx, dword [esp + 0x7c]
push ecx
push edx
mov ecx, ebp
call fcn.00486600
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov dword [esi + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], 1
call fcn.005128e4
test edi, edi
jne 0x486d29
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
jmp 0x486dc4
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x88]
push ecx
mov ecx, ebp
mov eax, dword [edx]
push eax
call fcn.00486600
mov edx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [esp + 0x84]
mov dword [eax], edx
jmp 0x486dc4
mov esi, dword [esp + 0x10]
push 0x5a14b8
lea ecx, [esp + 0x88]
call fcn.00512952
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x7c], 3
call fcn.0051ac88
lea ecx, [esp + 0x84]
mov byte [esp + 0x74], 1
call fcn.005128e4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
add edx, 4
pop edi
cmp edx, eax
jbe 0x486e0f
lea ecx, [esp + 0x24]
call fcn.0051b212
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
mov dword [eax], 0
mov edx, dword [esp + 0x48]
add edx, 4
mov dword [esp + 0x48], edx
call fcn.0051b065
mov edx, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [ebp + 0x10], 0
call dword [edx + 0x28]
push 4
push ebx
lea ecx, [esp + 0x1c]
call fcn.005172f8
mov eax, dword [esp + 0x14]
push 2
push 0
lea ecx, [esp + 0x1c]
call dword [eax + 0x28]
lea ecx, [esp + 0x14]
call fcn.005173bc
test esi, esi
jge 0x486e78
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 0
call fcn.0051afdd
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.005170e4
mov ecx, dword [esp + 0x68]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 0x10