Function at 0x6537c195
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
push 0x65376ae0
push 0x80000000
mov dword [esp + 0x28], 0x65376aa8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x6537c425
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, 0x65376a50
mov edx, dword [ebp]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x6537c416
mov eax, dword [ebp]
or ecx, 0xffffffff
lea edx, [eax + 0x27]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
push 0x6537681c
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x6537c40b
cmp ebp, 0x65376a64
ja 0x6537c275
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x65376ac0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x6537c40b
mov edi, 0x65376a88
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push 0x65376a88
push 1
push eax
push 0x6537681c
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x6537c400
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x65376ad0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x6537c40b
mov edi, 0x65376a78
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
push 0x65376a78
push 1
push eax
push 0x6537681c
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x6537c400
cmp ebp, 0x65376a74
jb 0x6537c3f1
mov edx, 0x65376ab0
mov dword [esp + 0x1c], edx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x65376a98
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x6537c400
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
add ebp, 4
cmp ebp, 0x65376a78
jb 0x6537c1ce
mov eax, dword [esp + 0x18]
push eax
call esi
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov esi, dword [ecx*4 + 0x653c3fc8]
test esi, esi
mov dword [esp + 0x20], esi
je 0x6537c3e5
mov eax, dword [esi]
cmp dword [eax], 0
je 0x6537c3d7
xor ebx, ebx
mov eax, dword [esi + 4]
test ecx, ecx
mov edx, dword [ebx + eax]
mov eax, dword [edx]
jne 0x6537c3a2
mov ecx, 0x10
mov edi, 0x65346b98
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x6537c39e
mov ecx, 0x10
mov edi, 0x65346ba8
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x6537c39e
mov ecx, 0x10
mov edi, 0x65346bf8
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x6537c39e
mov ecx, 0x10
mov edi, 0x65346c08
mov esi, eax
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x6537c3fa
mov esi, dword [esp + 0x20]
mov ecx, dword [edx + 8]
mov edx, dword [esi + 8]
push ecx
push 0x653769e0
mov ecx, dword [edx + ebx]
mov edx, dword [esp + 0x30]
push ecx
push eax
push edx
call fcn.6537c05d
add esp, 0x14
test eax, eax
jl 0x6537c3e7
mov eax, dword [esi]
add ebx, 4
cmp dword [ebx + eax], 0
mov ecx, dword [esp + 0x1c]
jne 0x6537c34a
inc ecx
cmp ecx, 3
mov dword [esp + 0x1c], ecx
jb 0x6537c32a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esp + 0x1c]
jmp 0x6537c2d4
mov esi, dword [esp + 0x20]
jmp 0x6537c3c4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x6537c3e5
and esi, 0xffff
pop edi
or esi, 0x80070000
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4