Function at 0x10027900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064838
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100e57c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
call fcn.10027490
mov eax, dword [ebp + 8]
test eax, eax
je 0x10027b35
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x14]
push ecx
lea esi, [edi + 0x20c]
push esi
push 0
push 0
push str.NumBands
push eax
mov dword [ebp - 0x14], 4
call ebx
cmp dword [esi], 0
mov dword [ebp - 0x20], 0
jle 0x10027b35
add edi, 0x10
mov dword [ebp - 0x24], edi
mov edx, dword [0x100da014]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x20]
inc esi
push esi
lea eax, [ebp - 0x10]
push str.Band_d
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esi
call fcn.10001a40
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add esp, 0xc
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10027af4
mov esi, dword [ebp - 0x24]
mov edi, 1
mov dword [ebp - 0x28], 2
jmp 0x100279e0
push edi
lea eax, [ebp - 0x10]
push str.Flags_d
push eax
mov dword [ebp - 0x14], 4
call fcn.10001a40
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
lea edx, [esi - 4]
push edx
push 0
push 0
push eax
push ecx
call ebx
push edi
lea edx, [ebp - 0x10]
push str.Freq_d
push edx
mov dword [ebp - 0x14], 4
call fcn.10001a40
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push ecx
push edx
call ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax*4 + 0x100e1dec]
cmp dword [esi], eax
je 0x10027a4b
mov dword [esi], eax
push edi
lea ecx, [ebp - 0x10]
push str.BWx100_d
push ecx
mov dword [ebp - 0x14], 4
call fcn.10001a40
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push ecx
push edx
call ebx
fild dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
test eax, eax
jns 0x10027a8a
fadd dword [0x1006e468]
fdiv qword [0x10069180]
push edi
lea ecx, [ebp - 0x10]
push str.Gainx100_d
push ecx
mov dword [ebp - 0x14], 4
fstp dword [esi + 4]
call fcn.10001a40
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push ecx
push edx
call ebx
fild dword [ebp - 0x1c]
inc edi
add esi, 0xa0
dec dword [ebp - 0x28]
fdiv qword [0x10069180]
mov dword [ebp - 0x34], eax
fstp dword [esi - 0x98]
jne 0x100279e0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x10]
lea ecx, [edi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x100da010]
je 0x10027b1d
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10027b1d
push edi
call fcn.1004b641
add esp, 4
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], esi
cmp esi, dword [eax + 0x20c]
jl 0x10027977
mov edi, eax
cmp dword [ebp - 0x34], 0
je 0x10027b42
mov ecx, edi
call fcn.10027490
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4