Function at 0x1042d4c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0106e3dd
lea eax, [ebp - 0x1c]
push eax
call fcn.0104192f
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jl 0x1042daf
lea eax, [ebp - 4]
push eax
push 3
push ebx
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1042daf
push 0x1004708
push dword [ebp - 4]
call esi
push 0x1004724
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1001b38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1042f55
push edi
push 4
pop edi
push 0x1004708
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
call esi
push 0x1004724
push dword [ebp - 4]
call esi
push 0x10046a0
push dword [ebp - 4]
call esi
cmp dword [0x10742a4], ebx
jne 0x1042e0b
mov dword [0x10742a8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10046c0
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042e3c
cmp dword [ebp - 8], edi
jne 0x1042e3c
mov eax, dword [ebp - 0xc]
mov dword [0x1074298], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10047dc
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042e74
cmp dword [ebp - 8], edi
jne 0x1042e66
mov al, byte [ebp - 0xc]
and al, 1
jmp 0x1042e6f
cmp dword [ebp - 8], 3
jne 0x1042e74
mov al, byte [ebp - 0xc]
mov byte [0x107429c], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10046e4
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042e9f
cmp dword [ebp - 8], edi
jne 0x1042e9f
mov eax, dword [ebp - 0xc]
mov dword [0x10742a0], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x100474c
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042eca
cmp dword [ebp - 8], edi
jne 0x1042eca
mov eax, dword [ebp - 0xc]
mov dword [0x10742ac], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x100476c
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042ef5
cmp dword [ebp - 8], edi
jne 0x1042ef5
mov eax, dword [ebp - 0xc]
mov dword [0x10742b0], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004794
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042f20
cmp dword [ebp - 8], edi
jne 0x1042f20
mov eax, dword [ebp - 0xc]
mov dword [0x10742b4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x10047b4
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x1042f4b
cmp dword [ebp - 8], edi
jne 0x1042f4b
mov eax, dword [ebp - 0xc]
mov dword [0x10742b8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [0x10742c0]
push 0x1004968
call fcn.01056d2e
lea ecx, [ebp - 0x1c]
call fcn.0106de2a
pop esi
pop ebx
leave
ret