Function at 0x1000f090
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10119d38
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x1016f070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x838], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 0
jne 0x1000f149
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x10143c14
mov word [edi], ax
call fcn.10004bf0
mov dword [ebp - 0x838], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x1000f5fb
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f5f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f62b
jmp 0x1000f5f1
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.100f2c30
add esp, 0xc
lea eax, [ebp - 0x814]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000f5cc
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x814]
push str.Page
push eax
call esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000f1ad
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Page.html
lea eax, [ebp - 0x814]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
mov dword [ebp - 0x834], 0
call fcn.100da635
add esp, 4
mov dword [ebp - 0x830], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x834], eax
mov byte [ebp - 4], 3
xor eax, eax
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 7
mov word [ebp - 0x82c], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f240
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x82c]
call fcn.10004bf0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x82c]
push 0x80
push 2
push 1
push 0x10000000
push eax
lea ecx, [ebp - 0x834]
call fcn.100999b0
mov bl, al
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x818]
cmp edx, 8
jb 0x1000f2cc
mov ecx, dword [ebp - 0x82c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f2c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f630
push edx
push ecx
call fcn.100da665
add esp, 8
xor eax, eax
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 7
mov word [ebp - 0x82c], ax
test bl, bl
je 0x1000f591
push 8
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], eax
push str._html__r_n
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], al
call fcn.10011ff0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x818]
mov eax, ecx
mov ebx, dword [ebp - 0x81c]
sub eax, ebx
push 0x2a
push str._meta_http_equiv_refresh__content_0_url
cmp eax, 0x2a
jb 0x1000f371
cmp ecx, 0x10
lea esi, [ebp - 0x82c]
lea eax, [ebx + 0x2a]
cmovae esi, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], eax
lea eax, [esi + ebx]
push eax
call fcn.100f26b0
add esp, 0xc
mov byte [esi + ebx + 0x2a], 0
jmp 0x1000f38b
mov byte [ebp - 0x83c], 0
lea ecx, [ebp - 0x82c]
push dword [ebp - 0x83c]
push 0x2a
call fcn.10012700
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x858]
call fcn.1009b6c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x82c]
push eax
call fcn.10011d90
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x844]
cmp edx, 0x10
jb 0x1000f3e7
mov ecx, dword [ebp - 0x858]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f3dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f635
push edx
push ecx
call fcn.100da665
add esp, 8
mov ecx, dword [ebp - 0x818]
mov eax, ecx
mov ebx, dword [ebp - 0x81c]
sub eax, ebx
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0xf
mov byte [ebp - 0x858], 0
push 0xb
push str.___r_n__html_
cmp eax, 0xb
jb 0x1000f44a
cmp ecx, 0x10
lea esi, [ebp - 0x82c]
lea eax, [ebx + 0xb]
cmovae esi, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], eax
lea eax, [esi + ebx]
push eax
call fcn.100f26b0
add esp, 0xc
mov byte [esi + ebx + 0xb], 0
jmp 0x1000f464
mov byte [ebp - 0x83c], 0
lea ecx, [ebp - 0x82c]
push dword [ebp - 0x83c]
push 0xb
call fcn.10012700
cmp dword [ebp - 0x818], 0x10
lea ecx, [ebp - 0x830]
push ecx
push dword [ebp - 0x81c]
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x830], 0
cmovae eax, dword [ebp - 0x82c]
lea ecx, [ebp - 0x834]
push eax
call fcn.10099b50
lea ecx, [ebp - 0x834]
test al, al
je 0x1000f533
call fcn.10099ba0
lea eax, [ebp - 0x814]
mov ecx, edi
push eax
call fcn.10004b20
mov dword [ebp - 0x838], 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x818]
cmp edx, 0x10
jb 0x1000f504
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f4fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f63a
push edx
push ecx
call fcn.100da665
add esp, 8
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.10099940
jmp 0x1000f108
call fcn.10099ba0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x818]
cmp edx, 0x10
jb 0x1000f576
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f56c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f62b
push edx
push ecx
call fcn.100da665
add esp, 8
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x834]
test esi, esi
je 0x1000f5cc
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000f5b7
test eax, eax
je 0x1000f5b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.100da665
add esp, 8
mov dword [ebp - 0x834], 0
xor eax, eax
mov dword [edi + 0x10], 0
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
push 0x10143c14
mov word [edi], ax
call fcn.10004bf0
jmp 0x1000f0fe
push edx
push ecx
call fcn.100da665
add esp, 8
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], eax
mov word [ebp + 0xc], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100da624
mov esp, ebp
pop ebp
ret 0x1c
call fcn.100f5ab9
call fcn.100f5ab9
call fcn.100f5ab9
call fcn.100f5ab9
int3