Function at 0x4128d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592963
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5fcffc]
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 ebx, ecx
mov dword [ebp - 0x224], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005711a0
lea eax, [ebx + 0x314]
push eax
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push str.Software_
push eax
call fcn.00422650
push 0x5d9210
push eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
call fcn.00422a00
add esp, 0x24
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4129d3
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4129cb
push 0x5d8d04
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x228]
call edi
mov edx, dword [ebp - 0x22c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4129f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call fcn.00577b2d
mov ebx, eax
mov eax, dword [ebp - 0x224]
push dword [eax + 0x304]
call fcn.00577b2d
add esp, 8
test ebx, ebx
je 0x412a45
cmp ebx, eax
jl 0x412a45
xor edi, edi
jmp 0x412b39
push dword [ebp - 0x234]
lea eax, [ebp - 0x22c]
push str.Software_
push eax
call fcn.00422650
push 0x5d9210
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
call fcn.00422a00
mov ecx, dword [ebp + 8]
add esp, 0x18
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x234], ecx
lea ecx, [ebp - 0x220]
push ecx
mov ebx, dword [ebx + 0x304]
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412af6
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ac0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412af6
push dword [ebp - 0x224]
call edi
mov edx, dword [ebp - 0x230]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412b13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412b34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x412b58
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0056eb08
mov esp, ebp
pop ebp
ret 4