Function at 0x40fe60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423ee3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf80
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x3c], ecx
je 0x411104
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x411104
mov al, byte [0x42f83c]
mov ecx, 0x40
mov byte [ebp - 0x144], al
xor eax, eax
lea edi, [ebp - 0x143]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
rep stosd dword es:[edi], eax
mov ecx, dword [0x42a2c0]
mov edx, 0x42f83c
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], ecx
je 0x40ff2f
mov eax, edx
shr eax, 0x10
jne 0x40fef6
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [ebp - 0x14]
push eax
call fcn.00402630
jmp 0x40ff2f
push 0x42f83c
call ebx
mov esi, eax
test esi, esi
je 0x40ff2f
push esi
lea ecx, [ebp - 0x14]
call fcn.00402890
test eax, eax
je 0x40ff2f
lea edx, [esi + 1]
cmp edx, esi
jb 0x40ff2f
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov eax, ecx
mov esi, 0x42f83c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42a2c0]
mov edx, 0x42f83c
test edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
je 0x40ff9a
mov eax, edx
shr eax, 0x10
jne 0x40ff61
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [ebp - 0x20]
push eax
call fcn.00402630
jmp 0x40ff9a
push 0x42f83c
call ebx
mov esi, eax
test esi, esi
je 0x40ff9a
push esi
lea ecx, [ebp - 0x20]
call fcn.00402890
test eax, eax
je 0x40ff9a
lea edx, [esi + 1]
cmp edx, esi
jb 0x40ff9a
mov edi, dword [ebp - 0x20]
mov ecx, esi
mov eax, ecx
mov esi, 0x42f83c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42a2c0]
mov edx, 0x42f83c
test edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], ecx
je 0x410002
mov eax, edx
shr eax, 0x10
jne 0x40ffc9
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [ebp - 0x28]
push eax
call fcn.00402630
jmp 0x410002
push 0x42f83c
call ebx
mov esi, eax
test esi, esi
je 0x410002
push esi
lea ecx, [ebp - 0x28]
call fcn.00402890
test eax, eax
je 0x410002
lea edx, [esi + 1]
cmp edx, esi
jb 0x410002
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov eax, ecx
mov esi, 0x42f83c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x144]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
push 0x42d95c
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x144]
test al, al
je 0x41008c
lea edi, [ebp - 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x17
jne 0x41008c
mov cl, byte [ebp - 0x13f]
mov al, 0x2d
cmp cl, al
jne 0x41008c
cmp byte [ebp - 0x139], al
jne 0x41008c
cmp byte [ebp - 0x133], al
jne 0x41008c
lea ecx, [ebp - 0x144]
test ecx, ecx
jne 0x410073
xor eax, eax
jmp 0x41007c
lea edx, [ebp - 0x144]
push edx
call ebx
lea ecx, [ebp - 0x144]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
mov dl, byte [0x42f83c]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], dl
mov ebx, dword [sym.imp.MSVCRT.dll__mbsnbcpy]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x34c]
test eax, eax
je 0x4101b3
mov ecx, str.kav6.msi
mov byte [ebp - 0x34c], 0
test ecx, ecx
je 0x410155
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0xf8c]
push str.kav6.msi
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x41013f
lea edx, [ebp - 0xf8c]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xf8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0xf8c]
push str.kav6.msi
lea edx, [ebp - 0xf8c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xf8c]
push 0x104
lea ecx, [ebp - 0x34c]
push eax
push ecx
jmp 0x410150
push 0x104
lea edx, [ebp - 0x34c]
push str.kav6.msi
push edx
call ebx
add esp, 0xc
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0xb8c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb8c]
lea ecx, [ebp - 0x34c]
push eax
push ecx
push 0
call fcn.00411220
add esp, 0x10
test eax, eax
je 0x4101b3
lea edx, [ebp - 0xb8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4101b3
lea eax, [ebp - 0x34c]
lea ecx, [ebp - 0x34c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403210
mov edx, dword [0x42a2c0]
mov eax, 0x42f83c
test eax, eax
mov dword [ebp - 0x24], edx
je 0x41021e
mov ecx, eax
shr ecx, 0x10
jne 0x4101e1
xor eax, eax
mov edx, 0x42f83c
mov ax, dx
lea ecx, [ebp - 0x24]
push eax
call fcn.00402630
jmp 0x41021e
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41021e
push esi
lea ecx, [ebp - 0x24]
call fcn.00402890
test eax, eax
je 0x41021e
lea eax, [esi + 1]
cmp eax, esi
jb 0x41021e
mov edi, dword [ebp - 0x24]
mov ecx, esi
mov edx, ecx
mov esi, 0x42f83c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x247]
mov byte [ebp - 0x248], 0
rep stosd dword es:[edi], eax
mov esi, dword [ebp - 0x3c]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
mov byte [ebp - 4], 3
call fcn.0040f660
test eax, eax
je 0x410274
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
push 0x42f83c
push ecx
lea eax, [ebp - 0x248]
push edx
push eax
lea ecx, [ebp - 0x24]
push str.KAV_1__s__s__s__s
push ecx
jmp 0x4102b7
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x248]
lea edx, [ebp - 0x248]
rep stosd dword es:[edi], eax
push 0x104
push edx
mov ecx, esi
call fcn.0040fbd0
test eax, eax
je 0x4102bf
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push 0x42f83c
push eax
lea edx, [ebp - 0x248]
push ecx
push edx
lea eax, [ebp - 0x24]
push str.KAV_1__s__s__s__s
push eax
call fcn.00403550
add esp, 0x18
mov ecx, 0x42f83c
test ecx, ecx
jne 0x4102d2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
jmp 0x4102df
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
call fcn.00403210
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x248]
lea edx, [ebp - 0x248]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x3c]
push 0x104
push edx
call fcn.00411860
test eax, eax
je 0x41033b
push 0x42f83c
push 0x42f83c
lea eax, [ebp - 0x248]
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
push str.KIS_1__s__s__s__s
push ecx
call fcn.00403550
add esp, 0x18
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00411120
mov eax, 0x42f83c
test eax, eax
je 0x41035b
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
mov ecx, 0x42f83c
test ecx, ecx
jne 0x410376
xor eax, eax
jmp 0x41037d
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
call fcn.00403210
mov edx, 0x42f83c
test edx, edx
jne 0x410398
xor eax, eax
jmp 0x41039f
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x28]
call fcn.00403210
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push str.360SD
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x144], 0
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x144]
test al, al
je 0x410413
lea eax, [ebp - 0x144]
test eax, eax
je 0x410403
lea ecx, [ebp - 0x144]
push ecx
call esi
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x14]
push edx
push eax
call fcn.00403210
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34c]
test eax, eax
je 0x410521
mov ecx, str.360sd.exe
mov byte [ebp - 0x34c], 0
test ecx, ecx
je 0x4104c7
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0xf8c]
push str.360sd.exe
rep stosd dword es:[edi], eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x4104b1
lea edx, [ebp - 0xf8c]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0xf8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0xf8c]
push str.360sd.exe
lea edx, [ebp - 0xf8c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0xf8c]
push 0x104
lea ecx, [ebp - 0x34c]
push eax
push ecx
jmp 0x4104c2
push 0x104
lea edx, [ebp - 0x34c]
push str.360sd.exe
push edx
call ebx
add esp, 0xc
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0xb8c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb8c]
lea ecx, [ebp - 0x34c]
push eax
push ecx
push 0
call fcn.00411220
add esp, 0x10
test eax, eax
je 0x410521
lea edx, [ebp - 0xb8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x410521
lea eax, [ebp - 0x34c]
lea ecx, [ebp - 0x34c]
push eax
push ecx
call esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00403210
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x248]
lea edx, [ebp - 0x248]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x3c]
push 0x104
push edx
call fcn.00411b20
test eax, eax
je 0x41056d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push 0x42f83c
push eax
lea edx, [ebp - 0x248]
push ecx
push edx
lea eax, [ebp - 0x20]
push str.360SD_1__s__s__s__s
push eax
call fcn.00403550
add esp, 0x18
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00411120
mov edx, 0x42f83c
test edx, edx
jne 0x41058a
xor eax, eax
jmp 0x410591
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
mov eax, 0x42f83c
test eax, eax
je 0x4105af
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
call fcn.00403210
mov ecx, 0x42f83c
test ecx, ecx
jne 0x4105ca
xor eax, eax
jmp 0x4105d1
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x28]
call fcn.00403210
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x144]
lea edx, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
push str.NOD32
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x144]
test al, al
je 0x410651
lea edx, [ebp - 0x144]
test edx, edx
jne 0x410638
xor eax, eax
jmp 0x410641
lea eax, [ebp - 0x144]
push eax
call esi
lea ecx, [ebp - 0x144]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x144]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
push str.InstallDir
push str.SOFTWAREESETESET_SecurityCurrentVersionInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x104
call ebx
mov al, byte [ebp - 0x144]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test al, al
je 0x41075d
lea edx, [ebp - 0x144]
push edx
call esi
test eax, eax
je 0x41075d
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x248]
lea edx, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x248]
push eax
push ecx
push edx
push 0x42d894
mov esi, 1
push str.SOFTWAREESETESET_SecurityCurrentVersionInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x104
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x144]
lea edx, [ebp - 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
push ecx
push edx
push str.V2Partner
push str.SOFTWAREESETESET_SecurityCurrentVersionInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x104
call ebx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x144]
push eax
push 0x42f83c
lea edx, [ebp - 0x248]
push ecx
push edx
lea eax, [ebp - 0x20]
push str.NOD32_1__s__s__s__s
push eax
call fcn.00403550
add esp, 0x18
jmp 0x410859
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x144]
lea edx, [ebp - 0x144]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x18]
push ecx
push edx
push eax
push str.InstallDir
push str.SOFTWAREESETNodCurrentVersionInfo
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x104
call ebx
mov al, byte [ebp - 0x144]
test al, al
je 0x410859
lea ecx, [ebp - 0x144]
push ecx
call esi
test eax, eax
je 0x410859
mov edx, dword [0x42a2c0]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x10]
push eax
push str._s_nod32.exe
push ecx
mov byte [ebp - 4], 4
call fcn.00403550
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x248]
lea edx, [ebp - 0x248]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
push 0x104
push edx
push eax
call fcn.0041fe60
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea edx, [ebp - 0x248]
lea eax, [ebp - 0x20]
push 0x42f83c
push 0x42f83c
push ecx
push edx
push str.NOD32_1__s__s__s__s
push eax
call fcn.00403550
mov eax, dword [ebp - 0x10]
mov edx, dword [0x42a2c4]
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410859
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410859
mov edx, dword [ebp - 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00411120
mov ecx, 0x42f83c
test ecx, ecx
jne 0x41087c
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
jmp 0x410889
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
call fcn.00403210
mov edx, 0x42f83c
test edx, edx
jne 0x4108a4
xor eax, eax
jmp 0x4108ab
push 0x42f83c
call esi
push 0x42f83c
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x42d834
mov edi, 1
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x144], 0
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], edi
call ebx
mov al, byte [ebp - 0x144]
test al, al
je 0x41091c
lea eax, [ebp - 0x144]
test eax, eax
je 0x41090c
lea ecx, [ebp - 0x144]
push ecx
call esi
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x14]
push edx
push eax
call fcn.00403210
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x42d828
push str.SoftwareTrendMicroPC_cillin
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0x144], 0
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], edi
call ebx
mov al, byte [ebp - 0x144]
test al, al
je 0x410a5a
mov eax, dword [0x42a2c0]
lea ecx, [ebp - 0x144]
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x4109cf
lea edx, [ebp - 0x144]
shr edx, 0x10
jne 0x41098e
xor eax, eax
lea ecx, [ebp - 0x144]
mov ax, cx
lea ecx, [ebp - 0x10]
push eax
call fcn.00402630
jmp 0x4109cf
lea edx, [ebp - 0x144]
push edx
call esi
mov esi, eax
test esi, esi
je 0x4109cf
push esi
lea ecx, [ebp - 0x10]
call fcn.00402890
test eax, eax
je 0x4109cf
lea eax, [esi + 1]
cmp eax, esi
jb 0x4109cf
mov edi, dword [ebp - 0x10]
mov ecx, esi
mov edx, ecx
lea esi, [ebp - 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push str.version
push str.SoftwareTrendMicroPC_cillin
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 5
mov byte [ebp - 0x144], 0
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], edi
call ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push 0x42f83c
lea edx, [ebp - 0x144]
push ecx
push edx
lea eax, [ebp - 0x20]
push str.TAV_1__s__s__s__s
push eax
call fcn.00403550
mov eax, dword [ebp - 0x10]
mov edx, dword [0x42a2c4]
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410a5a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410a5a
mov edx, dword [ebp - 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00411120
lea ecx, [ebp - 0x78c]
call fcn.0041e1f0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x553]
mov byte [ebp - 0x554], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x554]
push 0x104
push ecx
push 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x40], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x554]
push edx
call ebx
lea eax, [ebp - 0x554]
push str.ModulesAVCheck.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x554]
test ecx, ecx
jne 0x410adc
xor edi, edi
jmp 0x410b15
lea edx, [ebp - 0x554]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x554]
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [ebp - 0x78c]
call fcn.0041e2e0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x78c]
call fcn.0041e410
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x44f]
mov byte [ebp - 0x450], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x554]
push 0x104
lea eax, [ebp - 0x450]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [ebp - 0x450]
push ecx
call ebx
mov edx, dword [0x42a2c0]
lea eax, [ebp - 0x450]
test eax, eax
mov dword [ebp - 0x34], edx
je 0x410be2
lea ecx, [ebp - 0x450]
shr ecx, 0x10
jne 0x410ba2
xor eax, eax
lea edx, [ebp - 0x450]
mov ax, dx
lea ecx, [ebp - 0x34]
push eax
call fcn.00402630
jmp 0x410be2
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x410be2
push esi
lea ecx, [ebp - 0x34]
call fcn.00402890
test eax, eax
je 0x410be2
lea ecx, [esi + 1]
cmp ecx, esi
jb 0x410be2
mov edi, dword [ebp - 0x34]
mov ecx, esi
mov edx, ecx
lea esi, [ebp - 0x450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x34]
push str.AVLib.dat
lea ecx, [ebp - 0x10]
push eax
push ecx
mov byte [ebp - 4], 7
call fcn.00405510
mov ebx, dword [eax]
mov byte [ebp - 4], 8
test ebx, ebx
jne 0x410c06
xor edi, edi
jmp 0x410c33
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00422fa0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [ebp - 0x78c]
call fcn.0041e4c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x42a2c4]
mov byte [ebp - 4], 7
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x410c70
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410c70
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.00420d62
add esp, 4
push 1
lea ecx, [ebp - 0x78c]
call fcn.0041e720
xor edi, edi
lea ecx, [ebp - 0x40]
push edi
push edi
push ecx
lea ecx, [ebp - 0x78c]
call fcn.0041e560
mov edx, 0x42f83c
test edx, edx
jne 0x410c9d
xor eax, eax
jmp 0x410ca8
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42f83c
push eax
lea ecx, [ebp - 0x20]
call fcn.00403210
mov eax, 0x42f83c
test eax, eax
je 0x410cca
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x42f83c
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x144], 0
push ecx
push edi
lea ecx, [ebp - 0x78c]
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x38], edi
call fcn.0041e600
test eax, eax
je 0x410fd6
mov ebx, 3
mov esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x410d1c
cmp dword [esi + 4], ebx
je 0x410d36
lea edx, [ebp - 0x38]
inc edi
push edx
push edi
lea ecx, [ebp - 0x78c]
call fcn.0041e600
test eax, eax
jne 0x410d0d
jmp 0x410fd6
add esi, 0xec
xor ebx, ebx
test esi, esi
mov dword [ebp - 0x30], ebx
je 0x410d76
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x30], eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
mov byte [ebp - 4], 9
mov esi, 0x42f83c
je 0x410d85
mov esi, ebx
mov eax, dword [0x42a2c0]
test esi, esi
mov dword [ebp - 0x10], eax
je 0x410ddd
mov ecx, esi
shr ecx, 0x10
jne 0x410da9
and esi, 0xffff
lea ecx, [ebp - 0x10]
push esi
call fcn.00402630
jmp 0x410ddd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x410ddd
push edi
lea ecx, [ebp - 0x10]
call fcn.00402890
test eax, eax
je 0x410ddd
lea edx, [edi + 1]
cmp edx, edi
jb 0x410ddd
mov ecx, edi
mov edi, dword [ebp - 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
mov byte [ebp - 4], 0xb
je 0x410dee
push ebx
call fcn.00420d62
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x410e17
push 0x42d7e4
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
je 0x410e17
sub eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x410ee0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x144]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
push 0x42d7e0
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x144]
test al, al
je 0x410e70
lea ecx, [ebp - 0x144]
test ecx, ecx
jne 0x410e53
xor eax, eax
jmp 0x410e60
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x144]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403210
mov edx, dword [ebp - 0x38]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
lea esi, [edx + 0x1b4]
test esi, esi
je 0x410eb4
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push ecx
push eax
lea edx, [ebp - 0x20]
push str.BAV_1__s__s__s__s
push edx
mov byte [ebp - 4], 0xc
call fcn.00403550
add esp, 0x18
test ebx, ebx
je 0x410fa5
jmp 0x410f9c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x144]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
push 0x42d7c8
push str.SOFTWARE360Safe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov al, byte [ebp - 0x144]
test al, al
je 0x410f35
lea eax, [ebp - 0x144]
test eax, eax
je 0x410f25
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x14]
push edx
push eax
call fcn.00403210
mov eax, dword [ebp - 0x38]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
lea esi, [eax + 0x1b4]
test esi, esi
je 0x410f79
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push ecx
push eax
lea edx, [ebp - 0x20]
push str.BIS_1__s__s__s__s
push edx
mov byte [ebp - 4], 0xd
call fcn.00403550
add esp, 0x18
test ebx, ebx
je 0x410fa5
push ebx
call fcn.00420d62
add esp, 4
mov eax, dword [ebp - 0x10]
mov edx, dword [0x42a2c4]
mov byte [ebp - 4], 7
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410fd6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410fd6
mov edx, dword [ebp - 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00420d62
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00411120
lea ecx, [ebp - 0x78c]
call fcn.0041e690
mov ecx, dword [0x42a2c0]
mov edx, 0x42f83c
test edx, edx
mov dword [ebp - 0x2c], ecx
je 0x41104e
mov eax, edx
shr eax, 0x10
jne 0x41101c
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402630
jmp 0x41104e
push 0x42f83c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41104e
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402890
test eax, eax
je 0x41104e
mov edx, dword [ebp - 0x2c]
push esi
inc esi
push 0x42f83c
push esi
push edx
call fcn.00402830
add esp, 0x10
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00411390
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
dec edx
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
push ecx
push eax
push str._s_s
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
mov dl, byte [esi]
mov eax, dword [ebp - 0x2c]
add esp, 0x14
xor ecx, ecx
test dl, dl
setne cl
mov esi, ecx
mov ecx, dword [0x42a2c4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4110c9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4110c9
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00420d62
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00402860
lea ecx, [ebp - 0x78c]
mov byte [ebp - 4], 3
call fcn.0041e270
lea ecx, [ebp - 0x24]
call fcn.00402860
lea ecx, [ebp - 0x28]
call fcn.00402860
lea ecx, [ebp - 0x20]
call fcn.00402860
lea ecx, [ebp - 0x14]
call fcn.00402860
mov eax, esi
jmp 0x411106
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xf98]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8