Function at 0x468010
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb60d
mov eax, dword fs:[0]
push eax
mov eax, 0x171c
call fcn.004dae70
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1724], ebx
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x170c], eax
call fcn.00468a80
test eax, eax
je 0x4683ff
mov eax, dword [ebx + 0x14]
xor edi, edi
mov dword [ebp - 0x1708], edi
cmp dword [eax - 0xc], edi
je 0x468508
push 0x5c
push eax
call fcn.004dae9b
add esp, 8
test eax, eax
jne 0x46808a
or eax, 0xffffffff
jmp 0x46808f
sub eax, dword [ebx + 0x14]
sar eax, 1
inc eax
lea ecx, [ebx + 0x14]
push eax
lea eax, [ebp - 0x1710]
push eax
call fcn.0043b0a0
push dword [0x53e8ac]
lea eax, [ebp - 0x1710]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1700]
push eax
call fcn.004592f0
add esp, 0xc
push dword [ebp - 0x1700]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x4680ef
push eax
push dword [ebp - 0x1700]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4683b8
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46810b
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x171c], eax
mov ecx, dword [ebp - 0x1724]
lea eax, [ebp - 0x171c]
push eax
push dword [ebp - 0x170c]
mov byte [ebp - 4], 2
call fcn.00464b90
mov esi, dword [ebp - 0x171c]
test eax, eax
je 0x46839b
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46815f
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1704], eax
push esi
lea eax, [ebp - 0x1704]
mov byte [ebp - 4], 3
push str.APN__s.xml
push eax
call fcn.0043ad30
add esp, 0xc
lea ecx, [ebp - 0x1704]
push 0x507ffc
push 0x508920
call fcn.0044b1f0
push 0x509c8c
lea eax, [ebp - 0x1700]
push eax
lea eax, [ebp - 0x1728]
push eax
call fcn.004592f0
lea ecx, [ebp - 0x1704]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x1720]
push eax
call fcn.004625b0
add esp, 0x18
mov edx, dword [ebp - 0x1728]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4681f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x145e
push eax
mov word [ebp - 0x1678], ax
lea eax, [ebp - 0x1676]
push eax
call fcn.004d9060
add esp, 0xc
lea eax, [ebp - 0x1678]
push eax
push 0x924
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x468364
lea eax, [ebp - 0x218]
push eax
push 0
push str.askcomxml_
lea eax, [ebp - 0x1678]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x468385
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1718], edi
cmp edi, 0xffffffff
je 0x468378
lea eax, [ebp - 0x16f8]
mov dword [ebp - 0x16fc], eax
lea ecx, [ebp - 0x16fc]
mov eax, dword [ebp - 0x170c]
push 0xfde9
push dword [eax]
call fcn.00465ce0
mov edx, dword [ebp - 0x16fc]
mov ecx, edx
mov dword [ebp - 0x170c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1714], eax
jmp 0x4682c0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4682c0
sub ecx, dword [ebp - 0x1714]
lea eax, [ebp - 0x170c]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1718]
mov edi, eax
mov dword [ebp - 0x1708], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x16fc]
lea ecx, [ebp - 0x16f8]
cmp eax, ecx
je 0x46830c
push eax
call fcn.004d92bb
add esp, 4
test edi, edi
je 0x468378
push 0
push dword [ebp - 0x1720]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
call edi
push str.search.json
lea eax, [ebp - 0x1710]
push eax
lea eax, [ebp - 0x1718]
push eax
call fcn.004592f0
add esp, 0xc
push dword [eax]
call edi
lea ecx, [ebp - 0x1718]
call fcn.00441080
mov edi, dword [ebp - 0x1708]
cmp dword [ebp + 0x10], 0
jne 0x468406
mov edi, 1
jmp 0x46845e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1720]
call fcn.00441080
lea ecx, [ebp - 0x1704]
call fcn.00441080
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4683b8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1700]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4683db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1710]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4683ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x46850a
cmp dword [esi - 0xc], 0
je 0x46845e
push str.browser.search.selectedEngine
lea ecx, [ebp - 0x1714]
call fcn.0043a420
mov ecx, dword [ebp - 0x1724]
lea eax, [ebp - 0x171c]
push eax
lea eax, [ebp - 0x1714]
mov byte [ebp - 4], 7
push eax
call fcn.00468e80
lea ecx, [ebp - 0x1714]
mov edi, eax
call fcn.00441080
mov edx, dword [ebp - 0x1708]
test edi, edi
mov eax, 1
cmovne edx, eax
mov dword [ebp - 0x1708], edx
mov edi, edx
mov edx, dword [ebp - 0x1720]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468481
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1704]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4684a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4684c1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1700]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4684e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1710]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x468508
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 0xc