Function at 0x10015330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b896
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x1009d258]
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.10056e00
add esp, 0xc
lea eax, [ebp - 0x27c]
push 0x104
push eax
push dword [0x1009fa18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.CfgRelayEx.dll
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x27c]
lea edi, [ebx + 0x34]
push eax
mov dword [ebp - 0x694], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100153ff
lea eax, [ebp - 0x27c]
push eax
call fcn.1001b360
add esp, 4
test eax, eax
je 0x100153ff
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100153ff
push str.GetConfigCenterEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100153ff
call eax
mov dword [edi], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10015614
mov eax, dword [ecx]
push str.run_extention
push ecx
call dword [eax + 4]
lea eax, [ebx + 8]
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [edi]
push ebx
push eax
mov dword [ebp - 0x698], ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0x208
lea eax, [ebp - 0x484]
push 0
push eax
call fcn.10056e00
add esp, 0xc
call fcn.10007a00
mov ecx, eax
test ecx, ecx
je 0x10015630
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x690], esi
push 0x104
lea eax, [ebp - 0x484]
mov dword [ebp - 4], 0
push eax
push dword [0x1009fa18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100154a8
push 0x104
lea ecx, [ebp - 0x690]
call fcn.10007de0
mov esi, dword [ebp - 0x690]
cmp dword [esi - 8], 0x104
jl 0x1001563a
xor eax, eax
mov dword [esi - 0xc], 0x104
push 0x104
mov word [esi + 0x208], ax
lea eax, [ebp - 0x484]
push esi
push eax
call fcn.1000ad90
push dword [esi - 8]
push esi
call fcn.10064683
add esp, 0x14
test eax, eax
js 0x1001563a
cmp eax, dword [esi - 8]
jg 0x1001563a
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x208
mov word [esi + eax*2], cx
lea eax, [ebp - 0x68c]
push ecx
push eax
call fcn.10056e00
add esp, 0xc
lea eax, [ebp - 0x68c]
push 0x104
push eax
call fcn.1003b100
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10056e00
add esp, 0xc
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.1003b5b0
mov edi, dword [edi]
lea eax, [ebp - 0x69c]
push 1
push eax
call fcn.10035330
add esp, 8
push dword [eax]
mov ecx, dword [edi]
push str.channel
push ebx
push edi
mov byte [ebp - 4], 1
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x69c]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10015585
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x694]
mov edi, dword [edi]
mov ebx, dword [edi]
call fcn.1000b280
test eax, eax
mov edx, 0x10082428
mov ecx, 0x10082424
cmove ecx, edx
push ecx
push 0x10081ac4
push dword [ebp - 0x698]
push edi
call dword [ebx + 0x10]
mov edi, dword [ebp - 0x694]
mov ebx, dword [ebp - 0x698]
push esi
push 0x1008242c
mov eax, dword [edi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [edi]
lea edx, [ebp - 0x68c]
push edx
push 0x1008243c
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [edi]
lea edx, [ebp - 0x74]
push edx
push 0x10082444
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10015614
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.10038a7a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10007bc0
push 0x80070057
call fcn.10007bc0
int3