Function at 0x462550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x100]
mov dword [ebp - 0x110], ecx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHB_Nemesis
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x46277c
push esi
push edi
push 0x79
push eax
lea eax, [ebp - 0x80]
push eax
call sub.VCRUNTIME140.dll_memset
movsx edi, byte [ebp + 0x10]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], edi
test edi, edi
jle 0x462658
mov dword [ebp - 0x104], edi
nop word [eax + eax]
mov esi, ebx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4625e5
sub esi, edx
lea edi, [ebp - 0x80]
add edi, ecx
lea eax, [esi + 1]
test eax, eax
je 0x46262a
test edi, edi
je 0x46261a
push eax
test ebx, ebx
je 0x46260f
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x46262a
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x16
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo
mov ecx, dword [ebp - 0x110]
push esi
push edi
call fcn.0047f890
mov ecx, dword [ebp - 0x10c]
add ebx, 0xc
inc ecx
add ecx, esi
sub dword [ebp - 0x104], 1
mov dword [ebp - 0x10c], ecx
jne 0x4625e0
mov edi, dword [ebp - 0x108]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x80]
push eax
push 7
push 0
push str.SavedAccounts
push dword [ebp - 0x100]
call ebx
test eax, eax
jne 0x46276e
push 0x79
push eax
lea eax, [ebp - 0xfc]
push eax
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x104], ecx
test edi, edi
jle 0x462726
mov ebx, dword [ebp - 0x114]
mov esi, ebx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4626b0
sub esi, edx
lea edi, [ebp - 0xfc]
add edi, ecx
lea eax, [esi + 1]
test eax, eax
je 0x4626f8
test edi, edi
je 0x4626e8
push eax
test ebx, ebx
je 0x4626dd
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4626f8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0x16
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo
mov ecx, dword [ebp - 0x110]
push esi
push edi
call fcn.0047f890
mov ecx, dword [ebp - 0x104]
add ebx, 0xc
inc ecx
add ecx, esi
sub dword [ebp - 0x108], 1
mov dword [ebp - 0x104], ecx
jne 0x4626a7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0xfc]
push eax
push 7
push 0
push str.SavedPasswords
push dword [ebp - 0x100]
call ebx
test eax, eax
jne 0x46276e
movsx eax, byte [ebp + 0x14]
push 4
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
push 4
push 0
push str.LastUsedAccIdx
push dword [ebp - 0x100]
call ebx
test eax, eax
je 0x46277a
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005aa550
mov esp, ebp
pop ebp
ret 0x10