Function at 0x579bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x645624]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xe0], 0
mov edx, dword [eax + 4]
sub edx, dword [eax]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 0xc]
imul edx
push esi
sar edx, 4
mov eax, edx
mov dword [ebp - 0xf4], ebx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xdc], ecx
cmp dword [ebx + 0x1c], 0x10
mov esi, eax
mov dword [ebp - 0x10c], eax
lea eax, [ebx + 8]
jb 0x579c22
mov eax, dword [eax]
lea ecx, [ebp - 0xf8]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x579eac
mov ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x20]
imul ecx
push edi
sar edx, 2
xor edi, edi
mov eax, edx
mov dword [ebp - 0xe4], edi
shr eax, 0x1f
add eax, edx
je 0x579e97
mov dword [ebp - 0xe8], edi
nop dword [eax]
test esi, esi
je 0x579e97
mov ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x20]
imul ecx
mov eax, esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor edx, edx
sub ecx, edi
div ecx
mov esi, eax
mov dword [ebp - 0xf0], esi
lea ebx, [esi + esi*2]
shl ebx, 5
mov dword [ebp - 0x108], ebx
test ebx, ebx
je 0x579e4e
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x20]
add ecx, dword [ebp - 0xe8]
cmp dword [ecx + 0x14], 0x10
jb 0x579cca
mov ecx, dword [ecx]
lea eax, [ebp - 0xec]
push eax
push ecx
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x579e4e
lea eax, [ebx + 0x10]
push 1
push eax
call fcn.00593ac8
mov edi, eax
push 1
push ebx
mov dword [ebp - 0x104], edi
call fcn.00593ac8
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x100], ebx
test edi, edi
je 0x579e3b
test ebx, ebx
je 0x579e32
mov eax, dword [ebp - 0xf0]
mov esi, ebx
test eax, eax
je 0x579da0
mov ecx, dword [ebp - 0xe0]
mov ebx, eax
lea edi, [ecx + ecx*2]
shl edi, 5
nop word [eax + eax]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax]
add ecx, edi
call fcn.00571790
movups xmm0, xmmword [ebp - 0x84]
add edi, 0x60
lea esi, [esi + 0x60]
movups xmmword [esi - 0x60], xmm0
movups xmm0, xmmword [ebp - 0x74]
movups xmmword [esi - 0x50], xmm0
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [esi - 0x40], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [esi - 0x30], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [esi - 0x20], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [esi - 0x10], xmm0
sub ebx, 1
jne 0x579d40
mov ebx, dword [ebp - 0x100]
mov edi, dword [ebp - 0x104]
lea eax, [ebp - 0xd8]
push eax
call fcn.004bf680
mov esi, dword [ebp - 0x108]
lea eax, [ebp - 0xd8]
push esi
push ebx
push eax
call fcn.004bf6b0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.004bf7c0
mov ecx, dword [ebp - 0xdc]
add esp, 0x18
call fcn.004c8190
mov ecx, dword [ebp - 0xdc]
push esi
push edi
push ebx
call fcn.004c81f0
mov ecx, dword [ebp - 0xdc]
lea eax, [ebp - 0x24]
push 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c81f0
movups xmm0, xmmword [ebp - 0x24]
lea eax, [esi + 0x10]
push eax
push edi
push 3
push 0
push 0
movups xmmword [esi + edi], xmm0
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xec]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xf0]
push edi
call fcn.00593b50
add esp, 4
test ebx, ebx
je 0x579e48
push ebx
call fcn.00593b50
add esp, 4
mov edi, dword [ebp - 0xe4]
mov ebx, dword [ebp - 0xf4]
inc edi
mov eax, dword [ebp - 0xe0]
add dword [ebp - 0xe8], 0x18
add eax, esi
mov esi, dword [ebp - 0x10c]
mov ecx, dword [ebx + 0x24]
sub esi, eax
sub ecx, dword [ebx + 0x20]
mov dword [ebp - 0xe0], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0xe4], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x579c70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b676
mov esp, ebp
pop ebp
ret 8