Function at 0x100293b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab3d6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x100dbc1c]
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 - 0x22c], ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], ebx
je 0x10029445
lea eax, [ebp - 0x228]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
mov ebx, 3
mov dword [ebp - 0x220], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x219], 1
test al, al
jne 0x1002944c
mov byte [ebp - 0x219], 0
or edi, 0xffffffff
test bl, 2
je 0x10029480
mov esi, dword [ebp - 0x224]
and ebx, 0xfffffffd
test esi, esi
je 0x10029480
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10029480
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10029480
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x230]
and ebx, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100294b3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100294b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100294b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
je 0x10029539
lea eax, [ebp - 0x234]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 4], 2
call fcn.10015e70
mov esi, eax
push str.init_config
push esi
mov byte [ebp - 4], 3
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x2d4]
call fcn.10012280
mov esi, dword [ebp - 0x230]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10029539
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10029539
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10029539
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100e0ea0]
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]
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100295e3
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10036800
add esp, 8
test eax, eax
je 0x100295e3
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100295e3
push str.GetConfigCenter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100295e3
call eax
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x5c], 0
je 0x100296f7
mov ecx, dword [0x100e0e78]
test ecx, ecx
jne 0x10029657
push 0x100da020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100e0e78], 0
jne 0x10029646
push 4
call fcn.10076018
add esp, 4
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x10029631
mov ecx, eax
call fcn.100746d0
mov ecx, eax
jmp 0x10029633
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp - 0x220], eax
mov dword [0x100e0e78], ecx
push 0x100da020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100e0e78]
call fcn.10074750
mov dword [ebp - 0x224], eax
test eax, eax
je 0x100296f7
mov ecx, dword [esi + 0x5c]
push str.quan_tips_stub
push ecx
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, dword [ebp - 0x22c]
lea eax, [edi + 4]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [esi + 0x5c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, dword [ebp - 0x224]
mov ecx, dword [esi + 0x5c]
push dword [ebx + 0xc]
mov eax, dword [ecx]
push 0x100b4218
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x5c]
push dword [ebx + 8]
push str.channel
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x5c]
push dword [ebx + 0x10]
push str.from
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x5c]
push dword [ebx]
push 0x100b4244
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov ecx, dword [esi + 0x5c]
push dword [ebx + 4]
push 0x100b424c
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x10]
mov al, 1
jmp 0x10029844
lea eax, [ebp - 0x228]
push eax
call fcn.1003b6a0
add esp, 4
or ebx, 4
mov dword [ebp - 4], 5
cmp dword [eax], 0
mov dword [ebp - 0x220], ebx
je 0x1002974e
lea eax, [ebp - 0x234]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
or ebx, 8
mov dword [ebp - 4], 6
mov dword [ebp - 0x220], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x219], 1
test al, al
jne 0x10029755
mov byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x230]
test esi, esi
je 0x10029783
test bl, 8
je 0x10029783
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10029783
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10029783
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100297b3
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100297b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100297b3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
je 0x10029842
lea eax, [ebp - 0x23c]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x36c]
mov dword [ebp - 4], 7
call fcn.10015e70
mov esi, eax
push str.init_cfgCenterHelper_failed._path:
push esi
mov byte [ebp - 4], 8
call fcn.10012080
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10010030
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x36c]
call fcn.10012280
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x10029842
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10029842
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10029842
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
xor al, 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.100763b4
mov esp, ebp
pop ebp
ret