Function at 0x1002cde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fed8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100f38c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
call fcn.1002c970
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002d015
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 0x1002d015
add edi, 0x10
mov dword [ebp - 0x24], edi
mov edx, dword [0x100e8014]
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.10023d90
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 0x1002cfd4
mov esi, dword [ebp - 0x24]
mov edi, 1
mov dword [ebp - 0x28], 2
jmp 0x1002cec0
push edi
lea eax, [ebp - 0x10]
push str.Flags_d
push eax
mov dword [ebp - 0x14], 4
call fcn.10023d90
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.10023d90
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 + 0x100efdec]
cmp dword [esi], eax
je 0x1002cf2b
mov dword [esi], eax
push edi
lea ecx, [ebp - 0x10]
push str.BWx100_d
push ecx
mov dword [ebp - 0x14], 4
call fcn.10023d90
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 0x1002cf6a
fadd dword [0x1007a4b0]
fdiv qword [0x10074108]
push edi
lea ecx, [ebp - 0x10]
push str.Gainx100_d
push ecx
mov dword [ebp - 0x14], 4
fstp dword [esi + 4]
call fcn.10023d90
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 [0x10074108]
mov dword [ebp - 0x34], eax
fstp dword [esi - 0x98]
jne 0x1002cec0
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 [0x100e8010]
je 0x1002cffd
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1002cffd
push edi
call fcn.10055c11
add esp, 4
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], esi
cmp esi, dword [eax + 0x20c]
jl 0x1002ce57
mov edi, eax
cmp dword [ebp - 0x34], 0
je 0x1002d022
mov ecx, edi
call fcn.1002c970
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