Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe6c
mov eax, dword [0x442060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.isafepxy.dll_public:_static_class_elex::commumod::SCommuMod____cdecl_elex::commumod::SCommuMod::instance_void_]
call edi
push 0
push 0xb0002000
call dword [sym.imp.isafepxy.dll_public:_static_int___cdecl_elex::commumod::SCommuMod::InitialCommu_unsigned_long_int__wchar_t_const__]
add esp, 8
test eax, eax
je 0x402b42
push eax
push str.InitialCommu_return__08X
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004258f6
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLogNoMask]
push str.InitialCommu_OK
call ebx
add esp, 4
lea ecx, [ebp - 0xe68]
mov dword [ebp - 0xe68], 0
call fcn.004027e0
test eax, eax
jne 0x402eff
cmp dword [ebp - 0xe68], eax
je 0x402eff
push str.DumpDriverHandle_OK
call ebx
add esp, 4
call fcn.004029e0
mov esi, eax
call fcn.00402890
push str.NotidyServiceExit_OK
call ebx
add esp, 4
call edi
call dword [sym.imp.isafepxy.dll_public:_static_int___cdecl_elex::commumod::SCommuMod::ClearCommu_void_]
push str.ClearCommu_OK
call ebx
add esp, 4
test esi, esi
je 0x402bcd
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.WaitForSingleObject_OK
call ebx
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402bdd
push ecx
call fcn.00409e50
push str.WaitForServiceToReachState_OK
call ebx
add esp, 4
call fcn.00402a20
lea edx, [ebp - 0xe64]
lea ecx, [ebp - 0xe68]
mov edi, 0x84
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0
call fcn.0041c140
movq xmm0, qword [str.iSafeService]
mov eax, dword [ebp - 0xe68]
mov si, word [0x42d034]
and eax, 0xff00
movq qword [ebp - 0xe60], xmm0
movq xmm0, qword [0x42d024]
cmp eax, 0x1500
push 0x1ee
movq qword [ebp - 0xe58], xmm0
movq xmm0, qword [0x42d02c]
lea eax, [ebp - 0xe46]
mov ecx, 0x184
push 0
push eax
cmovae edi, ecx
movq qword [ebp - 0xe50], xmm0
mov word [ebp - 0xe48], si
call sub.MSVCR110.dll_memset
movq xmm0, qword [str.iSafeService]
add esp, 0xc
movq qword [ebp - 0xc58], xmm0
movq xmm0, qword [0x42d024]
push 0x1ee
movq qword [ebp - 0xc50], xmm0
movq xmm0, qword [0x42d02c]
lea eax, [ebp - 0xc3e]
push 0
push eax
movq qword [ebp - 0xc48], xmm0
mov word [ebp - 0xc40], si
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa44], ax
lea eax, [ebp - 0xa42]
push eax
mov dword [ebp - 0xa50], 0x10
mov dword [ebp - 0xa4c], 2
mov dword [ebp - 0xa48], 1
call sub.MSVCR110.dll_memset
movq xmm0, qword [str.Event_log]
mov eax, dword [0x42d084]
add esp, 0xc
mov dword [ebp - 0x82c], eax
push 0x1f4
movq qword [ebp - 0x83c], xmm0
movq xmm0, qword [0x42d07c]
lea eax, [ebp - 0x828]
push 0
push eax
movq qword [ebp - 0x834], xmm0
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x630], ax
lea eax, [ebp - 0x62e]
push eax
mov dword [ebp - 0x634], 0
call sub.MSVCR110.dll_memset
movq xmm0, qword [str.iSafe_Service]
mov eax, dword [0x42d0a0]
movq qword [ebp - 0x424], xmm0
movq xmm0, qword [0x42d090]
add esp, 0xc
movq qword [ebp - 0x41c], xmm0
movq xmm0, qword [0x42d098]
mov dword [ebp - 0x428], edi
movq qword [ebp - 0x414], xmm0
mov dword [ebp - 0x40c], eax
push 0x1ec
lea eax, [ebp - 0x408]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe64]
push eax
push 0x20019
push 0
push str.SoftwareiSafe
push 0x80000002
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x218], 1
mov byte [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e67
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.path
push dword [ebp - 0xe64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xe68]
movzx ecx, cl
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [ebp - 0xe68], ecx
mov eax, dword [ebp - 0xe64]
test eax, eax
je 0x402e78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xe68], 0
jne 0x402e9c
push str.GetRegInstallPath_return
call ebx
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004258f6
mov esp, ebp
pop ebp
ret
push str.GetRegInstallPath_OK
call ebx
add esp, 4
lea eax, [ebp - 0x210]
push str.iSafeSvc.exe
push eax
push str._s_s
lea eax, [ebp - 0xa44]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea ecx, [ebp - 0xe60]
call fcn.00409b30
push str.CmdInstallService_Complete
call ebx
add esp, 4
call fcn.00409ca0
push str.CmdRunService_Complete
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x2710
call esi
jmp 0x402ef6
push eax
push str.DumpDriverHandle_return__08X
call ebx
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004258f6
mov esp, ebp
pop ebp
ret