Function at 0x10067b20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10103722
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x10145fb4]
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 dword [ebp - 0x858], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100cdc50
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100cdc50
add esp, 0x18
lea eax, [ebp - 0x830]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
mov edx, 0x104
lea esi, [ebp - 0x830]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10067bc3
movzx eax, word [esi + ecx]
test ax, ax
je 0x10067bc3
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10067ba5
lea eax, [ecx - 2]
test edx, edx
push 0x208
cmovne eax, ecx
xor ecx, ecx
push ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
call fcn.100cdc50
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10009850
mov ecx, eax
test ecx, ecx
je 0x10067dfb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x854], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push eax
call ebx
push str.JsBasiclog
lea eax, [ebp - 0x628]
push eax
call ebx
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10067c61
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.10009850
mov ecx, eax
test ecx, ecx
je 0x10067e05
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84c]
test eax, 0xffff0000
jne 0x10067ca0
movzx eax, ax
push eax
call fcn.100099c0
jmp 0x10067ca6
push eax
call fcn.1003a3d0
push 0
lea eax, [ebp - 0x84c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.10092160
add esp, 0xc
mov edx, dword [ebp - 0x84c]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067ce6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x850]
lea eax, [ebp - 0x854]
push str.JsBasicLog_s.js_basic.log
push eax
call fcn.10014e70
mov esi, dword [ebp - 0x854]
lea eax, [ebp - 0x218]
add esp, 0xc
push esi
push eax
call ebx
push dword [ebp - 0x850]
lea ecx, [ebp - 0x848]
call fcn.10007ab0
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x848]
push eax
mov byte [ebp - 4], 5
call fcn.10067ee0
mov edx, dword [ebp - 0x834]
mov ebx, eax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x10067d7d
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10067d73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10067e0f
push edx
push ecx
call fcn.100b21ce
add esp, 8
lea eax, [ebp - 0x218]
push 0x1010cb24
test ebx, ebx
je 0x10067d93
push 0xa00000
jmp 0x10067d98
push 0x6400000
push 0
push 1
push eax
call fcn.1007b970
mov edx, dword [ebp - 0x850]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10067dc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10067ddf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.100b254d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009640
push 0x80004005
call fcn.10009640
call fcn.100d129a
int3