Function at 0x10004fb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10006248
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 + 0x34]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x20], 1
mov edi, dword [ecx - 8]
cmp edi, ebx
jle 0x1000503e
push 0x5c
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x1000503e
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x34]
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 + 0x38]
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 + 0x38]
cmp edi, ebx
jne 0x1000504b
mov edi, 0x80000002
push 0x100
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x38]
push edx
push 0x20006
push ebx
push eax
push edi
mov dword [esp + 0x4c], ebx
call ebp
cmp eax, ebx
jne 0x10005080
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x10], esi
cmp dword [esp + 0x3c], 1
jne 0x1000513b
cmp eax, 2
jne 0x1000513b
push 0x100
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edi
mov dword [esp + 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x100050da
xor eax, eax
cmp esi, ebx
je 0x100050d2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], esi
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
cmp eax, ebx
je 0x10005101
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x100051b7
jmp 0x100051b0
push 0x100
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x38]
mov dword [esp + 0x38], ebx
push edx
push 0x20006
push ebx
push eax
push edi
call ebp
cmp eax, ebx
jne 0x1000519f
xor eax, eax
cmp esi, ebx
je 0x10005133
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], esi
cmp eax, ebx
jne 0x1000519f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push 3
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
mov edi, eax
je 0x1000516b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
cmp edi, ebx
jne 0x1000519f
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10005187
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 + 0x34]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x100051b7
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