Function at 0x1042d32
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.0106e3bd
lea eax, [ebp - 0x1c]
push eax
call fcn.01041912
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jl 0x1042d95
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 0x1042d95
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 0x1042f3b
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 0x1042df1
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 0x1042e22
cmp dword [ebp - 8], edi
jne 0x1042e22
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 0x1042e5a
cmp dword [ebp - 8], edi
jne 0x1042e4c
mov al, byte [ebp - 0xc]
and al, 1
jmp 0x1042e55
cmp dword [ebp - 8], 3
jne 0x1042e5a
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 0x1042e85
cmp dword [ebp - 8], edi
jne 0x1042e85
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 0x1042eb0
cmp dword [ebp - 8], edi
jne 0x1042eb0
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 0x1042edb
cmp dword [ebp - 8], edi
jne 0x1042edb
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 0x1042f06
cmp dword [ebp - 8], edi
jne 0x1042f06
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 0x1042f31
cmp dword [ebp - 8], edi
jne 0x1042f31
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.01056d0d
lea ecx, [ebp - 0x1c]
call fcn.0106de0a
pop esi
pop ebx
leave
ret