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

Disassembly:
push 0x54
mov eax, 0x506756
call fcn.004d9a2f
xor ebx, ebx
mov dword [ebp - 0x54], edx
cmp edx, ebx
je 0x43047d
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43020c
sub eax, esi
sar eax, 1
je 0x43047d
push edx
mov dword [ebp - 0x50], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4302b2
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4302b2
cmp dword [0x5500d4], ebx
je 0x4302b2
push dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
call fcn.0040ed9b
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00428151
pop ecx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x430275
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
call esi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___before_create__delete_file__s___error__d_.
call fcn.0042749e
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040248a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
call esi
mov dword [edi], eax
cmp dword [0x5500d4], ebx
je 0x43033e
push dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
call fcn.0040ed9b
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00428151
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x430304
mov eax, dword [eax]
push dword [edi]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___create_file__s___hFile__d___error__d_.
call fcn.0042749e
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040248a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4303e7
cmp dword [edi], 0xb7
jne 0x43046f
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
call esi
mov dword [edi], eax
cmp dword [0x5500d4], ebx
je 0x4303dd
push dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
call fcn.0040ed9b
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call fcn.00428151
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x4303a7
mov eax, dword [eax]
push dword [edi]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___open_file__s__for_write__hFile__d___error__d_.
call fcn.0042749e
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040248a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
cmp dword [ebp - 0x4c], 0xffffffff
je 0x43046f
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jl 0x430453
jg 0x4303f5
cmp dword [ebp + 8], ebx
jbe 0x430453
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push ecx
push dword [ebp - 0x4c]
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x60], eax
call esi
mov dword [edi], eax
cmp eax, 0x83
jne 0x430424
mov dword [ebp - 0x50], 2
jmp 0x430456
mov eax, dword [ebp - 0x60]
cmp eax, 0xffffffff
je 0x430456
cmp eax, dword [ebp + 8]
jne 0x430456
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp + 0xc]
jne 0x430456
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x430453
mov dword [ebp - 0x50], 2
call esi
mov dword [edi], eax
jmp 0x430456
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x4c], ebx
je 0x43046a
cmp dword [ebp - 0x4c], 0xffffffff
je 0x43046a
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], ebx
je 0x430478
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x50]
jmp 0x430480
push 3
pop eax
call fcn.004d9ab2
ret