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

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
fstp dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
xor bl, bl
lea ecx, [ecx]
cmp byte [esp + 0x1c], 0
je 0x4a5982
push ebp
call fcn.004a5760
add esp, 4
test al, al
je 0x4a5982
push 0x80
push ebp
call fcn.004a58b0
add esp, 8
mov esi, 8
lea edi, [ebp + 4]
cmp dword [ebp + 0x18], esi
jb 0x4a5993
mov eax, dword [edi]
jmp 0x4a5995
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
je 0x4a5aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4a59b7
cmp esi, 3
jne 0x4a59c2
cmp byte [esp + 0x20], 0
jne 0x4a5b0b
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
fsub dword [esp + 0x10]
fstp dword [esp + 0x18]
fldz
fld dword [esp + 0x28]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4a5b61
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4a5b61
cmp esi, 5
je 0x4a5a0c
cmp esi, 0x20
jne 0x4a5b61
test bl, bl
jne 0x4a5a71
fstp st(0)
cmp byte [esp + 0x24], bl
je 0x4a5a6b
call fcn.004895c0
test al, al
jne 0x4a5a6b
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4a5a6b
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x18], 8
jb 0x4a5a4b
mov ecx, dword [edi]
jmp 0x4a5a4d
mov ecx, edi
mov edx, dword [eax]
push ecx
push esi
push str.Failed_to_delete_file__wait__error:__i__file:__S
push 0x121
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodeUtilsPnzFile.cpp
push 0
push eax
mov eax, dword [edx + 0x10]
call eax
add esp, 0x1c
fld dword [esp + 0x28]
mov bl, 1
fsub dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcomp qword [0x6916b0]
fnstsw ax
test ah, 0x41
jne 0x4a5a94
fld dword [0x691310]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
push ecx
fstp dword [esp]
call fcn.004a49a0
add esp, 4
jmp 0x4a5960
cmp byte [esp + 0x24], 0
je 0x4a5b03
call fcn.004895c0
test al, al
jne 0x4a5b03
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4a5b03
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x18], esi
jb 0x4a5ae3
mov ecx, dword [ebp + 4]
jmp 0x4a5ae6
lea ecx, [ebp + 4]
push ecx
push str.File_is_deleted__path:__S
push 0x10a
mov edx, dword [eax]
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodeUtilsPnzFile.cpp
push 0
push eax
mov eax, dword [edx + 0x10]
call eax
add esp, 0x18
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
cmp byte [esp + 0x24], 0
je 0x4a5b03
call fcn.004895c0
test al, al
jne 0x4a5b03
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4a5b03
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x18], 8
jb 0x4a5b51
mov ecx, dword [ebp + 4]
push ecx
push str.File_does_not_exist__path:__S
push 0x114
jmp 0x4a5af1
lea ecx, [ebp + 4]
push ecx
push str.File_does_not_exist__path:__S
push 0x114
jmp 0x4a5af1
fstp st(0)
call fcn.004895c0
test al, al
jne 0x4a5bb8
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x4a5bb8
call fcn.004895a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebp + 0x18], 8
jb 0x4a5b97
mov ecx, dword [ebp + 4]
jmp 0x4a5b9a
lea ecx, [ebp + 4]
mov edx, dword [eax]
push ecx
push esi
push str.Failed_to_delete_file__error:__i__file:__S
push 0x12e
push str.E:PnzBsPnzBsTempFBCVersion037_00SrcPnzCodeUtilsPnzFile.cpp
push 2
push eax
mov eax, dword [edx + 0x10]
call eax
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret