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

Disassembly:
push 0xffffffffffffffff
push 0x533dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ebp, edx
mov dword [esp + 0x20], ebp
mov edi, ecx
test edi, edi
je 0x48b8fb
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x48b675
sub esi, ecx
sar esi, 1
je 0x48b8fb
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48b716
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48b716
cmp dword [0x59535c], eax
je 0x48b716
push edi
lea ecx, [esp + 0x28]
call fcn.00450d66
and dword [esp + 0x60], 0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x3c]
call fcn.00480835
mov esi, eax
mov byte [esp + 0x60], bl
cmp dword [esi + 0x14], 0x10
jb 0x48b6d5
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___before_create__delete_file__s___error__d_.
push 2
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x18
lea ecx, [esp + 0x3c]
push 0
push ebx
call fcn.0044ea00
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push ebx
call fcn.004510a8
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x59535c], 0
mov dword [ebp], eax
je 0x48b7ac
push edi
lea ecx, [esp + 0x28]
call fcn.00450d66
lea edx, [esp + 0x24]
mov dword [esp + 0x60], 2
lea ecx, [esp + 0x3c]
call fcn.00480835
mov byte [esp + 0x60], 3
cmp dword [eax + 0x14], 0x10
jb 0x48b76e
mov eax, dword [eax]
push dword [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___create_file__s___hFile__d___error__d_.
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x1c
lea ecx, [esp + 0x3c]
push 0
push ebx
call fcn.0044ea00
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x24]
push 0
push ebx
call fcn.004510a8
cmp esi, 0xffffffff
jne 0x48b85d
cmp dword [ebp], 0xb7
jne 0x48b8f0
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x59535c], 0
mov dword [ebp], eax
je 0x48b854
push edi
lea ecx, [esp + 0x28]
call fcn.00450d66
lea edx, [esp + 0x24]
mov dword [esp + 0x60], 4
lea ecx, [esp + 0x3c]
call fcn.00480835
mov byte [esp + 0x60], 5
cmp dword [eax + 0x14], 0x10
jb 0x48b81b
mov eax, dword [eax]
push dword [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___open_file__s__for_write__hFile__d___error__d_.
push 3
push dword [0x59535c]
call fcn.0047fca4
add esp, 0x1c
lea ecx, [esp + 0x3c]
push 0
push ebx
call fcn.0044ea00
push 0
push ebx
lea ecx, [esp + 0x2c]
call fcn.004510a8
cmp esi, 0xffffffff
je 0x48b8f0
mov eax, dword [esp + 0x6c]
xor ecx, ecx
cmp eax, ecx
jl 0x48b8da
mov ebp, dword [esp + 0x68]
jg 0x48b871
cmp ebp, ecx
jbe 0x48b8da
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
cmp eax, 0x83
jne 0x48b8a3
push 2
pop ebx
jmp 0x48b8dc
cmp dword [esp + 0x14], 0xffffffff
je 0x48b8dc
cmp dword [esp + 0x14], ebp
jne 0x48b8dc
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x18], eax
jne 0x48b8dc
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x48b8c9
xor ebx, ebx
jmp 0x48b8dc
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x48b8dc
mov ebx, ecx
test esi, esi
je 0x48b8ec
cmp esi, 0xffffffff
je 0x48b8ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x48b8f7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
jmp 0x48b8fe
push 3
pop eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00501f3e
add esp, 0x50
ret