Function at 0x47fb80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2989
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x4eb6b8]
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 edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x68], ebx
jb 0x47fbcc
mov ecx, dword [edi]
jmp 0x47fbce
mov ecx, edi
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x68]
push edx
push ebx
push 0x2001b
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x47fd3d
lea ecx, [ebp - 0x110]
push ecx
call fcn.00414a60
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x6c]
push edx
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push esi
push ecx
lea eax, [ebp - 0x110]
push str.RegCreateKeyEx_Failed._lStatus:
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.004122f0
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 8
push 0x1a
mov edi, 0xf
push str.CRegUtility::WriteRegValue
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004190e0
mov byte [ebp - 4], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004190e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00414b60
mov byte [ebp - 4], 3
push eax
push 0xa8
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00471900
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x47fcd4
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 1
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x47fcfe
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x47fd1b
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00403e50
xor al, al
jmp 0x48004f
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 8
jb 0x47fd48
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
push 4
lea ecx, [ebp - 0x78]
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov byte [ebp - 0x70], 1
mov edi, 0xf
cmp esi, ebx
je 0x47febe
lea eax, [ebp - 0x110]
push eax
call fcn.00414a60
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x74]
push ecx
push ecx
push str.__strKeyName:
push ecx
push edx
push ecx
push str.._strSubKey:
push ecx
push esi
push ecx
lea eax, [ebp - 0x110]
push str.RegSetValueEx_Failed._lStatus:
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.004122f0
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 8
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004190e0
mov byte [ebp - 4], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004190e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00414b60
mov byte [ebp - 4], 7
push eax
push 0xb5
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00471900
mov byte [ebp - 4], 6
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x47fe59
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x34], 0x10
jb 0x47fe7f
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 0x10
jb 0x47fe9e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00403e50
mov byte [ebp - 0x70], bl
jmp 0x47fec3
mov esi, 8
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - 0x68], ebx
call fcn.00414a60
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x78]
push ebx
push ecx
push str.._samDesired:
push ecx
mov edx, dword [ebp - 0x74]
push eax
push ecx
mov eax, dword [ebp - 0x70]
push str.._dwKeyValue:
push ecx
mov ecx, dword [ebp - 0x6c]
push ecx
push ecx
push str.._strKeyName:
push ecx
push edx
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea ecx, [ebp - 0x110]
push 0x4cdcac
push ecx
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00412110
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004190e0
mov byte [ebp - 4], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004190e0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00414b60
mov byte [ebp - 4], 0xb
push eax
push 0xbc
push 3
call fcn.00413e40
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00471900
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x50], esi
jb 0x47ffe9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 9
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x480013
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], esi
jb 0x480031
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00403e50
mov al, byte [ebp - 0x70]
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.0049ca6b
mov esp, ebp
pop ebp
ret 8