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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537702
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, esi
push 4
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x70]
push 0
push eax
mov dword [ebp - 0x80], 0
call fcn.00412e20
mov dword [ebp - 4], 0
push eax
call fcn.004a4d00
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00409020
push 0xffffffffffffffff
push 5
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.00412e20
mov dword [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov byte [ebp - 4], 3
mov eax, SysReAllocString
mov ecx, dword [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x78], ecx
cmp eax, 1
jb 0x4a299d
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov esi, 7
mov dword [ebp - 0x28], edi
cmovae eax, dword [ebp - 0x58]
inc ecx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x88], eax
cmp ecx, esi
jbe 0x4a2711
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4a26ec
mov esi, SysReAllocString
jmp 0x4a26f6
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408960
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x78]
add esi, esi
mov dword [ebp - 0x18], ecx
push esi
push dword [ebp - 0x9c]
push eax
call fcn.004d4210
mov eax, dword [ebp - 0x88]
mov ecx, 0x5c
xor edx, edx
mov dword [ebp - 0x80], 1
add esp, 0xc
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x78]
mov word [eax + ecx*2 + 2], dx
mov eax, dword [ebp - 0x84]
add eax, 0xb4
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4a2766
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e5d0
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], 3
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x78]
push ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0x2011f
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a27f0
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], 0x100
mov esi, 3
mov dword [ebp - 0x80], esi
and esi, 0xfffffffd
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4a283c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2832
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a29a2
push edx
push ecx
call fcn.004d24a7
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
and esi, 0xfffffffe
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a2894
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a288a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a29a2
push edx
push ecx
call fcn.004d24a7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
jne 0x4a28b4
mov byte [ebp - 0x71], al
jmp 0x4a294b
cmp byte [ebp + 0x10], al
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 2
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x7c], 4
push eax
push 0
je 0x4a2902
push 0x58f036
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x78]
push 4
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 4
push 0
push str.LoadBehavior
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4a2945
push str.LoadBehavior
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 4
push 0
push 0x58f036
push edi
call esi
push 4
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 4
push 0
push str.LoadBehavior
push edi
call esi
test eax, eax
sete byte [ebp - 0x71]
mov byte [ebp - 4], 1
test edi, edi
je 0x4a2964
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00409020
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 0xc
call fcn.00408560
call fcn.004e0791
int3