Function at 0x101be590
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x101be5c0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
add esp, 0xc
push 0x104
push eax
push dword [0x10257d10]
call edi
push str.aveAVEI.dll
push str...deepscan_
lea ecx, [ebp - 0x624]
call fcn.10002490
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10007f40
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x628]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101be646
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x624]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101be663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
add esp, 8
test eax, eax
jne 0x101be7ed
cmp dword [0x1023c00c], eax
je 0x101be7c0
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push str.360Base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x101be6b1
mov eax, dword [0x10257d10]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call edi
push str...360Base.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [0x1024e9f8], 0
jne 0x101be792
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1024e9f8], 0
jne 0x101be787
lea eax, [ebp - 0x210]
push eax
call fcn.101b1420
mov edi, eax
add esp, 4
mov ebx, 0x80004005
test edi, edi
je 0x101be76e
push str.InitLibs
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateObject
push edi
mov dword [ebp - 0x624], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x624]
mov dword [0x1024e5d8], eax
test ecx, ecx
je 0x101be7db
push 0x1024e5dc
mov dword [0x1024e5dc], 0x100
call ecx
mov ebx, eax
test ebx, ebx
je 0x101be7e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1024e5d4], 0
xor eax, eax
mov dword [0x1024e9f8], 1
test ebx, ebx
sete al
or ebx, 0xffffffff
mov dword [0x1024e9fc], eax
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x1024e9fc]
test edi, edi
jne 0x101be7b2
push 1
lea eax, [ebp - 0x210]
push 0x10251040
push eax
call fcn.1001ac50
add esp, 0xc
mov dword [0x1023c00c], 0
test edi, edi
je 0x101be7d7
push 0
lea eax, [ebp - 0x418]
mov ecx, 0x1024e5d0
push eax
call fcn.101b1210
test eax, eax
jne 0x101be7ed
xor eax, eax
jmp 0x101be7fa
test eax, eax
je 0x101be75d
xor ebx, ebx
mov dword [0x1024e5d4], edi
jmp 0x101be76e
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x208
mov dword [esi], eax
lea eax, [ebp - 0x620]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x104
push eax
push dword [0x10257d10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.aveplave.def
push str...deepscan_
lea ecx, [ebp - 0x628]
call fcn.10002490
push eax
lea eax, [ebp - 0x624]
push eax
call fcn.10007f40
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x624]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101be87b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x628]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x101be896
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x101be964
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateScannerEx
push eax
call ebx
push str.CloseScanner
push dword [esi]
mov dword [esi + 4], eax
call ebx
push str.ScanW
push dword [esi]
mov dword [esi + 8], eax
call ebx
push str.SetScannerConfig
push dword [esi]
mov dword [esi + 0xc], eax
call ebx
cmp dword [esi + 4], 0
mov dword [esi + 0x10], eax
je 0x101be964
cmp dword [esi + 8], 0
je 0x101be964
cmp dword [esi + 0xc], 0
je 0x101be964
test eax, eax
je 0x101be964
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x102578f0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.101ef650
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi + 4]
call eax
mov ecx, 0x1f
mov dword [esi + 0x14], eax
mov word [ebp - 0x638], cx
lea ecx, [ebp - 0x620]
mov dword [ebp - 0x630], ecx
lea ecx, [ebp - 0x638]
push ecx
push 0x10204460
push eax
mov eax, dword [esi + 0x10]
call eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret