Function at 0x48bdb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fca52
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x53c160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], edx
xor eax, eax
mov dword [ebp - 0x2c], eax
mov esi, dword [ecx]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
cmp esi, eax
je 0x48c19a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x4c], 0
nop dword [eax]
xor edi, edi
mov dword [ebp - 0x50], edi
push 0xb0
lea eax, [ebp - 0x120]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.004c6130
mov dword [ebp - 0x120], 0x51691c
mov dword [ebp - 0x110], 0x516914
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0xb8], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x30]
add esp, 4
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405020
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x110], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x124], eax
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x108]
call fcn.00404e00
mov dword [ebp - method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], edi
mov edx, 0x51cdc4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x110]
call fcn.00405e40
push dword [ebp - 0x34]
lea ecx, [ebp - 0x110]
call fcn.00405a80
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x108]
call fcn.00403e80
or dword [ebp - 0x30], 0x18
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.00403040
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x48bfb5
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48bfab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c1d7
push edx
push ecx
call fcn.004c3baf
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], 7
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 0x38]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
lea ecx, [ebp - 0x28]
cmove edi, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
call fcn.00408a80
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.004025a0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x48c026
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00410590
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x48c03c
mov edx, dword [edx]
test edx, edx
je 0x48c06f
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c045
sub eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0x516f34
push edi
call ebx
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x48c0a9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48c09f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48c1d7
push edx
push ecx
call fcn.004c3baf
add esp, 8
mov eax, dword [esi + 0x2c]
cmp eax, 4
ja case.default.0x48c0b5
jmp dword [eax*4 + 0x48c1dc]
xor eax, eax
jmp 0x48c0da
mov eax, 1
jmp 0x48c0da
mov eax, 2
jmp 0x48c0da
mov eax, 3
jmp 0x48c0da
mov eax, 4
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push str.MatchType
push edi
call ebx
mov ecx, dword [esi + 0x30]
call fcn.00499920
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
push str.FilterType
push edi
call ebx
mov ecx, dword [esi + 0x30]
call fcn.00499920
push 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 4
push 0
push str.Type
push edi
call ebx
mov eax, dword [esi + 0x34]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push str.BgColor
push edi
call ebx
mov eax, dword [esi + 0x38]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push str.FgColor
push edi
call ebx
movzx eax, byte [esi + 0x3c]
push 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push str.Enable
push edi
call ebx
inc dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48c18e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x50], 0
add esi, 0x40
cmp esi, dword [ebp - 0x44]
jne 0x48be20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3ba1
mov esp, ebp
pop ebp
ret
push str.bad_MatchType_
lea ecx, [ebp - 0x12c]
call fcn.0048a020
push 0x538b78
lea eax, [ebp - 0x12c]
push eax
call fcn.004c5b2b
call fcn.004cecff
mov esp, 0xc00048c0
ror byte [eax], 199
ror byte [eax], 0xce
ror byte [eax], 0xd5
ror byte [eax], 0x55
push ebp