Function at 0x552630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x629688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov edx, dword [eax + 4]
sub edx, dword [eax]
mov eax, 0x2aaaaaab
imul edx
sar edx, 4
push esi
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0x10
mov dword [ebp - 0x108], eax
mov esi, eax
lea eax, [edi + 8]
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], 0
jb 0x552692
mov eax, dword [eax]
lea ecx, [ebp - 0x100]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5528f5
mov ecx, dword [ebp - 0xfc]
mov edi, dword [edi + 0x20]
mov ecx, dword [ecx + 0x24]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
push ebx
xor ebx, ebx
shr ecx, 0x1f
mov dword [ebp - 0xe8], ebx
add ecx, edx
je 0x5528e0
mov dword [ebp - 0xdc], ebx
test esi, esi
je 0x5528e0
mov eax, esi
sub ecx, ebx
xor edx, edx
div ecx
mov esi, eax
mov dword [ebp - 0xf4], esi
lea esi, [esi + esi*2]
shl esi, 5
mov dword [ebp - 0x10c], esi
test esi, esi
je 0x552891
mov ecx, dword [ebp - 0xdc]
add ecx, edi
cmp dword [ecx + 0x14], 0x10
jb 0x55271d
mov ecx, dword [ecx]
lea eax, [ebp - 0xec]
push eax
push ecx
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x552891
lea eax, [esi + 0x10]
push 1
push eax
call fcn.005882d3
mov edi, eax
push 1
push esi
mov dword [ebp - 0x114], edi
call fcn.005882d3
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x104], ebx
test edi, edi
je 0x55287e
test ebx, ebx
je 0x552875
mov eax, dword [ebp - 0xf4]
mov edi, ebx
mov dword [ebp - 0xf0], edi
test eax, eax
je 0x5527dc
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xf8], eax
lea ebx, [ecx + ecx*2]
shl ebx, 5
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
add ecx, ebx
call fcn.00547fe0
mov ecx, 0x18
lea esi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xf0]
add edi, 0x60
add ebx, 0x60
dec dword [ebp - 0xf8]
mov dword [ebp - 0xf0], edi
jne 0x552793
mov ebx, dword [ebp - 0x104]
mov esi, dword [ebp - 0x10c]
lea eax, [ebp - 0xd8]
push eax
call fcn.00410f30
push esi
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.00410f60
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.00411060
mov ecx, dword [ebp - 0xe4]
add esp, 0x18
call fcn.004070b0
mov edi, dword [ebp - 0x114]
mov ecx, dword [ebp - 0xe4]
push esi
push edi
push ebx
call fcn.00407110
mov ecx, dword [ebp - 0xe4]
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00407110
movq xmm0, qword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push edi
push 3
movq qword [esi + edi], xmm0
movq xmm0, qword [ebp - 0xc]
push 0
push 0
movq qword [esi + edi + 8], xmm0
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.005864b7
add esp, 4
test ebx, ebx
je 0x55288b
push ebx
call fcn.005864b7
add esp, 4
mov ebx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0xf4]
mov esi, dword [ebp - 0x108]
add dword [ebp - 0xdc], 0x18
sub esi, eax
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xfc]
inc ebx
mov edi, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0xe8], ebx
cmp ebx, ecx
jb 0x5526e1
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00586d1b
mov esp, ebp
pop ebp
ret 8