Function at 0x41c730
Capabilities:
Set registry value

Disassembly:
sub esp, 0x394
push ebx
push ebp
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xa1]
push str.softwareSafeNet_SentinelSentinelProtectionServer
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2a4]
mov esi, 1
push 0x42cefc
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0xac], 0
call fcn.0041ecde
mov ecx, dword [str.NSPOPTS]
mov ebx, dword [esp + 0x3b4]
mov dword [esp + 0x2c], ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov edx, dword [0x42e638]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], edx
jne 0x41c7a9
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x3ac]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41c7c4
mov dword [esp + 0x10], eax
mov esi, eax
cmp dword [esp + 0x14], 1
jne 0x41c850
push 0
push 0x80
push 3
push 0
push 1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41c850
test ebx, ebx
je 0x41c850
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x41c850
push ebx
call fcn.0041c6b0
mov edx, eax
add esp, 4
test edx, edx
je 0x41c850
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041e880
mov esi, dword [esp + 0x14]
add esp, 4
cmp esi, 1
jne 0x41c8d9
push 0
push 0x80
push 3
push 0
push esi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41c8d9
test ebp, ebp
je 0x41c8d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x41c8d9
push ebp
call fcn.0041c6b0
mov edx, eax
add esp, 4
test edx, edx
je 0x41c8d9
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041e880
mov esi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x41c917
cmp esi, eax
jne 0x41c8ff
push ebp
push ebx
lea ecx, [esp + 0xa8]
push str._l___s___f___s_
push ecx
call fcn.0041ecde
add esp, 0x10
jmp 0x41c93e
test esi, esi
jne 0x41c9bc
push ebx
lea edx, [esp + 0xa4]
push str._l___s_
push edx
jmp 0x41c936
test eax, eax
jne 0x41c9bc
cmp esi, 1
jne 0x41c9bc
push ebp
lea eax, [esp + 0xa4]
push str._f___s_
push eax
call fcn.0041ecde
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 2
push 0
push 0
lea eax, [esp + 0x2b8]
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41c9be
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0xa4]
push ecx
push 1
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x41c9b1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x394
ret
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x394
ret