Function at 0x47e3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x52658f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
lea eax, [esp + 4]
push esi
xor ebx, ebx
push eax
mov esi, ecx
mov ecx, dword [esp + 0x114]
push 0x20019
push ebx
push str.SecuritySFTP2
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47e798
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
push edi
push edx
lea eax, [esp + 0x30]
push ebx
push eax
push ebx
push str.SFTP2_CipherAlgs
push ecx
call ebp
cmp eax, ebx
jne 0x47e4ed
mov edx, dword [esp + 0x24]
push edx
call fcn.0050c4a3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x28]
push ecx
push edi
push str.SFTP2_CipherAlgs
push edx
mov dword [esp + 0x28], eax
call fcn.004763f0
add esp, 0x14
cmp eax, ebx
jne 0x47e4e4
cmp edi, ebx
je 0x47e4e4
mov eax, dword [esp + 0x14]
push ebx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.00511efd
push ebx
push 0x1000
lea ecx, [esp + 0x60]
push 1
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x120], ebx
call fcn.0050ed7b
mov edx, dword [esi + 0x24]
lea ecx, [esi + 0x24]
lea eax, [esp + 0x80]
mov byte [esp + 0x110], 1
push eax
call dword [edx + 8]
lea ecx, [esp + 0x80]
call fcn.0050eedf
lea ecx, [esp + 0x58]
call fcn.0051215d
lea ecx, [esp + 0x80]
mov byte [esp + 0x110], bl
call fcn.0050ee57
lea ecx, [esp + 0x58]
mov dword [esp + 0x110], 0xffffffff
call fcn.00511f76
push edi
call fcn.0050c4cc
add esp, 4
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x38]
push 4
push ecx
push str.SFTP2_TripleDES
push edx
call fcn.004762f0
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x3c]
push 4
push eax
push str.SFTP2_Blowfish
push ecx
call fcn.004762f0
mov eax, dword [esp + 0x30]
lea edx, [esi + 0x40]
push 4
push edx
push str.SFTP2_Twofish
push eax
call fcn.004762f0
mov edx, dword [esp + 0x40]
lea ecx, [esi + 0x44]
push 4
push ecx
push str.SFTP2_ARCFOUR
push edx
call fcn.004762f0
mov ecx, dword [esp + 0x50]
add esp, 0x40
lea eax, [esi + 0x48]
push 4
push eax
push str.SFTP2_CAST128
push ecx
call fcn.004762f0
mov eax, dword [esp + 0x20]
lea edx, [esi + 8]
push 4
push edx
push str.SFTP2_UseCompression
push eax
call fcn.004762f0
mov edx, dword [esp + 0x30]
lea ecx, [esi + 0xc]
push 4
push ecx
push str.SFTP2_AuthByPassword
push edx
call fcn.004762f0
mov ecx, dword [esp + 0x40]
lea eax, [esi + 0x10]
push 4
push eax
push str.SFTP2_AuthByKey
push ecx
call fcn.004762f0
mov eax, dword [esp + 0x50]
add esp, 0x40
lea edx, [esi + 0x14]
push edx
push str.SFTP2PublicKey
push eax
call fcn.00476360
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x18]
push ecx
push str.SFTP2PrivateKey
push edx
call fcn.00476360
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x1c]
push 4
push eax
push str.UseSFTP2Passphrase
push ecx
call fcn.004762f0
mov edx, dword [0x569c90]
mov dword [esp + 0x40], edx
mov ebx, 2
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
push str.SFTP2KeyPassphrase
push ecx
mov dword [esp + 0x144], ebx
call fcn.00476360
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00478610
add esp, 0x3c
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0x114], 3
call fcn.00507e73
lea ecx, [esp + 0x14]
mov byte [esp + 0x110], bl
call fcn.00507d3a
or ebx, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x110], ebx
call fcn.00507d3a
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
push 0
push str.SFTP2_MACAlgs
push eax
call ebp
test eax, eax
jne 0x47e734
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0050c4a3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov edi, eax
lea eax, [esp + 0x20]
push eax
push edi
push str.SFTP2_MACAlgs
push ecx
mov dword [esp + 0x30], edx
call fcn.004763f0
add esp, 0x14
test eax, eax
jne 0x47e72b
test edi, edi
je 0x47e72b
mov edx, dword [esp + 0x1c]
push eax
push edx
push edi
lea ecx, [esp + 0x3c]
call fcn.00511efd
push 0
push 0x1000
lea eax, [esp + 0x38]
push 1
push eax
lea ecx, [esp + 0xd4]
mov dword [esp + 0x120], 4
call fcn.0050ed7b
mov edx, dword [esi + 0x4c]
lea ecx, [esi + 0x4c]
lea eax, [esp + 0xc4]
mov byte [esp + 0x110], 5
push eax
call dword [edx + 8]
lea ecx, [esp + 0xc4]
call fcn.0050eedf
lea ecx, [esp + 0x30]
call fcn.0051215d
lea ecx, [esp + 0xc4]
mov byte [esp + 0x110], 4
call fcn.0050ee57
lea ecx, [esp + 0x30]
mov dword [esp + 0x110], ebx
call fcn.00511f76
push edi
call fcn.0050c4cc
add esp, 4
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x60]
push 4
push ecx
push str.SFTP2_MD5
push edx
call fcn.004762f0
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x64]
push 4
push eax
push str.SFTP2_SHA1
push ecx
call fcn.004762f0
mov eax, dword [esp + 0x30]
lea edx, [esi + 0x6c]
push 4
push edx
push str.SFTP2_MD5_96
push eax
call fcn.004762f0
mov ecx, dword [esp + 0x40]
add esi, 0x68
push 4
push esi
push str.SFTP2_SHA1_96
push ecx
call fcn.004762f0
mov edx, dword [esp + 0x50]
add esp, 0x40
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov ecx, dword [esp + 0x100]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x104
ret 4