Function at 0x437600
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ceea7
mov eax, dword fs:[0]
push eax
mov eax, 0x4254
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x4250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x4268]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [esp + 0x3c], edi
call fcn.00439890
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x2c]
push edx
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
push 0x20019
xor ebx, ebx
push ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 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 0x43768f
xor eax, eax
jmp 0x437975
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esp + 0x44]
call fcn.004395e0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x70]
mov dword [esp + 0x4284], ebx
mov ecx, dword [esp + 0x40]
push eax
push ebx
push ecx
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x40], 0x3ffe
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x437858
lea esp, [esp]
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x437776
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [esp + edx*2 + 0x26c], ax
call fcn.004a2562
add esp, 8
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
call fcn.00404030
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0x4274], 1
call fcn.00438a60
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x437747
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404630
mov byte [esp + 0x4270], bl
mov eax, dword [esp + 0x1c]
jmp 0x4377fa
cmp eax, 2
jne 0x437816
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.004a2562
add esp, 8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404030
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4274], 2
call fcn.00438a60
lea edx, [esp + 0x264]
lea ecx, [edx + 2]
nop
mov si, word [edx]
add edx, 2
cmp si, bx
jne 0x4377d0
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x268]
push ecx
mov ecx, eax
call fcn.00404630
mov byte [esp + 0x4270], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437816
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 + 0x38]
push ebx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x70]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x50], 0x104
mov dword [esp + 0x40], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4376f0
mov ecx, dword [esp + 0x2c]
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 + 0x24], esi
mov dword [esp + 0x28], edi
mov ebp, dword [esp + 0x54]
cmp esi, ebx
je 0x437883
cmp esi, dword [esp + 0x3c]
je 0x437888
call fcn.004a0da7
cmp edi, ebp
je 0x43794f
mov eax, dword [0x50739c]
mov edx, dword [eax + 0xc]
mov ecx, 0x50739c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4270], 3
cmp esi, ebx
jne 0x437944
call fcn.004a0da7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4378c7
call fcn.004a0da7
mov ebp, dword [esp + 0x38]
push ebp
lea ecx, [edi + 0x10]
lea edx, [esp + 0x20]
call fcn.004359b0
add esp, 4
cmp esi, ebx
jne 0x43794b
call fcn.004a0da7
xor esi, esi
cmp edi, dword [esi + 0x18]
jne 0x4378f0
call fcn.004a0da7
lea eax, [edi + 0xc]
push eax
mov ecx, ebp
call fcn.00438a60
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004044f0
mov byte [esp + 0x4270], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43792e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
call fcn.00439e20
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x437875
mov eax, dword [esi]
jmp 0x4378bd
mov esi, dword [esi]
jmp 0x4378e6
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4270], 4
call fcn.00439910
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0049c830
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.004a0e91
add esp, 0x4260
ret