Function at 0x1006b540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100de7e9
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x1010e07c]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, esp
push eax
lea eax, [esp + 0x118]
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 [esp + 0x1c], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebx
jb 0x1006b5a2
mov ecx, dword [edi]
jmp 0x1006b5a4
mov ecx, edi
mov eax, dword [eax]
push ebx
lea edx, [esp + 0x18]
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 0x1006b79b
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.100042d0
mov dword [esp + 0x120], ebx
mov ecx, dword [esp + 0x10]
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 + 0x4c]
push str.RegCreateKeyEx_Failed._lStatus:
push edx
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10014310
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 8
push 0x1a
mov edi, 0xf
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.100065d0
mov byte [esp + 0x120], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.100065d0
mov byte [esp + 0x120], 2
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x28]
call fcn.100043f0
mov byte [esp + 0x120], 3
push eax
lea ecx, [esp + 0xc0]
push ecx
push 0x82
lea edx, [esp + 0xe4]
push edx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x120], 2
cmp dword [esp + 0x108], 8
jb 0x1006b6f4
mov eax, dword [esp + 0xf4]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], cx
mov byte [esp + 0x120], 1
mov esi, 0x10
cmp dword [esp + 0xec], esi
jb 0x1006b736
mov edx, dword [esp + 0xd8]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov byte [esp + 0x120], bl
cmp dword [esp + 0xd0], esi
jb 0x1006b76b
mov eax, dword [esp + 0xbc]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.100029c0
xor al, al
jmp 0x1006bbf5
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov esi, 8
cmp dword [ecx + 0x14], esi
jb 0x1006b7ae
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], esi
jb 0x1006b7b9
mov eax, dword [eax]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov byte [esp + 0x18], 1
mov edi, 0xf
cmp esi, ebx
je 0x1006b9ba
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.100042d0
mov dword [esp + 0x120], 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push ecx
push str.__strKeyName:
push ecx
push edx
push ecx
push str.._strSubKey:
push ecx
push esi
push ecx
lea eax, [esp + 0x4c]
push str.RegSetValueEx_Failed._lStatus:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10014310
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 8
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.100065d0
mov byte [esp + 0x120], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.100065d0
mov byte [esp + 0x120], 6
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x28]
call fcn.100043f0
mov byte [esp + 0x120], 7
push eax
lea edx, [esp + 0xdc]
push edx
push 0x8f
lea eax, [esp + 0xc8]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x120], 6
mov esi, 8
cmp dword [esp + 0x108], esi
jb 0x1006b916
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], dx
mov byte [esp + 0x120], 5
cmp dword [esp + 0xd0], 0x10
jb 0x1006b954
mov eax, dword [esp + 0xbc]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], 4
cmp dword [esp + 0xec], 0x10
jb 0x1006b98b
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.100029c0
mov byte [esp + 0x18], bl
jmp 0x1006b9bf
mov esi, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
call fcn.100042d0
mov dword [esp + 0x120], esi
push ebx
push ecx
mov eax, dword [esp + 0x28]
push str.._samDesired:
push ecx
push 1
push ecx
push str.._dwType:
push ecx
mov edx, dword [esp + 0x3c]
push eax
push ecx
mov eax, dword [esp + 0x40]
push str.._strKeyValue:
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push ecx
push str.._strKeyName:
push ecx
push edx
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea ecx, [esp + 0x7c]
push str.bRet:
push ecx
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10063b30
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
push 0x1a
push str.CRegUtility::WriteRegValue
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.100065d0
mov byte [esp + 0x120], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.100065d0
mov byte [esp + 0x120], 0xa
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0x28]
call fcn.100043f0
mov byte [esp + 0x120], 0xb
push eax
lea eax, [esp + 0xdc]
push eax
push 0x96
lea ecx, [esp + 0xc8]
push ecx
push 3
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x120], 0xa
cmp dword [esp + 0x108], esi
jb 0x1006bb50
mov edx, dword [esp + 0xf4]
push edx
call fcn.100b2678
add esp, 4
xor eax, eax
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], ax
mov byte [esp + 0x120], 9
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jb 0x1006bb92
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], 8
cmp dword [esp + 0xec], esi
jb 0x1006bbc8
mov edx, dword [esp + 0xd8]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.100029c0
mov al, byte [esp + 0x18]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret 8