Function at 0x79d94c20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov esi, dword [ebp + 8]
mov edi, dword [edx]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], edx
mov ebx, dword [esi]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x244], esi
mov esi, dword [eax + 0x1c]
mov dword [ebp - 0x22c], esi
lea esi, [ecx + ebx - 2]
mov dword [ebp - 0x224], esi
mov esi, dword [eax + 0x20]
test edi, edi
je 0x79d95030
mov dword [ebp - 0x230], 0
mov edi, ecx
mov dword [ebp - 0x234], 0
lea esi, [esi]
lea eax, [ebp - 0x21c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20e]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x21c], 0xff
call sym._RegEnumKeyExW_32
sub esp, 0x20
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x79d94fd0
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x79d94e87
lea eax, [ebx - 0x20]
test eax, eax
jg 0x79d94ee4
mov dword [ebp - 0x228], 0xea
lea eax, [ebx - 0x26]
mov dword [ebp - 0x240], eax
mov ebx, eax
test eax, eax
jle 0x79d94d6e
mov ecx, dword [ebp - 0x224]
movzx edx, word [ebp - 0x20e]
mov word [ecx - 6], dx
mov edx, 0x3a
lea eax, [ecx - 6]
mov word [ecx - 4], dx
xor edx, edx
mov word [ecx - 2], dx
mov dword [ebp - 0x224], eax
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x220]
mov edx, str.ProviderName
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
call sym._get_reg_str.constprop.9
mov dword [ebp - 0x234], 0x26
mov edx, eax
test eax, eax
je 0x79d94def
mov eax, dword [ebp - 0x214]
lea ebx, [eax + 0x26]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x240]
sub ebx, eax
test ebx, ebx
jg 0x79d94f54
mov dword [ebp - 0x228], 0xea
mov dword [ebp - 0x240], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x240]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapFree_12
sub esp, 0xc
mov eax, dword [ebp - 0x220]
mov edx, str.RemotePath
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
call sym._get_reg_str.constprop.9
mov edx, eax
test eax, eax
je 0x79d94e5d
mov eax, dword [ebp - 0x214]
add dword [ebp - 0x234], eax
sub ebx, eax
test ebx, ebx
jg 0x79d94f90
mov dword [ebp - 0x228], 0xea
mov dword [ebp - 0x240], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x240]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapFree_12
sub esp, 0xc
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [edi + 0x18], 0
sub esp, 4
test ebx, ebx
js 0x79d94fdb
add dword [ebp - 0x230], 1
add edi, 0x20
mov eax, dword [ebp - 0x23c]
add esi, 1
mov dword [eax + 0x20], esi
mov eax, dword [ebp - 0x238]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x230]
jne 0x79d94c80
cmp eax, 0xffffffff
je 0x79d94c80
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x79d95030
mov eax, dword [ebp - 0x238]
mov edi, dword [ebp - 0x230]
mov dword [eax], edi
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x228]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x218]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ConnectionType
mov dword [esp], eax
mov dword [ebp - 0x218], 4
call sym._RegQueryValueExW_24
mov eax, dword [ebp - 0x244]
sub esp, 0x18
test eax, eax
je 0x79d94f3b
cmp dword [edi + 4], eax
jne 0x79d95054
mov dword [edi], 3
mov dword [edi + 8], 0
mov dword [edi + 0xc], 1
jmp 0x79d94d33
and eax, 0xfffffffe
sub dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x240], edx
call sym._lstrcpyW_8
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x240]
sub esp, 8
mov dword [edi + 0x1c], eax
jmp 0x79d94dc7
and eax, 0xfffffffe
sub dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x240], edx
call sym._lstrcpyW_8
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x240]
sub esp, 8
mov dword [edi + 0x14], eax
jmp 0x79d94e35
cmp eax, 0x103
je 0x79d94eb0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x79d95030
mov edi, dword [ebp - 0x238]
mov dword [edi], eax
mov eax, dword [ebp - 0x228]
cmp eax, 0xea
je 0x79d95005
cmp eax, 0x103
jne 0x79d94ecc
cmp dword [ebp - 0x228], 0xea
jne 0x79d94ed6
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x234]
add dword [eax], edi
mov eax, dword [ebp - 0x228]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x228], 0x103
mov eax, dword [ebp - 0x238]
mov dword [eax], 0
mov eax, dword [ebp - 0x228]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x220]
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x234], 0x20
sub esp, 4
jmp 0x79d94e87