Function at 0x437960
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479c1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x825c
call fcn.00457240
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [esp + 0x8264], eax
xor eax, eax
mov byte [esp + 0x158], 0
mov ecx, 0x40
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x38]
push ecx
xor esi, esi
push esi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x180]
push eax
mov ebx, 0x3fff
push edi
mov dword [esp + 0x68], 0x104
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x437a6a
test eax, eax
jbe 0x437a6a
lea ebx, [ebx]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x4264]
push edx
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x274]
push edx
push esi
push edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x280], 0
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x437a61
inc dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x437a20
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x437b3e
xor ebx, ebx
test eax, eax
jbe 0x437b3e
mov eax, 0x3fff
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4264]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x274]
push eax
push ebx
push edi
mov byte [esp + 0x280], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x437b31
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x437b31
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x264]
push ecx
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x4264]
push ecx
mov ecx, esi
call dword [edx + 0x38]
dec dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jb 0x437a91
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x437bac
test eax, eax
jbe 0x437bac
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x6c]
push ecx
push ebx
push edi
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x437ba3
lea edx, [esp + 0x28]
push edx
push 0x20019
push eax
lea eax, [esp + 0x64]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x437ba3
inc dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x437b50
mov edx, dword [esi]
push 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x437cda
xor ebx, ebx
test eax, eax
jbe 0x437cda
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x6c]
push eax
push ebx
push edi
mov dword [esp + 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x437ccd
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push eax
lea edx, [esp + 0x64]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x437ccd
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x437ccd
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405920
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
mov eax, dword [esi]
push 4
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov dword [esp + 0x827c], 0
mov dword [esp + 0x3c], edx
call dword [eax + 0x38]
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x437c75
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.004020c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esp + 0x24]
push esi
push edx
call fcn.00437960
mov eax, dword [esp + 0x2c]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
dec edx
add eax, 0xfffffff0
mov dword [esp + 0xc], edx
mov dword [esp + 0x8274], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437ccd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jb 0x437bd0
mov ecx, dword [esp + 0x826c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8264]
xor ecx, dword [ebp + 4]
call fcn.00456aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret