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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60f950
push eax
mov dword fs:[0], esp
sub esp, 0x20
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetControlSecurityProviders
mov ebp, ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x5a6bdb
or ebx, 0xffffffff
cmp esi, 5
jne 0x5a6b9e
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetControlSecurityProviders
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x5a6b9e
lea edx, [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x20]
push str.SecurityProviders
push eax
call edi
mov esi, eax
test esi, esi
jne 0x5a6b93
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x5a6b93
mov ecx, dword [0x6cc564]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], esi
call fcn.005e3c86
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x18]
push esi
push esi
push str.SecurityProviders
push eax
call edi
mov esi, eax
test esi, esi
je 0x5a6b3a
mov ecx, dword [0x6cc564]
mov dword [esp + 0x1c], ecx
push esi
lea edx, [esp + 0x20]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push edx
mov byte [esp + 0x44], 1
call fcn.005dc6eb
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, ebp
push eax
call fcn.005a0160
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.005e38b9
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x18]
jmp 0x5a6df0
lea ecx, [esp + 0x18]
call fcn.005e3d13
push str.schannel.dll
lea ecx, [esp + 0x1c]
call fcn.005dc365
test eax, eax
jl 0x5a6b86
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.005e38b9
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
call fcn.005e38b9
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x6cc564]
mov dword [esp + 0x20], eax
push esi
lea ecx, [esp + 0x24]
push str.Error__ld_opening_Key_during_CheckRegSecurityProvider___r_n
push ecx
mov dword [esp + 0x44], 2
call fcn.005dc6eb
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, ebp
push edx
call fcn.005a0160
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x20]
jmp 0x5a6df0
mov eax, dword [0x6cc564]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], 3
push ecx
push 0
push 0
push 0
push str.SecurityProviders
push edx
call edi
mov esi, eax
test esi, esi
jne 0x5a6d34
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x5a6d39
mov ecx, dword [0x6cc564]
mov dword [esp + 0x18], ecx
mov bl, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.005e3c86
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x18]
push esi
push esi
push str.SecurityProviders
push eax
call edi
test eax, eax
je 0x5a6c9a
mov ecx, dword [0x6cc564]
mov dword [esp + 0x20], ecx
push eax
lea edx, [esp + 0x24]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push edx
mov byte [esp + 0x44], 5
call fcn.005dc6eb
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, ebp
push eax
call fcn.005a0160
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.005e38b9
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x18]
jmp 0x5a6ddf
lea ecx, [esp + 0x18]
call fcn.005e3d13
push str.schannel.dll
lea ecx, [esp + 0x1c]
call fcn.005dc365
test eax, eax
jge 0x5a6cf5
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push str.schannel.dll_
push edx
call fcn.005e3ae8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 6
call fcn.005e39f2
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], bl
call fcn.005e38b9
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.005e38b9
jmp 0x5a6d47
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 3
call fcn.005e38b9
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.005e38b9
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
cmp esi, 2
jne 0x5a6d9d
push str.schannel.dll
lea ecx, [esp + 0x18]
call fcn.005e3a42
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.SecurityProviders
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
sete bl
call fcn.005e38b9
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x6cc564]
mov dword [esp + 0x24], ecx
push esi
lea edx, [esp + 0x28]
push str.Error__ld_RegQueryValueEx___during_CheckRegSecurityProvider___r_n
push edx
mov byte [esp + 0x44], 7
call fcn.005dc6eb
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, ebp
push eax
call fcn.005a0160
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x24]
call fcn.005e38b9
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.005e38b9
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret