Function at 0x409950
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d70d
mov eax, dword fs:[0]
push eax
mov eax, 0x425c
call fcn.00465cc0
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x4254], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x426c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x427c]
mov ebx, ecx
mov ecx, dword [edi + 0x18]
mov esi, edx
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
mov dword [esp + 0x3c], eax
call fcn.0040b880
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
xor ebp, ebp
mov dword [edi + 0x1c], ebp
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push str.userprofile
lea ecx, [esp + 0x18]
mov dword [eax + 8], eax
call fcn.00404be0
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x4278], ebp
call fcn.0040a840
push esi
mov ecx, eax
call fcn.00404e20
mov dword [esp + 0x4274], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4b84ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b84ac
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x4274], 1
mov ecx, dword [ebx]
push ecx
lea edx, [esp + 0x18]
push str._sEnvironment
push edx
call fcn.004028a0
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x20019
push ebp
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409a8b
lea eax, [esi - 0x10]
mov dword [esp + 0x4274], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x409df9
lea ecx, [esp + 0x13]
push ecx
lea edx, [esp + 0x17]
push edx
lea ecx, [esp + 0x44]
call fcn.0040b5d0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x4288], 2
mov edx, dword [esp + 0x38]
push ecx
push ebp
push edx
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x3c], 0x3ffe
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x409c79
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x409b90
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
shr eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [esp + eax*2 + 0x26c], cx
call fcn.00466549
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.00404be0
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov byte [esp + 0x4278], 3
call fcn.0040a840
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
jmp 0x409b50
mov si, word [edx]
add edx, 2
cmp si, bp
jne 0x409b50
sub edx, ecx
sar edx, 1
push edx
lea edx, [esp + 0x268]
push edx
mov ecx, eax
call fcn.00404fd0
mov byte [esp + 0x4274], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x409c2b
cmp eax, 2
jne 0x409c37
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [esp + ecx*2 + 0x26c], dx
call fcn.00466549
add esp, 8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404be0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4278], 4
call fcn.0040a840
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
lea esp, [esp]
mov si, word [edx]
add edx, 2
cmp si, bp
jne 0x409bf0
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404fd0
mov byte [esp + 0x4274], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409c37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ebp
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x70]
push edx
inc ebx
push ebx
push eax
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x3c], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x409af0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54]
mov ebx, dword [edx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x54]
test esi, esi
je 0x409ca4
cmp esi, dword [esp + 0x3c]
je 0x409ca9
call fcn.00464ef7
cmp ebx, ebp
je 0x409dbc
mov eax, dword [0x4b84ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b84ac
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x4274], 5
test esi, esi
jne 0x409d6d
call fcn.00464ef7
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x409ce8
call fcn.00464ef7
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [ebx + 0x10]
mov ecx, edi
call fcn.00407440
add esp, 8
test esi, esi
jne 0x409d74
call fcn.00464ef7
cmp ebx, dword [esi + 0x18]
jne 0x409d12
call fcn.00464ef7
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.0040a840
mov ebx, eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebx]
lea ebp, [eax - 0x10]
sub esi, 0x10
cmp ebp, esi
je 0x409d84
cmp dword [esi + 0xc], 0
jl 0x409d78
mov edx, dword [ebp]
cmp edx, dword [esi]
jne 0x409d78
push ebp
call fcn.00405080
mov dword [esp + 0x24], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409d62
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x409d84
mov eax, dword [esi]
jmp 0x409cde
mov esi, dword [esi]
jmp 0x409d08
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00404fd0
mov byte [esp + 0x4274], 2
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x409da6
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
lea ecx, [esp + 0x30]
call fcn.0040da80
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x409c96
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4274], 6
call fcn.0040b900
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004617a0
mov dword [esp + 0x4278], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409e05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x426c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4254]
xor ecx, esp
call fcn.00464fe1
add esp, 0x4268
ret 4