Function at 0x437c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587881
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x5f01b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0x1a0]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x198], ebx
call fcn.00456d70
mov eax, dword [eax]
lea ecx, [ebp - 0x198]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x1a0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x437f5c
call fcn.0046b8a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x437d3b
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 4], ebx
call fcn.0046b8a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x437d6a
push 0x80004005
call fcn.004020e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x19c], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1a4], ebx
mov eax, dword [ebp - 0x1a4]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1b0]
push ecx
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x90]
push edx
push eax
push ecx
mov dword [ebp - 0x1b0], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x437efd
lea eax, [ebp - 0x90]
xor edi, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437dd0
sub eax, edx
push eax
lea edx, [ebp - 0x90]
push edx
lea ecx, [ebp - 0x1a0]
call fcn.00401f50
mov esi, dword [ebp - 0x1a0]
cmp dword [esi - 0xc], ebx
jl 0x437ec0
push str.LoadDevice
push esi
call fcn.0055e33a
add esp, 8
cmp eax, ebx
je 0x437ec0
sub eax, esi
cmp eax, 0xffffffff
je 0x437ec0
push 0x5bda14
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1b8], 1
call fcn.00401ca0
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x194]
push ecx
lea edx, [ebp - 0x1b8]
push edx
push ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x198]
push esi
push eax
mov dword [ebp - 0x1a8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x437e96
lea eax, [ebp - 0x194]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437e75
sub eax, edx
push eax
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x19c]
call fcn.00401f50
mov edi, 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1b4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437ebc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
jne 0x437ed1
push ebx
push 0x5bda14
lea ecx, [ebp - 0x19c]
call fcn.00401f50
mov ecx, dword [ebp - 0x19c]
cmp dword [ecx - 0xc], ebx
je 0x437ef2
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x19c]
push edx
push eax
call fcn.00472200
inc dword [ebp - 0x1a4]
jmp 0x437d86
mov eax, dword [ebp - 0x198]
cmp eax, ebx
je 0x437f14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x198], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x19c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055db96
mov esp, ebp
pop ebp
ret 4