Function at 0x439050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59941d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63434c]
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 [0x60e09c]
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 0x439183
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 0x4390e7
cmp eax, 2
jne 0x439179
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394c9
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x439119
push edx
mov ecx, esi
call fcn.00429e50
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 0x439173
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 0x43915d
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394c9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4394c9
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 0x439183
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e0a0]
push 0x80000001
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x439280
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x5b72d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4391dd
cmp eax, 2
jne 0x439276
lea ecx, [esi + 4]
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394c9
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 0x439213
push edx
lea ecx, [esi + 4]
call fcn.00429e50
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x5b72d4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439270
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 0x439258
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394c9
mov eax, dword [esi + 4]
cmp ecx, dword [eax - 8]
jg 0x4394c9
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 0x439280
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e0a0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x439383
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 0x4392de
cmp eax, 2
jne 0x439371
lea ecx, [esi + 8]
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4394c9
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 0x439314
push edx
lea ecx, [esi + 8]
call fcn.00429e50
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 0x439371
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 0x439359
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4394c9
mov eax, dword [esi + 8]
cmp ecx, dword [eax - 8]
jg 0x4394c9
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 0x439389
push eax
call ebx
jmp 0x439389
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 [0x60e0d0]
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 0x4393f0
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 0x4393e6
cmp dword [ebp - 0x14], 4
jne 0x4393e6
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4393f0
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e0bc]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x439451
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 0x439447
cmp dword [ebp - 0x18], 4
jne 0x439447
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x439451
push eax
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e0c8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x4394b2
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 0x4394a8
cmp dword [ebp - 0x18], 4
jne 0x4394a8
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4394b2
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.00429b00
int3