Function at 0x1001bf30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071166
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x1008ab54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.10040589
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1001bf7f
push 0x80004005
call fcn.10001100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push str.external_extensions.json
push esi
lea ecx, [ebp - 0x18]
push str._sextensions_s
push ecx
call fcn.10012ec0
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.10068e33
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
lea ecx, [ebp - 0x3c]
je 0x1001c02a
mov byte [ebp - 4], 1
call fcn.1006922c
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001bff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 2
push ebx
call fcn.10068e49
test eax, eax
lea ecx, [ebp - 0x3c]
jne 0x1001c09b
mov byte [ebp - 4], 1
call fcn.1006922c
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c064
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1006910e
mov edi, eax
push edi
mov dword [ebp - 0x50], edx
call fcn.1003efb3
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001c0fa
lea ecx, [ebp - 0x3c]
call fcn.100691f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1006922c
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001c0e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x1001bffd
push edi
push 0
push esi
call fcn.1004b150
add esp, 0xc
push edi
push esi
lea ecx, [ebp - 0x3c]
call fcn.10068f5d
lea ecx, [ebp - 0x3c]
call fcn.100691f0
and dword [ebp - 0x20], 0xfffffe00
mov dword [ebp - 0x1c], 0
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.10002770
lea eax, [ebp - 0x104]
call fcn.10037050
mov edi, eax
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.10037090
test al, al
lea edi, [ebp - 0x104]
sete bl
call fcn.1001c380
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.100027b0
push esi
call fcn.1003efae
add esp, 4
test bl, bl
jne 0x1001c25d
mov al, byte [ebp - 0x20]
test al, al
mov byte [ebp - 0x11], bl
je 0x1001c18f
cmp al, 7
jne 0x1001c25d
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.10034660
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x48]
xor edi, edi
test ebx, ebx
je 0x1001c24f
mov ecx, dword [ebp - 0x44]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1001c24f
lea esi, [ebp - 0x4c]
call fcn.1001e4a0
cmp dword [eax + 0x18], 0x10
jb 0x1001c1df
mov eax, dword [eax + 4]
jmp 0x1001c1e2
add eax, 4
push eax
lea ecx, [ebp - 0x50]
call fcn.10012ee0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x50]
mov ecx, dword [0x10093414]
push eax
push ecx
call fcn.10049690
add esp, 8
test eax, eax
jne 0x1001c224
lea esi, [ebp - 0x4c]
call fcn.1001e4a0
lea esi, [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.10034630
mov eax, esi
call fcn.100336a0
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001c247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
jmp 0x1001c1a4
cmp byte [ebp - 0x11], 0
jne 0x1001c299
lea esi, [ebp - 0x4c]
call fcn.1001e430
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.100336a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1006922c
lea ecx, [ebp - 0x18]
call fcn.10001ba0
lea ecx, [ebp + 8]
call fcn.10001ba0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1001c320
push esi
call fcn.10047be3
push 0
push 0x1002
push esi
lea ecx, [ebp - 0x3c]
call fcn.10068e49
test eax, eax
je 0x1001c255
lea esi, [ebp - 0x8c]
lea edi, [ebp - 0x28]
call fcn.100348f0
mov ebx, eax
lea esi, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.100348f0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x18], 0x10
mov ebx, dword [ebx + 0x14]
jb 0x1001c2f4
mov eax, dword [eax + 4]
jmp 0x1001c2f7
add eax, 4
push ebx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10068fd8
lea ecx, [ebp - 0x70]
call fcn.100027b0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 9
call fcn.100027b0
lea ecx, [ebp - 0x3c]
call fcn.100691f0
mov dword [ebp - 4], 7
lea esi, [ebp - 0x4c]
call fcn.1001e430
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.100336a0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.1006922c
lea ecx, [ebp - 0x18]
call fcn.10001ba0
lea ecx, [ebp + 8]
call fcn.10001ba0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret