Function at 0x10006e00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046932
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10062698]
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 esi, ecx
mov dword [ebp - 0x58], 0
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [esi + 4], edi
jne 0x10006ea4
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.10017be0
add esp, 8
push dword [ebp - 0x54]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10006e7b
push dword [ebp - 0x54]
mov ecx, esi
call fcn.100070f0
test eax, eax
je 0x10006e7b
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 4], eax
mov edx, dword [ebp - 0x54]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10006e9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 4], 0
je 0x10007091
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10023e50
mov ecx, dword [esi]
lea edx, [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x54], 0x40
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp - 0x54]
cmovae edx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
lea esi, [ebp - 0x50]
push esi
push dword [ebp + 0x18]
push edx
call dword [eax + 8]
mov edi, eax
call fcn.10016840
test eax, eax
je 0x10007091
call fcn.10016840
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 4]
call edx
test al, al
je 0x10007091
call fcn.10016840
mov ebx, eax
mov dword [ebp - 0xf8], 0x1004c2a0
lea eax, [ebp - 0xf8]
mov dword [ebp - 0x5c], eax
push 0
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0xac], 0x48
call fcn.10005ee0
mov eax, dword [ebp - 0xf8]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
mov dword [ebp - 0xf4], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1001b10d
mov esi, eax
add esp, 4
test esi, esi
je 0x10006fa6
push 1
mov byte [ebp - 4], 5
call fcn.1001258d
add esp, 4
mov dword [esi + 4], eax
jmp 0x10006fa8
xor esi, esi
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 4
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 6
push str.ExecScript_result_
push eax
call fcn.10006d40
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.10006d40
mov eax, dword [ebx]
lea ecx, [ebp - 0xf8]
add esp, 0x10
push ecx
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [ebp - 0xf8]
call fcn.10003760
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100070c1
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100070b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100070e1
push edx
push ecx
call fcn.1001b13d
add esp, 8
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.1001b4ae
mov esp, ebp
pop ebp
ret 0x18
call fcn.10026bbe
int3