Function at 0x10016040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081992
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x100aa394]
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 - 0x27c], ecx
call fcn.1003c1f0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100161d3
push 0x2c
push str.f:lib_common_netshieldconfigconfigmgr.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10007ae0
push 3
push 0x10088b5c
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.10007ae0
mov byte [ebp - 4], 1
call fcn.1003c1f0
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x27
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.100034d0
mov esi, eax
push str.init_config
push esi
mov byte [ebp - 4], 2
call fcn.10004460
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10004590
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10016177
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001616d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016431
push edx
push ecx
call fcn.1003f20c
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 0x100161d3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100161c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016436
push edx
push ecx
call fcn.1003f20c
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1005be50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100ac52c]
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 - 0x27c]
lea eax, [ebp - 0x218]
push eax
lea ebx, [esi + 0x50]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001627d
lea eax, [ebp - 0x218]
push eax
call fcn.10034f90
add esp, 4
test eax, eax
je 0x1001627d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001627d
push str.GetConfigCenterEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001627d
call eax
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x10016314
call fcn.1000eab0
mov ecx, eax
call fcn.1003d2b0
mov edi, eax
test edi, edi
je 0x1001640f
mov ecx, dword [ebx]
push str.netshield
push ecx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 4]
neg esi
sbb esi, esi
and esi, eax
mov eax, dword [ebx]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebx]
push dword [edi + 0xc]
push 0x10089d68
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx]
push dword [edi + 8]
push str.channel
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx]
push dword [edi + 0x10]
push str.from
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx]
push dword [edi]
push 0x10089d94
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [ebx]
push dword [edi + 4]
push 0x10089d9c
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
jmp 0x1001640f
call fcn.1003c1f0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100163f6
push 0x2c
push str.f:lib_common_netshieldconfigconfigmgr.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.10007ae0
push 3
push 0x10088b5c
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.10007ae0
mov byte [ebp - 4], 4
call fcn.1003c1f0
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x41
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.100034d0
mov esi, eax
push str.init_cfgCenterHelper_failed
push esi
mov byte [ebp - 4], 5
call fcn.10004460
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.10004590
lea ecx, [ebp - 0x260]
call fcn.10003ec0
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0xffffffff
call fcn.10003ec0
push 0
push 0
push 1
push 0
push str.cfg_failed
call fcn.1000eab0
mov ecx, eax
call fcn.1003d2e0
cmp dword [ebx], 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.1003f57d
mov esp, ebp
pop ebp
ret
call fcn.1005f339
call fcn.1005f339
int3