Function at 0x10004b60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100061e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push eax
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x20], 1
mov edi, dword [ecx - 8]
cmp edi, ebx
jle 0x10004bee
push 0x5c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x10004bee
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x34]
cmp edi, ebx
jne 0x10004bfb
mov edi, 0x80000002
push 0x100
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x34]
push edx
push 0x20006
push ebx
push eax
push edi
mov dword [esp + 0x48], ebx
call ebp
cmp eax, ebx
jne 0x10004c30
mov esi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x10], esi
cmp dword [esp + 0x38], 1
jne 0x10004ceb
cmp eax, 2
jne 0x10004ceb
push 0x100
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x38]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edi
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x10004c8a
xor eax, eax
cmp esi, ebx
je 0x10004c82
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
cmp eax, ebx
je 0x10004cb1
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10004d6b
jmp 0x10004d64
push 0x100
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ebx
push edx
push 0x20006
push ebx
push eax
push edi
call ebp
cmp eax, ebx
jne 0x10004d53
xor eax, eax
cmp esi, ebx
je 0x10004ce3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
cmp eax, ebx
jne 0x10004d53
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [esp + 0x2c]
push edi
push 1
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
mov edi, eax
je 0x10004d1f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
cmp edi, ebx
jne 0x10004d53
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10004d3b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10004d6b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret