Function at 0x10081c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101846d8
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x10189710]
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.1006a7b0
add esp, 4
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, edi
jne 0x10081c8a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10081feb
mov dword [ebp - 0x240], 0x288
lea ecx, [ebp - 0x240]
push ecx
push esi
call fcn.10081b40
add esp, 8
cmp eax, 0x6f
jne 0x10081cc9
push esi
call fcn.10128243
add esp, 4
mov edx, dword [ebp - 0x240]
push edx
call fcn.1006a7b0
add esp, 4
mov dword [ebp - 0x244], eax
mov esi, eax
lea eax, [ebp - 0x240]
push eax
push esi
call fcn.10081b40
add esp, 8
cmp eax, edi
jne 0x10081fbb
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x234], esi
cmp dword [ebp - 0x234], 0
je 0x10081fbb
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.1012e060
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.1012e060
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 0x10081d78
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 0x10081d90
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 0x10081db0
mov ax, word [0x10158184]
mov word [edi], ax
lea eax, [ebp - 0x230]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10081dc8
mov ecx, dword [str.Connection]
mov dword [eax], ecx
mov edx, dword [0x1016cec8]
mov dword [eax + 4], edx
mov cx, word [0x1016cecc]
mov word [eax + 8], cx
mov dl, byte [0x1016cece]
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.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10081fa2
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 0x10081f95
lea eax, [ebp - 0x128]
mov dword [ebp - 0x25c], eax
cmp byte [eax], 0
je 0x10081e61
add eax, edi
jmp 0x10081e52
lea edx, [ebp - 0x128]
sub eax, edx
cmp eax, 3
jbe 0x10081eb8
push 3
mov eax, edx
mov ecx, 0x1016cee0
call fcn.1005a0e0
add esp, 4
test eax, eax
jne 0x10081eb8
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 0x10081ef0
xor ebx, ebx
cmp dword [ebp - 0x250], 0x70b
sete bl
jmp 0x10081f2d
push 4
lea eax, [ebp - 0x128]
mov ecx, str.ROOT
call fcn.1005a0e0
add esp, 4
test eax, eax
je 0x10081ed5
mov ebx, edi
jmp 0x10081f2d
push 0
push str.BRIDGE
lea eax, [ebp - 0x128]
push eax
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
je 0x10081ef4
mov ebx, edi
jmp 0x10081f2d
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x248]
push edx
push 0
push 0
push str.MediaSubType
mov eax, dword [ebp - 0x238]
push eax
call esi
test eax, eax
jne 0x10081f2d
mov eax, dword [ebp - 0x248]
cmp eax, 2
je 0x10081f2b
cmp eax, edi
je 0x10081f2b
mov ebx, edi
jmp 0x10081f2d
xor ebx, ebx
mov esi, dword [ebp - 0x234]
lea ecx, [esi + 0x1b0]
mov eax, str.0.0.0.0
call fcn.1005a090
test eax, eax
je 0x10081f95
mov dword [ebp - 0x23c], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10081f69
cmp eax, edi
jne 0x10081f60
cmp ebx, edi
je 0x10081f69
cmp eax, 2
jne 0x10081f95
test ebx, ebx
jne 0x10081f95
mov dword [ebp - 0x23c], edi
lea ebx, [esi + 0x1ac]
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x10081f95
push 1
push 0x2c
lea esi, [ebx + 4]
mov edi, dword [ebp - 0x258]
call fcn.10089390
mov ebx, dword [ebx]
jmp 0x10081f75
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
mov eax, dword [edx]
mov dword [ebp - 0x234], eax
mov esi, dword [ebp - 0x244]
jmp 0x10081cf1
push esi
call fcn.10128243
add esp, 4
jmp 0x10081fde
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.10127db1
mov esp, ebp
pop ebp
ret 8