Function at 0x10004d80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10006218
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 0x10004e0e
push 0x5c
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::ReverseFind
dec edi
cmp eax, edi
jne 0x10004e0e
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 0x10004e1b
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 0x10004e50
mov esi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x10], esi
cmp dword [esp + 0x38], 1
jne 0x10004f0b
cmp eax, 2
jne 0x10004f0b
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 0x10004eaa
xor eax, eax
cmp esi, ebx
je 0x10004ea2
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 0x10004ed1
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10004f8c
jmp 0x10004f85
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 0x10004f74
xor eax, eax
cmp esi, ebx
je 0x10004f03
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], esi
cmp eax, ebx
jne 0x10004f74
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push 4
push ecx
push 4
push ebx
push edx
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, ebx
mov edi, eax
je 0x10004f40
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x10], esi
cmp edi, ebx
jne 0x10004f74
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10004f5c
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 0x10004f8c
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