Function at 0x493ba0
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 0x568e62
mov eax, dword fs:[0]
push eax
mov eax, 0x1718
call fcn.00527d30
mov eax, dword [0x5d6b80]
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 - 0x171c], ebx
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x1700], eax
call fcn.004948e0
test eax, eax
je 0x493fb2
mov eax, dword [ebx + 0x14]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x49408f
push 0x5c
push eax
call fcn.00529034
add esp, 8
test eax, eax
jne 0x493c14
or eax, 0xffffffff
jmp 0x493c19
sub eax, dword [ebx + 0x14]
sar eax, 1
inc eax
lea ecx, [ebx + 0x14]
push eax
lea eax, [ebp - 0x1710]
push eax
call fcn.0045b030
push dword [0x5d68f8]
lea eax, [ebp - 0x1710]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1708]
push eax
call fcn.00480bb0
add esp, 0xc
push dword [ebp - 0x1708]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x493c79
push eax
push dword [ebp - 0x1708]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x493f6b
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x493c95
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1714], eax
mov ecx, dword [ebp - 0x171c]
lea eax, [ebp - 0x1714]
push eax
push dword [ebp - 0x1700]
mov byte [ebp - 4], 2
call fcn.00490130
mov esi, dword [ebp - 0x1714]
test eax, eax
je 0x493f4e
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x493ce9
push 0x80004005
call fcn.0045a8f0
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.0045acb0
add esp, 0xc
lea ecx, [ebp - 0x1704]
push 0x57a900
push 0x57b7d8
call fcn.004601f0
push 0x57e140
lea eax, [ebp - 0x1708]
push eax
lea eax, [ebp - 0x1720]
push eax
call fcn.00480bb0
lea ecx, [ebp - 0x1704]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x1718]
push eax
call fcn.00480af0
add esp, 0x18
mov edx, dword [ebp - 0x1720]
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 0x493d7b
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.00525ee0
add esp, 0xc
lea eax, [ebp - 0x1678]
push eax
push 0x924
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x493f17
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 0x493f38
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 - 0x170c], edi
cmp edi, 0xffffffff
je 0x493f2b
lea eax, [ebp - 0x16f8]
mov dword [ebp - 0x16fc], eax
lea ecx, [ebp - 0x16fc]
mov eax, dword [ebp - 0x1700]
push 0xfde9
push dword [eax]
call fcn.00491750
mov edx, dword [ebp - 0x16fc]
mov ecx, edx
mov dword [ebp - 0x1724], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x1700], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x493e45
sub ecx, dword [ebp - 0x1700]
lea eax, [ebp - 0x1724]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x170c]
mov edi, eax
mov dword [ebp - 0x1700], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x16fc]
lea ecx, [ebp - 0x16f8]
cmp eax, ecx
je 0x493e91
push eax
call fcn.0052616f
add esp, 4
test edi, edi
je 0x493f2b
push 0
push dword [ebp - 0x1718]
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 - 0x170c]
push eax
call fcn.00480bb0
add esp, 0xc
push dword [eax]
call edi
lea ecx, [ebp - 0x170c]
call fcn.0048ceb0
push str.search.json.mozlz4
lea eax, [ebp - 0x1710]
push eax
lea eax, [ebp - 0x170c]
push eax
call fcn.00480bb0
add esp, 0xc
push dword [eax]
call edi
lea ecx, [ebp - 0x170c]
call fcn.0048ceb0
mov edi, dword [ebp - 0x1700]
cmp dword [ebp + 0x10], 0
jne 0x493fb9
mov edi, 1
jmp 0x493fe5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1718]
call fcn.0048ceb0
lea ecx, [ebp - 0x1704]
call fcn.0048ceb0
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 0x493f6b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1708]
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 0x493f8e
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 0x493fb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x494091
cmp dword [esi - 0xc], 0
je 0x493fe5
mov ecx, dword [ebp - 0x171c]
lea eax, [ebp - 0x1714]
push 1
push 0
push eax
call fcn.00494180
mov esi, dword [ebp - 0x1714]
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov edx, dword [ebp - 0x1718]
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 0x494008
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 0x49402b
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 0x494048
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1708]
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 0x49406b
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 0x49408f
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.00525878
mov esp, ebp
pop ebp
ret 0xc