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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a551
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c1334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x28], edi
xor ebx, ebx
lea esi, [edi + 4]
mov dword [ebp - 0x24], ebx
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x427ab1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427850
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, edi
call fcn.00422980
push 0x5950c8
push dword [esi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 8
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
cmp eax, dword [edi + 0xc]
je 0x427a63
call fcn.00422040
mov ecx, eax
test ecx, ecx
je 0x427ac3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427acd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x595144
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00429f10
test al, al
jne 0x427928
push 0
push 0
push 0xffffffffffffffff
push 0x595144
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea esi, [eax - 1]
test esi, esi
jle 0x427920
mov edi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4278f9
push esi
lea ecx, [ebp - 0x14]
call fcn.0042b0d0
mov edi, dword [ebp - 0x14]
push esi
push edi
push 0xffffffffffffffff
push 0x595144
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [edi - 8]
jg 0x427ad4
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x42792b
lea ecx, [ebp - 0x14]
call fcn.0042b2b0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x42794c
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427ade
test ecx, ecx
jne 0x427968
call fcn.00422040
mov ecx, eax
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427ae8
test ecx, ecx
je 0x427af2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427afc
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
push dword [edi - 0xc]
mov edx, dword [esi]
lea ecx, [ebp - 0x20]
push edi
add eax, 0x10
or ebx, 1
mov dword [ebp - 0x20], eax
push dword [edx - 0xc]
mov dword [ebp - 0x24], ebx
call fcn.0042a4b0
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
add esp, 0xc
push esi
call fcn.004228a0
and ebx, 0xfffffffe
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4279fa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427b03
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x427b03
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x427a00
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x427a52
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x427b0a
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x427b0a
push 0
push dword [ecx + 4]
call esi
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
add eax, 4
mov edi, dword [ebp - 0x28]
jmp 0x427870
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
add eax, 4
mov edi, dword [ebp - 0x28]
jmp 0x427870
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push esi
call edi
push esi
call edi
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004213a0
call edx
jmp 0x4278a2
push 0x80070057
call fcn.004213a0
call dword [eax + 0x10]
mov ecx, eax
jmp 0x427948
call dword [eax + 0x10]
mov ecx, eax
jmp 0x427960
push 0x80004005
call fcn.004213a0
call edx
jmp 0x42797f
call edx
jmp 0x4279fa
call edx
jmp 0x427a52