Function at 0x439030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d98d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [0x61309c]
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 0x439163
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 0x4390c7
cmp eax, 2
jne 0x439159
mov ecx, esi
call fcn.00429c20
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394a9
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x4390f9
push edx
mov ecx, esi
call fcn.00429eb0
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 0x439153
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 0x43913d
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394a9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4394a9
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_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x439163
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x6130a0]
push 0x80000001
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x439260
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x5bc268
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4391bd
cmp eax, 2
jne 0x439256
lea ecx, [esi + 4]
call fcn.00429c20
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394a9
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 0x4391f3
push edx
lea ecx, [esi + 4]
call fcn.00429eb0
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x5bc268
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439250
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 0x439238
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394a9
mov eax, dword [esi + 4]
cmp ecx, dword [eax - 8]
jg 0x4394a9
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 0x439260
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x6130a0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x439363
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 0x4392be
cmp eax, 2
jne 0x439351
lea ecx, [esi + 8]
call fcn.00429c20
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394a9
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 0x4392f4
push edx
lea ecx, [esi + 8]
call fcn.00429eb0
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 0x439351
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 0x439339
push dword [eax - 8]
push eax
call fcn.0056b163
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394a9
mov eax, dword [esi + 8]
cmp ecx, dword [eax - 8]
jg 0x4394a9
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 0x439369
push eax
call ebx
jmp 0x439369
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x6130d0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], 4
test eax, eax
je 0x4393d0
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 0x4393c6
cmp dword [ebp - 0x14], 4
jne 0x4393c6
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4393d0
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x6130bc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x439431
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 0x439427
cmp dword [ebp - 0x18], 4
jne 0x439427
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x439431
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x6130c8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x439492
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 0x439488
cmp dword [ebp - 0x18], 4
jne 0x439488
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x439492
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.00429b60
int3