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

Disassembly:
push 0xffffffffffffffff
push 0x5cf829
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
mov dword fs:[0], esp
call fcn.0051f3e0
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.0043bf90
mov dword [esp + 0x1060], 1
push str.example.htm
lea ecx, [esp + 0x28]
call fcn.0043bf90
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.0051d400
push 0x7fe
lea eax, [esp + 0x86a]
xor edx, edx
push edi
push eax
mov word [esp + 0x870], dx
call fcn.0051d400
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 0x5dc7b4
push edx
call fcn.004368f0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00438090
mov byte [esp + 0x1060], 3
lea ecx, [esp + 0x10]
call fcn.00438090
mov bl, 4
mov byte [esp + 0x1060], bl
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x58], esp
push 0x5deb60
call fcn.0043bf90
mov byte [esp + 0x106c], 5
push edi
lea eax, [esp + 0x868]
push eax
lea ecx, [esp + 0x58]
call fcn.0043bf90
mov byte [esp + 0x1070], 6
push 0x5dc7b4
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00406610
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.00428bf0
add esp, 0xc
mov byte [esp + 0x1078], 8
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x107c], 0xa
call fcn.004622d0
add esp, 0x1c
mov byte [esp + 0x1060], 0xb
push eax
lea ecx, [esp + 0x1c]
call fcn.00439f20
mov byte [esp + 0x1060], 0xa
lea ecx, [esp + 0x2c]
call fcn.004381e0
mov byte [esp + 0x1060], 9
lea ecx, [esp + 0x38]
call fcn.004381e0
mov byte [esp + 0x1060], bl
lea ecx, [esp + 0x44]
call fcn.004381e0
push 1
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x5deb60
call fcn.0043bf90
mov byte [esp + 0x106c], 0xc
push edi
lea eax, [esp + 0x868]
push eax
lea ecx, [esp + 0x40]
call fcn.0043bf90
mov byte [esp + 0x1070], 0xd
push 0x5dc7b4
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00406610
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.00428bf0
add esp, 0xc
mov byte [esp + 0x1078], 0xf
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x107c], 0x11
call fcn.004622d0
add esp, 0x1c
mov byte [esp + 0x1060], 0x12
push eax
lea ecx, [esp + 0x14]
call fcn.00439f20
mov byte [esp + 0x1060], 0x11
lea ecx, [esp + 0x44]
call fcn.004381e0
mov byte [esp + 0x1060], 0x10
lea ecx, [esp + 0x38]
call fcn.004381e0
mov byte [esp + 0x1060], bl
lea ecx, [esp + 0x2c]
call fcn.004381e0
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 0x5dbe20
push eax
call esi
cmp eax, 0x20
ja 0x467688
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x58]
push ecx
push 0x5dbe20
push edx
call esi
cmp eax, 0x20
jbe 0x46768d
mov edi, 1
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46769f
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 0x4676ea
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x58]
push eax
call fcn.00466da0
test eax, eax
je 0x4676ea
mov esi, dword [esp + 0x1068]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.0043bf90
jmp 0x4676fd
mov esi, dword [esp + 0x1068]
push 0x5dbe20
mov ecx, esi
call fcn.0043bf90
mov dword [esp + 0x20], 1
mov byte [esp + 0x1060], 3
lea ecx, [esp + 0x10]
call fcn.004381e0
mov byte [esp + 0x1060], 2
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x1060], 1
lea ecx, [esp + 0x24]
call fcn.004381e0
mov byte [esp + 0x1060], 0
lea ecx, [esp + 0x50]
call fcn.004381e0
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