Function at 0x10022350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013f8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x101811b8]
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
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100224df
push 0x33
push str.d:_buildlib_commonwnd_pluginconfigconfigmgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1001e980
mov byte [ebp - 4], 1
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x43
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10011dd0
mov esi, eax
push str.init_config
push esi
mov byte [ebp - 4], 2
call fcn.10014590
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10014a50
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10022483
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022479
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022732
push edx
push ecx
call fcn.1010be48
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x100224df
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100224d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022737
push edx
push ecx
call fcn.1010be48
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x10184fcc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.PluginConfigCenterStub.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
lea esi, [ebx + 0x98]
push eax
mov dword [ebp - 0x27c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002258c
lea eax, [ebp - 0x218]
push eax
call fcn.10057ba0
add esp, 4
test eax, eax
je 0x1002258c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1002258c
push str.GetConfigCenterEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002258c
call eax
mov dword [esi], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x10022622
mov eax, dword [ecx]
push str.wnd_plugin_v2_stub
push ecx
call dword [eax + 4]
lea eax, [ebx + 4]
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
call fcn.10015280
mov ecx, eax
call fcn.10059ac0
mov edi, eax
test edi, edi
je 0x10022710
mov ecx, dword [esi]
push dword [edi + 0xc]
push 0x10147748
mov edx, dword [ecx]
push ebx
push ecx
call dword [edx + 0x10]
mov eax, dword [esi]
push dword [edi + 8]
push str.channel
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [esi]
push dword [edi + 0x10]
push 0x10147768
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [esi]
push dword [edi]
push 0x10147774
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [esi]
push dword [edi + 4]
push 0x1014777c
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
jmp 0x10022710
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10022710
push 0x33
push str.d:_buildlib_commonwnd_pluginconfigconfigmgr.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 3
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1001e980
mov byte [ebp - 4], 4
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x5a
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10011dd0
mov esi, eax
push str.init_cfgCenterHelper_failed._path:
push esi
mov byte [ebp - 4], 5
call fcn.10014590
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000dea0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.10014a50
lea ecx, [ebp - 0x260]
call fcn.10005a20
lea ecx, [ebp - 0x278]
call fcn.10005a20
mov esi, dword [ebp - 0x27c]
cmp dword [esi], 0
setne al
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.1010c1dc
mov esp, ebp
pop ebp
ret
call fcn.1011ae29
call fcn.1011ae29
int3