Function at 0x1007a520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013f6dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007a7c6
push 0x208
push eax
lea eax, [ebp - 0x250]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0x208
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.BuildLabEx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007a7bd
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007a5c4
sub ecx, edx
lea eax, [ebp - 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100512a0
mov dword [ebp - 4], 0
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae edi, ebx
test eax, eax
je 0x1007a62b
mov ecx, eax
xor esi, esi
mov edx, edi
test ecx, ecx
je 0x1007a621
cmp word [edi], 0x2e
je 0x1007a61f
nop
cmp ecx, 1
je 0x1007a621
add edx, 2
dec ecx
cmp word [edx], 0x2e
jne 0x1007a610
mov esi, edx
test esi, esi
je 0x1007a62b
sub esi, edi
sar esi, 1
jmp 0x1007a62e
or esi, 0xffffffff
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
lea ecx, [esi + 1]
cmovae edx, ebx
cmp ecx, eax
jae 0x1007a66c
sub eax, ecx
mov edi, 0
lea ecx, [edx + ecx*2]
je 0x1007a662
cmp word [ecx], 0x2e
je 0x1007a660
cmp eax, 1
je 0x1007a662
add ecx, 2
dec eax
cmp word [ecx], 0x2e
jne 0x1007a651
mov edi, ecx
test edi, edi
je 0x1007a66c
sub edi, edx
sar edi, 1
jmp 0x1007a66f
or edi, 0xffffffff
cmp edi, esi
jbe 0x1007a784
cmp esi, 0xffffffff
je 0x1007a784
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
lea edx, [esi + 1]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp eax, edx
jb 0x1007a7d9
sub edi, esi
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
lea eax, [eax + edx*2]
push eax
call fcn.100512a0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0xa
cmovae eax, dword [ebp - 0x48]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov esi, eax
cmp ecx, 8
jb 0x1007a721
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007a717
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007a761
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp ecx, 8
jb 0x1007a771
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007a767
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a767
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x1007a7bd
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x1007a7b3
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007a7b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.1013b151
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100505c0
int3