Function at 0x1015f370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d0701
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov ebx, ecx
mov dword [ebp - 0x134], ebx
lea ecx, [ebp - 0x11c]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x160], ebx
push ecx
lea edx, [ebp - 0x120]
mov dword [ebp - 0x120], 0
mov ecx, eax
mov dword [ebp - 0x11c], 0
call fcn.1015f250
add esp, 8
test eax, eax
jne 0x1015f3fb
mov dword [ebx], 0
mov eax, ebx
jmp 0x1015f785
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
lea eax, [ebp - 0x117]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1015f3ee
mov esi, dword [ebp - 0x130]
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x124]
push eax
push 0
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x11c]
push 0
push eax
push esi
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1015f474
mov dword [ebx], 0
jmp 0x1015f75e
mov eax, dword [ebp - 0x12c]
cmp eax, 4
je 0x1015f48f
cmp eax, 1
je 0x1015f48f
mov dword [ebx], 0
jmp 0x1015f75e
push 0x20
call fcn.10186698
mov edi, eax
add esp, 4
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x11c], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x12c]
sub eax, 1
je 0x1015f531
sub eax, 3
je 0x1015f4d8
mov dword [ebx], 0
jmp 0x1015f753
lea eax, [ebp - 0x124]
mov byte [edi], 0
push eax
lea eax, [edi + 0x1c]
mov dword [ebp - 0x124], 4
push eax
lea eax, [ebp - 0x12c]
push eax
push 0
push dword [ebp - 0x148]
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x11c]
test eax, eax
je 0x1015f520
mov dword [ebx], 0
jmp 0x1015f759
mov dword [ebp - 0x11c], 0
mov dword [ebx], edi
jmp 0x1015f759
xor eax, eax
mov byte [edi], 1
mov edx, dword [ebp - 0x124]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x128], eax
test edx, edx
je 0x1015f604
mov dword [ebp - 0x128], 0xffffffff
mov dword [ebp - 0x128], 0x7fffffff
cmp edx, 0x7fffffff
ja 0x1015f7a1
push edx
lea ecx, [ebp - 0x140]
lfence
call fcn.10005670
mov ecx, dword [ebp - 0x134]
push ecx
push 0
push eax
lea edi, [eax + ecx]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x138], edi
call fcn.10188460
mov eax, dword [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x128], edi
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x12c]
push eax
push 0
push dword [ebp - 0x148]
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1015f63a
mov dword [ebx], 0
jmp 0x1015f748
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x120]
sub ecx, edx
mov eax, dword [ebp - 0x124]
mov byte [ebp - 0x141], 0
cmp eax, ecx
jae 0x1015f65e
lea edi, [edx + eax]
jmp 0x1015f6b9
jbe 0x1015f6bf
mov edi, dword [ebp - 0x150]
sub edi, edx
cmp eax, edi
jbe 0x1015f690
push ecx
push eax
lea ecx, [ebp - 0x140]
lfence
call fcn.10008d40
mov edx, dword [ebp - 0x140]
mov edi, dword [ebp - 0x13c]
mov dword [ebp - 0x120], edx
jmp 0x1015f6bf
mov edi, dword [ebp - 0x154]
sub edi, ecx
add edi, eax
mov eax, edi
sub eax, dword [ebp - 0x158]
push eax
push 0
push dword [ebp - 0x128]
call fcn.10188460
mov edx, dword [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x13c], edi
cmp edx, edi
je 0x1015f6d3
cmp byte [edi - 1], 0
lea eax, [edi - 1]
cmove edi, eax
mov dword [ebp - 0x13c], edi
mov ecx, dword [ebp - 0x15c]
sub edi, edx
add ecx, 4
mov dword [ebp - 0x128], ecx
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x134], eax
cmp edi, eax
ja 0x1015f704
cmp dword [ecx + 0x14], 0x10
mov eax, ecx
jb 0x1015f6fb
mov eax, dword [ecx]
mov dword [ecx + 0x10], edi
mov byte [eax + edi], 0
jmp 0x1015f723
mov eax, edi
sub eax, dword [ebp - 0x134]
push 0
push eax
lfence
call fcn.10005340
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x120]
cmp dword [ecx + 0x14], 0x10
jb 0x1015f72b
mov ecx, dword [ecx]
push edi
push edx
push ecx
call fcn.10187ee0
mov eax, dword [ebp - 0x15c]
add esp, 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebx], eax
lea ecx, [ebp - 0x140]
call fcn.10004e00
lea ecx, [ebp - 0x11c]
call fcn.1013e370
test esi, esi
je 0x1015f769
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1015f785
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10186332
mov esp, ebp
pop ebp
ret
call fcn.10007590
int3