Function at 0x40b740
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a31b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x648
push ebx
push ebp
push esi
push edi
push str.NetentSecIscSvrRunning
push 0
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.IscClientLogon
push 0
push 2
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp + 0x14], eax
call dword [sym.imp.SockServer.dll_public:_static_void___cdecl_RSSocketManager::InitializeLog_void_]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SockServer.dll_public:_static_class_SharedObjectPtr_class_RSSocketServer____cdecl_RSSocketServer::CreateSockServer_void_]
add esp, 4
mov eax, dword [eax]
push eax
mov ecx, ebp
mov dword [esp + 0x664], 0
call fcn.0040cda0
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0x660], 0xffffffff
je 0x40b7c7
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov edi, dword [ebp]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, dword [edi]
push 0
push str.127.0.0.1
call esi
push eax
mov edx, ebx
xor ebx, ebx
push ebx
push 0x40caa0
mov ecx, edi
call dword [edx + 0x14]
cmp eax, 1
je 0x40b82e
lea eax, [esp + 0x14]
push eax
mov ecx, 0x429ee8
call fcn.00405970
mov ecx, dword [eax]
push 0x10
push ecx
push 0x428180
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x40b826
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov dword [ebp], ebx
jmp 0x40bc4e
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x674], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40b8fc
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.IscServiceInterPort
push edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40b92a
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp]
push str.127.0.0.1
call esi
push eax
mov ecx, ebx
call dword [sym.imp.SockServer.dll_public:_unsigned_long_int___thiscall_RSSocketServer::StartServer_unsigned_long_int__unsigned_short_int__]
cmp eax, 1
je 0x40b9aa
lea eax, [esp + 0x10]
push eax
mov ecx, 0x429ee8
call fcn.00405970
mov ecx, dword [eax]
push 0x10
push ecx
push 0x428154
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x40bc4e
jmp 0x40bc47
lea eax, [esp + 0x18]
push eax
mov ecx, 0x429ee8
call fcn.00405970
mov ecx, dword [eax]
push 0x10
push ecx
push 0x42813c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x40bc4e
mov ebx, dword [ebp]
lea edx, [esp + 0x1c]
push edx
push str.127.0.0.1
call esi
mov ecx, ebx
mov ebx, dword [sym.imp.SockServer.dll_public:_unsigned_long_int___thiscall_RSSocketServer::StartServer_unsigned_long_int__unsigned_short_int__]
push eax
call ebx
cmp eax, 1
je 0x40b9aa
mov edi, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push str.127.0.0.1
mov dword [esp + 0x24], 0
call esi
push eax
mov ecx, edi
call ebx
cmp eax, 1
je 0x40b9a6
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x429ee8
call fcn.00405970
mov edx, dword [eax]
push 0x10
push edx
push 0x428124
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40bc4e
push eax
jmp 0x40bc48
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push ebx
push str.HideRelogonWnd
push edi
mov dword [esp + 0x40], 0x28
mov dword [ebp + 0x118], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40ba1e
mov esi, 0x427ce4
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ba0b
test cl, cl
je 0x40ba07
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ba0b
add eax, 2
add esi, 2
test cl, cl
jne 0x40b9e7
xor eax, eax
jmp 0x40ba10
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40ba1e
mov dword [ebp + 0x118], 1
mov eax, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push ebx
push str.IscServiceInterPort
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x40ba76
lea edx, [esp + 0x10]
push edx
mov ecx, 0x429ee8
call fcn.00405970
mov eax, dword [eax]
push 0x10
push eax
push 0x42810c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x40bc4e
jmp 0x40bc47
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jne 0x40babd
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x429ee8
call fcn.00405970
mov edx, dword [eax]
push 0x10
push edx
push 0x4280f4
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x40bc4e
jmp 0x40bc47
push 0x95c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x660], 2
je 0x40bae3
mov ecx, eax
call fcn.004022e0
jmp 0x40bae5
xor eax, eax
push ebp
mov ecx, eax
mov byte [esp + 0x664], 1
mov dword [ebp + 4], eax
call fcn.004029a0
mov ecx, dword [ebp + 4]
call fcn.004029b0
test al, al
jne 0x40bb3a
lea eax, [esp + 0x10]
push eax
mov ecx, 0x429ee8
call fcn.00405970
mov ecx, dword [eax]
push 0x10
push ecx
push 0x4280dc
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
cmp edi, ebx
je 0x40bc4e
jmp 0x40bc47
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.InstallDir
mov esi, 0x400
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40bc3c
lea edx, [esp + 0x258]
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov ebx, 3
push str.GuiCfg.ini
lea ecx, [esp + 0x1c]
mov byte [esp + 0x664], bl
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.util.dll_public:_void___thiscall_RSIniReader::constructor_char_const__]
push esi
lea ecx, [esp + 0x25c]
push ecx
push 0x4280cc
push str.LogonText
lea ecx, [esp + 0x64]
mov byte [esp + 0x670], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.util.dll_public_virtual:_void___thiscall_RSIniReader::GetKeyValue_char_const___char_const___char___unsigned_long_int_]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x258]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40bbf0
lea edi, [esp + 0x258]
lea edx, [ebp + 0x18]
jmp 0x40bbf8
lea edx, [ebp + 0x18]
mov edi, 0x4280b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
mov byte [esp + 0x660], bl
call dword [sym.imp.util.dll_public_virtual:_void___thiscall_RSIniReader::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x660], 1
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov byte [ebp + 0x11c], 1
je 0x40bc4e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x658]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x654
ret