Function at 0x4386b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x10]
push eax
push dword [0x6020a4]
mov dword [ebp - 4], 0
push 0x80000001
mov dword [ebp - 0x10], 0
call edi
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4387dc
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.infoGUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x438740
cmp eax, 2
jne 0x4387d2
mov ecx, esi
call fcn.00429490
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x438aff
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x438772
push edx
mov ecx, esi
call fcn.004296d0
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.infoGUID
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4387cc
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4387b6
push dword [eax - 8]
push eax
call fcn.00555593
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x438aff
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x438aff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4387dc
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [0x6020a8]
push 0x80000001
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4388d2
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x5b06b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x43882f
cmp eax, 2
jne 0x4388c8
lea ecx, [esi + 4]
call fcn.00429490
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x438aff
mov ebx, dword [esi + 4]
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, edx
or ecx, eax
jge 0x438865
push edx
lea ecx, [esi + 4]
call fcn.004296d0
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x5b06b4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4388c2
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi + 4]
test eax, eax
je 0x4388aa
push dword [eax - 8]
push eax
call fcn.00555593
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x438aff
mov eax, dword [esi + 4]
cmp ecx, dword [eax - 8]
jg 0x438aff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 4]
mov word [eax + ecx*2], dx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4388d2
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [0x6020a8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4389ce
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.fldLength
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x438929
cmp eax, 2
jne 0x4389bc
lea ecx, [esi + 8]
call fcn.00429490
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x438aff
mov ebx, dword [esi + 8]
mov ecx, 1
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, edx
or ecx, eax
jge 0x43895f
push edx
lea ecx, [esi + 8]
call fcn.004296d0
mov ebx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push str.fldLength
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4389bc
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi + 8]
test eax, eax
je 0x4389a4
push dword [eax - 8]
push eax
call fcn.00555593
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x438aff
mov eax, dword [esi + 8]
cmp ecx, dword [eax - 8]
jg 0x438aff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 8]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4389d4
push eax
call ebx
jmp 0x4389d4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [0x6020d8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], 4
test eax, eax
je 0x438a34
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.wps_t
push eax
call edi
test eax, eax
jne 0x438a2a
cmp dword [ebp - 0x14], 4
jne 0x438a2a
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x438a34
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [0x6020c4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x438a8e
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.et_t
push eax
call edi
test eax, eax
jne 0x438a84
cmp dword [ebp - 0x18], 4
jne 0x438a84
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x438a8e
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [0x6020d0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x438ae8
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.wpp_t
push eax
call edi
test eax, eax
jne 0x438ade
cmp dword [ebp - 0x18], 4
jne 0x438ade
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x438ae8
push ecx
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004293d0
int3