Function at 0x41cac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b65e9
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebx
jb 0x41cb2c
mov eax, dword [edi]
jmp 0x41cb2e
mov eax, edi
push ebx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push ebx
or edx, 0x2001b
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x41cd29
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], ebx
mov ecx, dword [esp + 0x1c]
push ecx
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push esi
push ecx
lea edx, [esp + 0x54]
push str.RegCreateKeyEx_Failed._lStatus:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x1a
mov edi, 0xf
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 2
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 3
push eax
lea ecx, [esp + 0xe4]
push ecx
push 0x82
lea edx, [esp + 0xd0]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 2
cmp dword [esp + 0x110], 8
jb 0x41cc82
mov eax, dword [esp + 0xfc]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
mov byte [esp + 0x128], 1
mov esi, 0x10
cmp dword [esp + 0xd8], esi
jb 0x41ccc4
mov edx, dword [esp + 0xc4]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov byte [esp + 0x128], bl
cmp dword [esp + 0xf4], esi
jb 0x41ccf9
mov eax, dword [esp + 0xe0]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
xor al, al
jmp 0x41d197
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x41cd3c
mov ecx, dword [ecx]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], esi
jb 0x41cd47
mov eax, dword [eax]
lea edx, [edx + edx + 2]
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov byte [esp + 0x17], 1
mov edi, 0xf
cmp esi, ebx
je 0x41cf4a
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.00413cc0
mov dword [esp + 0x128], 4
mov eax, dword [esp + 0x1c]
push eax
push ecx
push str.__strKeyName:
push ecx
mov ecx, dword [esp + 0x34]
push ecx
push ecx
push str.._strSubKey:
push ecx
push esi
push ecx
lea edx, [esp + 0x54]
push str.RegSetValueEx_Failed._lStatus:
push edx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.0041efb0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 6
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 7
push eax
lea ecx, [esp + 0xc8]
push ecx
push 0x8f
lea edx, [esp + 0xec]
push edx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 6
mov esi, 8
cmp dword [esp + 0x110], esi
jb 0x41cea6
mov eax, dword [esp + 0xfc]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], cx
mov byte [esp + 0x128], 5
cmp dword [esp + 0xf4], 0x10
jb 0x41cee4
mov edx, dword [esp + 0xe0]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov byte [esp + 0x128], 4
cmp dword [esp + 0xd8], 0x10
jb 0x41cf1b
mov eax, dword [esp + 0xc4]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
mov byte [esp + 0x17], bl
jmp 0x41cf4f
mov esi, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], ebx
call fcn.00413cc0
mov dword [esp + 0x128], esi
mov eax, 0x4c5170
cmp byte [esp + 0x17], bl
jne 0x41cf82
mov eax, str.FAILED.
mov edx, dword [ebp + 0x18]
push edx
push ecx
mov edx, dword [esp + 0x28]
push str.._samDesired:
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push ecx
push str.._dwType:
push ecx
push edx
mov edx, dword [esp + 0x48]
push ecx
push str.._strKeyValue:
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
push ecx
push str.._strKeyName:
push ecx
push edx
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea eax, [esp + 0x84]
push str.WriteRegValue
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 0xc
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
call fcn.0040ebe0
mov byte [esp + 0x128], 0xa
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x30]
call fcn.00413de0
mov byte [esp + 0x128], 0xb
push eax
lea edx, [esp + 0xc8]
push edx
push 0x96
lea eax, [esp + 0xec]
push eax
push 3
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x128], 0xa
cmp dword [esp + 0x110], esi
jb 0x41d0f2
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x110], 7
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
mov byte [esp + 0x128], 9
mov esi, 0x10
cmp dword [esp + 0xf4], esi
jb 0x41d134
mov eax, dword [esp + 0xe0]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
mov byte [esp + 0x128], 8
cmp dword [esp + 0xd8], esi
jb 0x41d16a
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0x128], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00412cc0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret 0x14