Function at 0x4265c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4c4efd
mov eax, dword fs:[0]
push eax
mov eax, 0x4258
call fcn.004985e0
mov eax, dword [0x4f4de0]
xor eax, esp
mov dword [esp + 0x4254], eax
push ebx
push ebp
push edi
mov eax, dword [0x4f4de0]
xor eax, esp
push eax
lea eax, [esp + 0x4268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x427c]
mov ebp, dword [esp + 0x4278]
mov edi, ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.00427bd0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
push str.userprofile
lea ecx, [esp + 0x1c]
mov dword [eax + 8], eax
call fcn.00404050
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov dword [esp + 0x4274], ebx
call fcn.00426e70
push edi
mov ecx, eax
call fcn.00404570
mov dword [esp + 0x4270], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42668a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4fc0d8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc0d8
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x4270], 1
mov ecx, dword [ebp]
push ecx
lea edx, [esp + 0x1c]
push str._sEnvironment
push edx
call fcn.004048a0
mov edi, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x20019
push ebx
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x426701
lea eax, [edi - 0x10]
mov dword [esp + 0x4270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x426a1f
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x1b]
push edx
lea ecx, [esp + 0x44]
call fcn.00427c90
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x4284], 2
mov edx, dword [esp + 0x44]
push ecx
push ebx
push edx
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x40], 0x3ffe
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4268e9
nop
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x426800
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x5c]
shr eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [esp + eax*2 + 0x26c], cx
call fcn.00499012
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x20]
call fcn.00404050
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x4274], 3
call fcn.00426e70
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
jmp 0x4267c0
mov di, word [edx]
add edx, 2
cmp di, bx
jne 0x4267c0
sub edx, ecx
sar edx, 1
push edx
lea edx, [esp + 0x268]
push edx
mov ecx, eax
call fcn.004046b0
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42689b
cmp eax, 2
jne 0x4268a7
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [esp + ecx*2 + 0x26c], dx
call fcn.00499012
add esp, 8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404050
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4274], 4
call fcn.00426e70
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
lea esp, [esp]
mov di, word [edx]
add edx, 2
cmp di, bx
jne 0x426860
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.004046b0
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4268a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x70]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x40], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x426760
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54]
mov ebp, dword [edx]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x54]
test edi, edi
je 0x426914
cmp edi, dword [esp + 0x3c]
je 0x426919
call fcn.00497857
cmp ebp, ebx
je 0x4269e2
mov eax, dword [0x4fc0d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc0d8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4270], 5
test edi, edi
jne 0x4269d7
call fcn.00497857
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x426958
call fcn.00497857
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [ebp + 0x10]
mov ecx, esi
call fcn.004241e0
add esp, 8
test edi, edi
jne 0x4269de
call fcn.00497857
cmp ebp, dword [edi + 0x18]
jne 0x426982
call fcn.00497857
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.00426e70
lea edx, [esp + 0x1c]
push edx
mov ecx, eax
call fcn.00404570
mov byte [esp + 0x4270], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4269c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
call fcn.004282c0
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x426906
mov eax, dword [edi]
jmp 0x42694e
mov edi, dword [edi]
jmp 0x426978
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4270], 6
call fcn.00427c50
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00493cb0
mov dword [esp + 0x4274], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x426a2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4254]
xor ecx, esp
call fcn.00497941
add esp, 0x4264
ret 8