Function at 0x101bfa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1030cf9
call fcn.01010a18
sub esp, 0x23c
mov eax, dword [0x1037024]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xa
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x10], eax
call fcn.01012ec6
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x210]
push eax
mov esi, 0x200
push esi
mov ecx, edi
call fcn.01010d74
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x101c29a
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
push ebx
push dword [0x1037848]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101c27b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x22c]
push eax
push ebx
push dword [0x103784c]
mov dword [ebp - 0x218], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], ebx
call edi
test eax, eax
jne 0x101c28e
mov eax, dword [ebp - 0x218]
add eax, 4
push eax
call fcn.010106bd
mov esi, eax
cmp esi, ebx
pop ecx
je 0x101c26f
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
push ebx
push dword [0x103784c]
push dword [ebp - 0x21c]
call edi
test eax, eax
jne 0x101c266
mov eax, dword [ebp - 0x218]
mov byte [eax + esi], bl
mov eax, dword [ebp - 0x218]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp - 0x218]
mov byte [eax + esi + 2], bl
mov eax, dword [ebp - 0x218]
mov byte [eax + esi + 3], bl
xor edi, edi
cmp dword [ebp - 0x218], 1
mov dword [ebp - 0x224], ebx
jbe 0x101c177
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x214]
call fcn.01010ff5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.01010d74
push eax
call dword [sym.imp.msvcrt.dll__strcmpi]
test eax, eax
pop ecx
pop ecx
je 0x101c135
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x244]
call fcn.0101bdef
lea ecx, [ebp - 0x214]
call fcn.01010d69
mov ecx, dword [ebp - 0x224]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x224], eax
jmp 0x101c13f
mov dword [ebp - 0x228], 1
lea eax, [edi + esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101c145
sub eax, edx
lea edi, [edi + eax + 1]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x214]
call fcn.01010f73
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x218]
jb 0x101c0d4
cmp dword [ebp - 0x228], ebx
jne 0x101c18f
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.010106e8
pop ecx
jmp 0x101c27b
mov edi, dword [ebp - 0x244]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.01010e7b
mov byte [ebp - 4], 2
jmp 0x101c1f1
mov eax, edi
mov edi, dword [edi]
add eax, 8
push eax
lea ecx, [ebp - 0x220]
call fcn.0101107e
mov ecx, eax
call fcn.01010d74
mov edx, dword [ebp - 0x214]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x101c1cc
lea ecx, [ebp - 0x220]
call fcn.01010d69
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x214], eax
cmp edi, ebx
jne 0x101c1ac
push dword [ebp - 0x224]
mov eax, dword [ebp - 0x214]
push esi
push 7
push ebx
mov byte [eax], bl
push dword [0x103784c]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x101c240
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.010106e8
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.01010f73
jmp 0x101c27b
push esi
call fcn.010106e8
pop ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.01010f73
xor ebx, ebx
inc ebx
jmp 0x101c27b
push esi
call fcn.010106e8
pop ecx
jmp 0x101c29a
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0100ebbe
mov eax, ebx
jmp 0x101c2ab
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0100ebbe
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01010773
leave
ret 4