Function at 0x10038d90
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10066aa4
mov eax, dword fs:[0]
push eax
sub esp, 0xa8c
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0xa88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007a200]
xor eax, esp
push eax
lea eax, [esp + 0xaa0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xacc]
mov dword [esp + 0x24], eax
xor ebp, ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0xaa8], ebp
push ecx
mov dword [esp + 0x18], ebp
call fcn.1002cae0
mov byte [esp + 0xaa8], 1
cmp dword [esp + 0xac8], 8
mov eax, dword [esp + 0xab4]
jae 0x10038e0d
lea eax, [esp + 0xab4]
lea edx, [esp + 0x14]
push edx
push 1
push ebp
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10039124
push 0x206
lea ecx, [esp + 0x9a]
push ebp
push ecx
xor edi, edi
mov word [esp + 0xa0], ax
call fcn.10049f60
add esp, 0xc
push 0x7fe
lea eax, [esp + 0x2a2]
xor edx, edx
push ebp
push eax
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], ebp
mov word [esp + 0x2a8], dx
call fcn.10049f60
mov eax, 7
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], cx
xor edx, edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], dx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2a0]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0xac0], 3
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebp
push edx
call ebx
test eax, eax
jne 0x10038fec
inc edi
cmp dword [esp + 0x20], 1
jne 0x10038f80
cmp dword [esp + 0x1c], ebp
jbe 0x10038f80
cmp dword [esp + 0x18], 3
jbe 0x10038f80
lea eax, [esp + 0x94]
push eax
push str.NetCfgInstanceId
call fcn.10049a13
add esp, 8
test eax, eax
jne 0x10038f35
lea eax, [esp + 0x29c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10038f24
lea esi, [esp + 0x5c]
jmp 0x10038f6f
lea ecx, [esp + 0x94]
push ecx
push str.DeviceInstanceID
call fcn.10049a13
add esp, 8
test eax, eax
jne 0x10038f80
lea eax, [esp + 0x29c]
lea edx, [eax + 2]
jmp 0x10038f60
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10038f60
lea esi, [esp + 0x78]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2a0]
call fcn.10002d50
push 0x208
lea edx, [esp + 0x98]
push ebp
push edx
call fcn.10049f60
add esp, 0xc
push 0x800
lea eax, [esp + 0x2a0]
push ebp
push eax
call fcn.10049f60
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2a0]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xa8]
push edx
push edi
push eax
mov dword [esp + 0x3c], 0x104
mov dword [esp + 0x38], 0x400
call ebx
test eax, eax
je 0x10038ee4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x78]
push edx
mov ecx, 3
xor edx, edx
lea esi, [esp + 0x44]
call fcn.10007e80
mov byte [esp + 0xaa8], 4
cmp dword [eax + 0x18], 8
jb 0x1003901f
mov eax, dword [eax + 4]
jmp 0x10039022
add eax, 4
push 0x10070848
push eax
call fcn.10049a13
add esp, 8
test eax, eax
mov edi, 8
sete bl
mov byte [esp + 0xaa8], 3
cmp dword [esp + 0x58], edi
jb 0x10039055
mov eax, dword [esp + 0x44]
push eax
call fcn.10047382
add esp, 4
test bl, bl
je 0x100390e8
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x64]
call fcn.100024e0
cmp dword [esp + 0x74], edi
jb 0x10039080
mov ecx, dword [esp + 0x60]
push ecx
call fcn.10047382
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], dx
cmp dword [esp + 0x90], edi
jb 0x100390aa
mov eax, dword [esp + 0x7c]
push eax
call fcn.10047382
add esp, 4
mov dword [esp + 0x90], esi
xor ecx, ecx
lea esi, [esp + 0x28]
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], cx
call fcn.1002f830
cmp dword [esp + 0xac8], edi
jb 0x100390e1
mov edx, dword [esp + 0xab4]
push edx
call fcn.10047382
add esp, 4
mov al, 1
jmp 0x1003917f
cmp dword [esp + 0x74], edi
jb 0x100390fb
mov eax, dword [esp + 0x60]
push eax
call fcn.10047382
add esp, 4
xor ecx, ecx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], cx
cmp dword [esp + 0x90], edi
jb 0x10039124
mov edx, dword [esp + 0x7c]
push edx
call fcn.10047382
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x1003914a
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
push ecx
call fcn.1002fa40
mov edx, dword [esp + 0x38]
add esp, 4
push edx
call fcn.10047382
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.10047382
add esp, 4
cmp dword [esp + 0xac8], 8
jb 0x1003917d
mov ecx, dword [esp + 0xab4]
push ecx
call fcn.10047382
add esp, 4
xor al, al
mov ecx, dword [esp + 0xaa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa88]
xor ecx, esp
call fcn.1004738d
add esp, 0xa98
ret 0x20