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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x274
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x234], 0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x23c], edi
mov edi, dword [ebp + 0x14]
mov edi, dword [edi]
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x238], 0
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x14]
mov dword [ebp - 0x224], edi
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
add edi, dword [ebx]
sub edi, 2
mov dword [ebp - 0x240], edi
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x20]
mov dword [ebp - 0x21c], edi
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
je 0x1000406a
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jne 0x1000406a
mov dword [ebp - 0x220], 0
jmp 0x1000450c
lea eax, [ebp - 0x212]
mov dword [esp], eax
call pe_dos_header
xor ecx, ecx
lea edx, [ebp - 0x212]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0x228]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x248], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
sub esp, 0x20
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10004105
cmp dword [ebp - 0x220], 0x103
jne 0x10004100
mov dword [ebp - 0x220], 0
jmp 0x1000450c
xor eax, eax
lea ecx, [ebp - 0x212]
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x20019
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], ecx
mov dword [ebp - 0x24c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
cmp eax, 0
je 0x1000414b
jmp 0x100044f8
mov dword [ebp - 0x234], 0x20
mov eax, dword [ebp - 0x218]
sub eax, 0x20
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jle 0x10004233
xor eax, eax
mov dword [ebp - 0x22c], 4
mov ecx, dword [ebp - 0x23c]
add ecx, 4
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
lea edx, str.ConnectionType
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x22c]
mov dword [esp + 0x14], ecx
mov dword [ebp - 0x250], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
cmp dword [ebp - 0x224], 0
je 0x10004208
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x224]
je 0x10004208
mov eax, dword [ebp - 0x218]
add eax, 0x20
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x100044f8
mov eax, dword [ebp - 0x23c]
mov dword [eax], 3
mov eax, dword [ebp - 0x23c]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xc], 1
jmp 0x1000423d
mov dword [ebp - 0x220], 0xea
mov eax, dword [ebp - 0x234]
add eax, 6
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x218]
sub eax, 6
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jle 0x100042ae
mov eax, dword [ebp - 0x240]
add eax, 0xfffffffa
mov dword [ebp - 0x240], eax
mov cx, word [ebp - 0x212]
mov eax, dword [ebp - 0x240]
mov word [eax], cx
mov eax, dword [ebp - 0x240]
mov word [eax + 2], 0x3a
mov eax, dword [ebp - 0x240]
mov word [eax + 4], 0
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
lea eax, str.ProviderName
mov dword [esp + 4], eax
lea eax, [ebp - 0x230]
mov dword [esp + 8], eax
call fcn.10008890
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x100043ad
mov eax, dword [ebp - 0x230]
add eax, dword [ebp - 0x234]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x218]
sub ecx, eax
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0
jle 0x1000436b
xor eax, eax
mov ecx, dword [ebp - 0x230]
shr ecx, 1
mov edx, dword [ebp - 0x240]
sub eax, ecx
shl eax, 1
add edx, eax
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
sub esp, 8
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x1c], ecx
jmp 0x10004375
mov dword [ebp - 0x220], 0xea
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x254], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x254]
mov dword [esp + 8], eax
mov dword [ebp - 0x258], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
lea eax, str.RemotePath
mov dword [esp + 4], eax
lea eax, [ebp - 0x230]
mov dword [esp + 8], eax
call fcn.10008890
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x100044ac
mov eax, dword [ebp - 0x230]
add eax, dword [ebp - 0x234]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x218]
sub ecx, eax
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0
jle 0x1000446a
xor eax, eax
mov ecx, dword [ebp - 0x230]
shr ecx, 1
mov edx, dword [ebp - 0x240]
sub eax, ecx
shl eax, 1
add edx, eax
mov dword [ebp - 0x240], edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
sub esp, 8
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x14], ecx
jmp 0x10004474
mov dword [ebp - 0x220], 0xea
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov ecx, dword [ebp - 0x23c]
mov dword [ecx + 0x18], 0
cmp dword [ebp - 0x218], 0
jge 0x100044da
jmp 0x1000450c
mov eax, dword [ebp - 0x238]
add eax, 1
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x23c]
add eax, 0x20
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x10004032
cmp dword [ebp - 0x238], 0
jne 0x10004523
mov dword [ebp - 0x220], 0x103
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp - 0x220], 0xea
je 0x10004558
cmp dword [ebp - 0x220], 0x103
je 0x10004558
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x220], 0xea
jne 0x10004578
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x234]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x220]
add esp, 0x274
pop esi
pop edi
pop ebx
pop ebp
ret