Function at 0x1006e4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fbb50
mov eax, dword fs:[0]
push eax
sub esp, 0x1000
mov eax, dword [0x102519c8]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0xf8c], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xf78], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf7c], eax
mov dword [ebp - 0xf70], 0
push 0x410
push 0
lea eax, [ebp - 0x834]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, dword [ebx + 0x1c]
mov edx, 0x208
lea ecx, [ebp - 0x834]
mov eax, ecx
sub esi, eax
jmp 0x1006e570
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x1006e590
movzx eax, word [esi + ecx]
test ax, ax
je 0x1006e590
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1006e570
jmp 0x1006e594
test edx, edx
jne 0x1006e597
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push str....
lea eax, [ebp - 0x834]
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call edi
mov eax, 0x5c
mov word [ebp - 0x90c], ax
mov dword [ebp - 0x908], 0xffffffff
mov dword [ebp - 0x904], 0
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0xf6c]
call fcn.10024810
test eax, eax
jne 0x1006e5f8
lea ecx, [ebp - 0xf6c]
call fcn.10023f90
xor eax, eax
jmp 0x1006ea10
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, edi
cmp dword [ebp - 0x904], 0
je 0x1006e990
mov eax, dword [ebp - 0xf6c]
shr eax, 4
and eax, 1
je 0x1006e649
cmp word [ebp - 0xf40], 0x2e
jne 0x1006e649
mov cx, word [ebp - 0xf3e]
test cx, cx
je 0x1006e990
cmp cx, 0x2e
jne 0x1006e649
cmp word [ebp - 0xf3c], 0
je 0x1006e990
test eax, eax
je 0x1006e990
push 0x410
push 0
lea eax, [ebp - 0x424]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xf88]
push eax
lea ecx, [ebp - 0xf6c]
call fcn.10024c60
mov esi, dword [eax]
mov edx, 0x208
lea eax, [ebp - 0x424]
mov ecx, eax
sub esi, ecx
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x1006e6b0
movzx ecx, word [esi + eax]
test cx, cx
je 0x1006e6b0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1006e690
jmp 0x1006e6b4
test edx, edx
jne 0x1006e6b7
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0xf88]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006e6da
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push str.Extensionsexternal_extensions.json
lea eax, [ebp - 0x424]
push eax
call edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1006e6fa
push esi
call ebx
push 0x1f
call fcn.10003680
add esp, 4
test eax, eax
je 0x1006e713
lea ecx, [ebp - 0x424]
push ecx
call eax
jmp 0x1006e720
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test esi, esi
je 0x1006e72d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1006e990
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xfa4]
call fcn.10014510
lea eax, [ebp - 0xfa4]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x424]
push eax
call fcn.10002490
mov esi, dword [ebp - 0xf8c]
mov ecx, esi
call fcn.10072d10
test eax, eax
je 0x1006e969
lea ecx, [ebp - 0xfa4]
call fcn.100168e0
test al, al
jne 0x1006e969
lea ecx, [ebp - 0xfa4]
call fcn.100168f0
test al, al
je 0x1006e969
lea ecx, [ebp - 0x100c]
call fcn.10032d00
mov eax, dword [ebp - 0xf78]
push dword [eax + 8]
lea ecx, [ebp - 0x900]
call fcn.10007d10
push dword [eax]
lea ecx, [ebp - 0x84c]
call fcn.1000bb30
lea ecx, [ebp - 0x8fc]
mov eax, dword [ebp - 0x900]
cmp eax, ecx
je 0x1006e7df
push eax
call sub.msvcrt.dll_free
add esp, 4
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0xfa4]
call fcn.100149f0
mov ecx, eax
call fcn.100168e0
test al, al
jne 0x1006e953
lea eax, [ebp - 0x84c]
lea ecx, [ebp - 0xfa4]
push eax
cmp dword [ebp + 0xc], 0
je 0x1006e919
call fcn.100149f0
lea eax, [ebp - 0x84c]
push eax
lea ecx, [ebp - 0xfa4]
call fcn.100149f0
push eax
lea ecx, [ebp - 0xfc0]
call fcn.10014370
lea ecx, [ebp - 0x8c8]
call fcn.10017220
lea eax, [ebp - 0xfc0]
push eax
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.10019860
cmp dword [eax + 0x14], 0x10
jb 0x1006e866
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.10007b40
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x1006e87e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xf74]
call fcn.10002490
lea ecx, [ebp - 0x87c]
call fcn.10005250
lea ecx, [ebp - 0x864]
call fcn.1000c070
lea ecx, [ebp - 0xf84]
call fcn.1006b780
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0xf84]
call fcn.10008170
lea eax, [ebp - 0xf74]
push eax
lea ecx, [ebp - 0xf80]
call fcn.10002790
lea eax, [ebp - 0xf84]
push eax
mov ecx, dword [ebp - 0xf7c]
call fcn.10075860
mov dword [ebp - 0xf70], 1
lea ecx, [ebp - 0xf84]
call fcn.1006bdf0
lea ecx, [ebp - 0xf74]
call fcn.10007e10
lea ecx, [ebp - 0x8c8]
call fcn.10014770
lea ecx, [ebp - 0xfc0]
call fcn.10014820
jmp 0x1006e953
lea eax, [ebp - 0x864]
push eax
call fcn.100169f0
lea ecx, [ebp - 0x864]
call fcn.10014820
lea eax, [ebp - 0xfa4]
push eax
push ecx
mov ecx, esp
lea eax, [ebp - 0x424]
push eax
call fcn.10002490
mov ecx, esi
call fcn.1006c220
mov dword [ebp - 0xf70], eax
lea ecx, [ebp - 0x84c]
call fcn.1000c070
lea ecx, [ebp - 0x100c]
call fcn.1006bc60
lea ecx, [ebp - 0xfa4]
call fcn.10014820
mov dword [ebp - 4], 0xffffffff
jmp 0x1006e990
mov edi, dword [ebp - 0x908]
cmp edi, 0xffffffff
je 0x1006e9ff
cmp dword [ebp - 0x904], 0
je 0x1006e9ff
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1006e9b6
push esi
call ebx
push 0x18
call fcn.10003680
add esp, 4
test eax, eax
je 0x1006e9d0
lea ecx, [ebp - 0xf6c]
push ecx
push edi
call eax
jmp 0x1006e9de
lea eax, [ebp - 0xf6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test esi, esi
je 0x1006e9eb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x904], edi
test edi, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x1006e600
lea ecx, [ebp - 0xf6c]
call fcn.10023f90
mov eax, dword [ebp - 0xf70]
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.101f99c6
mov esp, ebp
pop ebp
ret 0xc