Function at 0x10078e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x308]
push edx
push 1
push 0
push str.SOFTWAREPersonalAudioMyEars
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x314], ecx
call ebx
test eax, eax
je 0x10078e9b
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x30c]
push edx
push 0
push str.enabled
mov edi, 4
push eax
mov dword [ebp - 0x310], edi
call esi
test eax, eax
je 0x10078ee3
mov ecx, dword [ebp - 0x308]
push ecx
jmp 0x1007926d
cmp dword [ebp - 0x30c], edi
je 0x10078ef7
mov edx, dword [ebp - 0x308]
push edx
jmp 0x1007926d
cmp dword [ebp - 0x318], 0
mov eax, dword [ebp - 0x308]
jne 0x10078f23
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x310]
push ecx
push 0
lea edx, [ebp - 0x30c]
push edx
push 0
push str.activeCalibrationId
push eax
call esi
test eax, eax
jne 0x10078ed7
cmp dword [ebp - 0x30c], 1
jne 0x10079266
cmp dword [ebp - 0x310], 0x100
ja 0x10079266
lea edx, [ebp - 0x310]
push edx
mov edx, dword [ebp - 0x308]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x30c]
push ecx
push 0
push str.activeCalibrationId
push edx
call esi
test eax, eax
jne 0x10079266
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x314]
test esi, esi
je 0x10078fb7
lea edx, [ebp - 0x104]
push edx
call fcn.10078db0
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10078fc0
sub eax, edx
add eax, 0x1f
cmp eax, 0x100
ja 0x10079273
mov ecx, 7
mov esi, str.SOFTWAREPersonalAudioMyEars_
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x104]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10078ff4
lea edi, [ebp - 0x204]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10079004
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x308]
push eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x204]
push ecx
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x10079273
mov ecx, dword [ebp - 0x308]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x310]
push edx
push eax
lea eax, [ebp - 0x30c]
push eax
push 0
push str.expiry
push ecx
call ebx
test eax, eax
jne 0x10078eeb
cmp dword [ebp - 0x30c], 1
jne 0x10078eeb
cmp dword [ebp - 0x310], 0x100
ja 0x10078eeb
lea eax, [ebp - 0x310]
push eax
mov eax, dword [ebp - 0x308]
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x30c]
push edx
push 0
push str.expiry
push eax
call ebx
test eax, eax
jne 0x10078ed7
lea edx, [ebp - 0x104]
push edx
call fcn.10078db0
mov esi, eax
mov eax, dword [ebp - 0x314]
add esp, 4
mov edi, edx
test eax, eax
je 0x100790d5
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ebp - 0x324]
push eax
call fcn.100c961b
add esp, 4
push 0
push 0x3e8
push edi
push esi
call fcn.100c9250
cmp dword [ebp - 0x320], edx
jl 0x10079127
jg 0x10079104
cmp dword [ebp - 0x324], eax
jbe 0x10079127
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov edi, 1
mov esi, edi
mov edi, edi
push 0xa
lea ecx, [ebp - 0x304]
push ecx
push esi
call fcn.100c96af
add esp, 0xc
lea edx, [ebp - 0x310]
push edx
mov edx, dword [ebp - 0x308]
push 0
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0x304]
push ecx
push edx
call ebx
test eax, eax
jne 0x100791cb
cmp dword [ebp - 0x30c], edi
jne 0x10079266
cmp dword [ebp - 0x310], 0x100
ja 0x10079266
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x308]
lea edx, [ebp - 0x30c]
push edx
push 0
lea eax, [ebp - 0x304]
push eax
push ecx
call ebx
test eax, eax
jne 0x10079266
lea edx, [ebp - 0x104]
push 0x100dfbf4
push edx
call fcn.100c8637
add esp, 8
test eax, eax
jne 0x100791f8
sub esi, edi
test esi, esi
jg 0x10079130
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
push eax
call fcn.100c86ea
mov edi, dword [ebp - 0x31c]
add esp, 4
test edi, edi
je 0x1007923a
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10079214
sub eax, edx
cmp dword [ebp + 0xc], eax
jbe 0x1007923a
lea eax, [ebp - 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10079230
mov eax, dword [ebp - 0x314]
test eax, eax
je 0x10079246
mov dword [eax], esi
mov edx, dword [ebp - 0x308]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x308]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 6
pop ebx
call fcn.100c5f50
mov esp, ebp
pop ebp
ret