Function at 0x100663c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016e8f0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
xor edi, edi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x234], edi
push 0x288
call fcn.1004e860
add esp, 4
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, edi
jne 0x1006643a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10066799
mov dword [ebp - 0x240], 0x288
lea ecx, [ebp - 0x240]
push ecx
push esi
call fcn.100662f0
add esp, 8
cmp eax, 0x6f
jne 0x10066479
push esi
call fcn.1010dc10
add esp, 4
mov edx, dword [ebp - 0x240]
push edx
call fcn.1004e860
add esp, 4
mov dword [ebp - 0x244], eax
mov esi, eax
lea eax, [ebp - 0x240]
push eax
push esi
call fcn.100662f0
add esp, 8
cmp eax, edi
jne 0x10066769
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x234], esi
cmp dword [ebp - 0x234], 0
je 0x10066769
mov ecx, 0x14
mov esi, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea edi, [ebp - 0x230]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xb3
push 0
lea ecx, [ebp - 0x1df]
push ecx
call fcn.10116880
add esp, 0xc
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x238], esi
mov byte [ebp - 0x128], 0
push 0x103
push esi
lea edx, [ebp - 0x127]
push edx
call fcn.10116880
add esp, 0xc
mov dword [ebp - 0x264], 0x104
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x254], 4
mov eax, dword [ebp - 0x234]
add eax, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10066528
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x230]
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10066540
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x230]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10066560
mov ax, word [0x10149ea8]
mov word [edi], ax
lea eax, [ebp - 0x230]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10066578
mov ecx, dword [str.Connection]
mov dword [eax], ecx
mov edx, dword [0x10156570]
mov dword [eax + 4], edx
mov cx, word [0x10156574]
mov word [eax + 8], cx
mov dl, byte [0x10156576]
mov byte [eax + 0xa], dl
lea eax, [ebp - 0x238]
push eax
mov edi, 1
push edi
push 0
lea ecx, [ebp - 0x230]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10066750
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x128]
push eax
push 0
push 0
push str.PnpInstanceID
mov ecx, dword [ebp - 0x238]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x10066743
lea eax, [ebp - 0x128]
mov dword [ebp - 0x25c], eax
cmp byte [eax], 0
je 0x10066611
add eax, edi
jmp 0x10066602
lea edx, [ebp - 0x128]
sub eax, edx
cmp eax, 3
jbe 0x10066668
push 3
mov eax, edx
mov ecx, 0x10156588
call fcn.100318e0
add esp, 4
test eax, eax
jne 0x10066668
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push str.DefaultNameResourceId
mov edx, dword [ebp - 0x238]
push edx
call esi
test eax, eax
jne 0x1006669d
xor ebx, ebx
cmp dword [ebp - 0x250], 0x70b
sete bl
jmp 0x100666da
push 4
lea eax, [ebp - 0x128]
mov ecx, str.ROOT
call fcn.100318e0
add esp, 4
test eax, eax
je 0x10066685
mov ebx, edi
jmp 0x100666da
push str.BRIDGE
lea ecx, [ebp - 0x128]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
je 0x100666a1
mov ebx, edi
jmp 0x100666da
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x248]
push ecx
push 0
push 0
push str.MediaSubType
mov edx, dword [ebp - 0x238]
push edx
call esi
test eax, eax
jne 0x100666da
mov eax, dword [ebp - 0x248]
cmp eax, 2
je 0x100666d8
cmp eax, edi
je 0x100666d8
mov ebx, edi
jmp 0x100666da
xor ebx, ebx
mov esi, dword [ebp - 0x234]
lea ecx, [esi + 0x1b0]
mov eax, str.0.0.0.0
call fcn.10031890
test eax, eax
je 0x10066743
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10066716
cmp eax, edi
jne 0x1006670d
cmp ebx, edi
je 0x10066716
cmp eax, 2
jne 0x10066743
test ebx, ebx
jne 0x10066743
mov dword [ebp - 0x23c], edi
add esi, 0x1ac
mov dword [ebp - 0x260], esi
test esi, esi
je 0x10066743
push edi
push 0x2c
lea eax, [esi + 4]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call sym.EncDec.dll_AddToCommaList_Malloc
mov esi, dword [esi]
jmp 0x10066722
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov dword [ebp - 0x234], ecx
mov esi, dword [ebp - 0x244]
jmp 0x100664a1
push esi
call fcn.1010dc10
add esp, 4
jmp 0x1006678c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 8