Function at 0x408d50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d777
mov eax, dword fs:[0]
push eax
mov eax, 0x4254
call fcn.00465cc0
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x4250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x4268]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
mov dword [esp + 0x34], ebx
call fcn.0040b880
mov eax, dword [ebx + 0x18]
lea edx, [esp + 0x24]
push edx
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x18]
push 0x20019
xor ebp, ebp
push ebp
mov dword [ebx + 0x1c], ebp
mov dword [eax], eax
mov eax, dword [ebx + 0x18]
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408ddf
xor eax, eax
jmp 0x40910f
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x1b]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040b5d0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x70]
mov dword [esp + 0x4284], ebp
mov ecx, dword [esp + 0x38]
push eax
push ebp
push ecx
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x3c], 0x3ffe
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x408fa9
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x408ec7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [esp + edx*2 + 0x26c], ax
call fcn.00466549
add esp, 8
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x24]
call fcn.00404be0
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
mov byte [esp + 0x4274], 1
call fcn.0040a840
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
cmp si, bp
jne 0x408e97
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404fd0
mov byte [esp + 0x4270], 0
mov eax, dword [esp + 0x20]
jmp 0x408f4b
cmp eax, 2
jne 0x408f67
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 + 0x4274], 2
call fcn.0040a840
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
cmp si, bp
jne 0x408f20
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404fd0
mov byte [esp + 0x4270], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f67
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 edi
push edi
push eax
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x3c], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x408e40
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54]
mov edi, dword [edx]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov ebp, dword [esp + 0x54]
test esi, esi
je 0x408fd4
cmp esi, dword [esp + 0x3c]
je 0x408fd9
call fcn.00464ef7
cmp edi, ebp
je 0x4090e9
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 + 0x4270], 3
test esi, esi
jne 0x409097
call fcn.00464ef7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x409018
call fcn.00464ef7
push ebx
lea ecx, [edi + 0x10]
lea edx, [esp + 0x1c]
call fcn.00407040
add esp, 4
test esi, esi
jne 0x40909e
call fcn.00464ef7
cmp edi, dword [esi + 0x18]
jne 0x40903b
call fcn.00464ef7
lea eax, [edi + 0xc]
push eax
mov ecx, ebx
call fcn.0040a840
mov ebp, eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x4090b2
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4090a2
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x4090a2
push edi
call fcn.00405080
add esp, 4
mov dword [esp + 0x20], eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x40908b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [ebp], eax
jmp 0x4090ae
mov eax, dword [esi]
jmp 0x40900e
mov esi, dword [esi]
jmp 0x409031
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebp
call fcn.00404fd0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x4270], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090d3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [esp + 0x34]
call fcn.0040da80
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x408fc6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4270], 4
call fcn.0040b900
mov eax, dword [esp + 0x3c]
push eax
call fcn.004617a0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4250]
xor ecx, esp
call fcn.00464fe1
add esp, 0x4260
ret