Function at 0x41ed10
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3719
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
mov dword fs:[0], esp
call fcn.0047af40
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], ecx
xor edi, edi
push str.example.html
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], edi
call fcn.00418470
mov dword [esp + 0x1060], 1
push str.example.htm
lea ecx, [esp + 0x28]
call fcn.00418470
mov byte [esp + 0x1060], 2
push 0x7fe
lea ecx, [esp + 0x5e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x64], ax
call fcn.0047a4b0
push 0x7fe
lea eax, [esp + 0x86a]
xor edx, edx
push edi
push eax
mov word [esp + 0x870], dx
call fcn.0047a4b0
add esp, 0x18
lea ecx, [esp + 0x858]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea edx, [esp + 0x85c]
push 0x4e90cc
push edx
call fcn.00417180
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.004173e0
mov byte [esp + 0x1060], 3
lea ecx, [esp + 0x10]
call fcn.004173e0
mov bl, 4
mov byte [esp + 0x1060], bl
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x4e9fdc
call fcn.00418470
mov byte [esp + 0x106c], 5
push edi
lea eax, [esp + 0x868]
push eax
lea ecx, [esp + 0x58]
call fcn.00418470
mov byte [esp + 0x1070], 6
push 0x4e90cc
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00404a80
mov byte [esp + 0x107c], 7
add esp, 4
mov edx, esp
mov dword [esp + 0x58], esp
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
call fcn.0040f2e0
add esp, 0xc
mov byte [esp + 0x1078], 8
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x107c], 0xa
call fcn.0041c880
add esp, 0x1c
mov byte [esp + 0x1060], 0xb
push eax
lea ecx, [esp + 0x1c]
call fcn.004027a0
mov byte [esp + 0x1060], 0xa
lea ecx, [esp + 0x2c]
call fcn.00417490
mov byte [esp + 0x1060], 9
lea ecx, [esp + 0x38]
call fcn.00417490
mov byte [esp + 0x1060], bl
lea ecx, [esp + 0x44]
call fcn.00417490
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x4e9fdc
call fcn.00418470
mov byte [esp + 0x106c], 0xc
push edi
lea eax, [esp + 0x868]
push eax
lea ecx, [esp + 0x40]
call fcn.00418470
mov byte [esp + 0x1070], 0xd
push 0x4e90cc
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00404a80
mov byte [esp + 0x107c], 0xe
add esp, 4
mov edx, esp
mov dword [esp + 0x64], esp
lea ecx, [esp + 0x3c]
push ecx
push eax
push edx
call fcn.0040f2e0
add esp, 0xc
mov byte [esp + 0x1078], 0xf
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x107c], 0x11
call fcn.0041c880
add esp, 0x1c
mov byte [esp + 0x1060], 0x12
push eax
lea ecx, [esp + 0x14]
call fcn.004027a0
mov byte [esp + 0x1060], 0x11
lea ecx, [esp + 0x44]
call fcn.00417490
mov byte [esp + 0x1060], 0x10
lea ecx, [esp + 0x38]
call fcn.00417490
mov byte [esp + 0x1060], bl
lea ecx, [esp + 0x2c]
call fcn.00417490
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push 2
push edi
push edi
push edi
push eax
call esi
mov ecx, dword [esp + 0x10]
push edi
push edi
push 2
push edi
push edi
push edi
push ecx
mov ebx, eax
call esi
mov esi, dword [sym.imp.SHELL32.dll_FindExecutableW]
lea edx, [esp + 0x58]
push edx
mov ebp, eax
mov eax, dword [esp + 0x1c]
push 0x4e88c0
push eax
call esi
cmp eax, 0x20
ja 0x41efd8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x58]
push ecx
push 0x4e88c0
push edx
call esi
cmp eax, 0x20
jbe 0x41efdd
mov edi, 1
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41efef
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
test edi, edi
je 0x41f03a
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x58]
push eax
call fcn.0041ea00
test eax, eax
je 0x41f03a
mov esi, dword [esp + 0x1068]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00418470
jmp 0x41f04d
mov esi, dword [esp + 0x1068]
push 0x4e88c0
mov ecx, esi
call fcn.00418470
mov dword [esp + 0x20], 1
mov byte [esp + 0x1060], 3
lea ecx, [esp + 0x10]
call fcn.00417490
mov byte [esp + 0x1060], 2
lea ecx, [esp + 0x18]
call fcn.00417490
mov byte [esp + 0x1060], 1
lea ecx, [esp + 0x24]
call fcn.00417490
mov byte [esp + 0x1060], 0
lea ecx, [esp + 0x50]
call fcn.00417490
mov ecx, dword [esp + 0x1058]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1054
ret 4