Function at 0x1047d50
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x28
push 0x10153b0
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [0x109a6f8], ebx
mov dword [0x109a6fc], ebx
mov edx, 0x101539c
xor ecx, ecx
inc ecx
call fcn.01081c57
lea eax, [ebp - 0x28]
push eax
push 3
push ebx
push 0x1015368
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1047f58
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push 0x101534c
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x1047f4f
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x1047dee
push 0x1015314
call fcn.01071aad
mov dword [ebp - 0x1c], 8
jmp 0x1047f4f
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push ebx
push 0x101534c
push dword [ebp - 0x28]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1047e25
push eax
push 0x10152ec
call fcn.01071ac0
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_free]
add esp, 0xc
mov dword [ebp - 0x24], ebx
jmp 0x1047f4f
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov ebx, edi
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047e32
sub eax, ecx
lea esi, [eax + ebx + 1]
mov dword [ebp - 0x30], esi
push 0x10152c0
call fcn.01071aad
mov eax, dword [ebp - 0x20]
add eax, ebx
cmp esi, eax
jae 0x1047e99
push dword [ebp + 8]
push esi
push edi
call fcn.01047aee
push esi
push edi
call fcn.0104770d
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047e6b
sub eax, ecx
lea edi, [eax + esi + 1]
mov dword [ebp - 0x2c], edi
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047e80
sub eax, ecx
lea esi, [eax + edi + 1]
mov dword [ebp - 0x30], esi
push 1
call fcn.01046c4d
jmp 0x1047e4c
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.010473fb
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x1047eb6
push 0x1015294
jmp 0x1047ddd
mov eax, 0x1015268
push eax
call fcn.01071aad
mov ecx, ebx
mov dword [ebp - 0x2c], ecx
mov eax, ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047ecb
sub eax, esi
lea esi, [eax + ebx + 1]
mov dword [ebp - 0x30], esi
mov edi, dword [ebp - 0x20]
lea eax, [ebx + edi]
cmp esi, eax
jae 0x1047f15
push esi
push ecx
call fcn.0104770d
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047ef1
sub eax, ecx
lea ecx, [eax + esi + 1]
mov dword [ebp - 0x2c], ecx
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1047f06
sub eax, esi
lea esi, [eax + ecx + 1]
jmp 0x1047ed8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1047f1a
sub eax, edx
mov dword [ebp - 0x38], eax
je 0x1047f3e
push edi
push ebx
push 7
push 0
push 0x101534c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1047f4c
push 0x101534c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
call fcn.01047f73
mov edx, 0x1015258
xor ecx, ecx
inc ecx
call fcn.01081c57
mov eax, dword [ebp - 0x1c]
call fcn.0106bf9e
ret 4