Function at 0x10016a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005edad
mov eax, dword fs:[0]
push eax
sub esp, 0x68c
mov eax, dword [0x10081708]
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
push 0x208
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x27c]
push 0x104
push eax
push dword [0x1008350c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x27c]
push eax
call esi
lea eax, [ebp - 0x27c]
push eax
call esi
push str.pluginConfigCenterStub.dll
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x27c]
lea edi, [ebx + 0x264]
push eax
mov dword [ebp - 0x694], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016b2d
lea eax, [ebp - 0x27c]
push eax
call fcn.10026340
add esp, 4
test eax, eax
je 0x10016b2d
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10016b2d
push str.GetConfigCenterEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10016b2d
call eax
mov dword [edi], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10016e22
mov eax, dword [ecx]
push 0x10061b08
push ecx
call dword [eax + 4]
lea eax, [ebx + 0x30]
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [edi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x208
lea eax, [ebp - 0x484]
push 0
push eax
call fcn.10037300
add esp, 0xc
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10016e3e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x698], eax
push 0x104
lea eax, [ebp - 0x484]
mov dword [ebp - 4], 0
push eax
push dword [0x1008350c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10003510
mov ecx, eax
test ecx, ecx
je 0x10016e48
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x690], eax
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x10016be5
movzx eax, ax
lea ecx, [ebp - 0x690]
push eax
call fcn.10005780
jmp 0x10016c12
lea ecx, [ebp - 0x484]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016bf0
sub ecx, edx
lea eax, [ebp - 0x484]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x690]
call fcn.10003730
lea eax, [ebp - 0x698]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x690]
push eax
call fcn.10016260
mov edx, dword [ebp - 0x690]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016c4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x68c]
push 0
push eax
call fcn.10037300
add esp, 0xc
call fcn.100144a0
push 0x104
lea edx, [ebp - 0x68c]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10037300
add esp, 0xc
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.1002cbf0
mov eax, dword [edi]
mov esi, dword [ebp - 0x698]
push esi
push str.modver
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
mov edi, dword [edi]
lea eax, [ebp - 0x690]
push eax
call fcn.10004020
mov ecx, eax
call fcn.1001a170
push dword [eax]
mov ecx, dword [edi]
push str.channel
push ebx
push edi
mov byte [ebp - 4], 3
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x690]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016cf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x694]
lea eax, [ebp - 0x690]
push eax
mov edi, dword [edi]
call fcn.10004020
mov ecx, eax
call fcn.1001a060
push dword [eax]
mov ecx, dword [edi]
push str.from
push ebx
push edi
mov byte [ebp - 4], 4
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x690]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016d43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x694]
lea edx, [ebp - 0x68c]
push edx
push 0x10065018
push ebx
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [edi]
lea edx, [ebp - 0x74]
push edx
push 0x10065020
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, dword [edi]
lea eax, [ebp - 0x690]
push eax
call fcn.10004020
mov ecx, eax
call fcn.1001a150
push dword [eax]
mov ecx, dword [edi]
push str.instdate
push ebx
push edi
mov byte [ebp - 4], 5
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x690]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016db9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x694]
lea eax, [ebp - 0x694]
push eax
mov edi, dword [edi]
call fcn.10005110
add esp, 4
push dword [eax]
mov ecx, dword [edi]
push str.atdate
push ebx
push edi
mov byte [ebp - 4], 6
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x694]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016e06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10016e22
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1002bf51
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100031a0
push 0x80004005
call fcn.100031a0
int3