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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x1006060
push 0x80000001
mov dword [ebp - 8], ebx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x42c], 1
call esi
test eax, eax
jne 0x1042e33
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push edi
push 0x100d0d8
push dword [ebp - 0x424]
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x420], edi
call esi
test eax, eax
je 0x1042ad2
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1042e36
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x42c]
push eax
push edi
push ebx
push dword [ebp - 0x420]
mov dword [ebp - 0x438], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x1042c13
cmp dword [ebp - 0x42c], 1
je 0x1042b23
cmp dword [ebp - 0x42c], 2
jne 0x1042c13
lea eax, [ebp - 0x41c]
push eax
push 0x103
lea eax, [ebp - 0x214]
push eax
call fcn.01028a67
test eax, eax
jl 0x1042c2b
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x214]
push eax
call fcn.01038841
test eax, eax
jne 0x1042c2b
lea eax, [ebp - 0x214]
push eax
call fcn.010388bf
test eax, eax
jne 0x1042c2b
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
call fcn.010392ed
test eax, eax
jne 0x1042ba6
push dword [ebp - 0x424]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x1042e33
push edi
lea eax, [ebp - 0x428]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x100d0c0
push dword [ebp - 0x424]
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1042c2b
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1042bdb
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x42c]
push edi
push ebx
push dword [ebp - 0x428]
call esi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1042c2b
cmp dword [ebp + 0x14], edi
jne 0x1042c2b
push dword [ebp - 0x428]
call fcn.01039910
test eax, eax
je 0x1042b8b
lea eax, [ebp - 0x430]
push eax
push 0x2001f
push edi
push 0x100d0ac
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1042c68
push dword [ebp - 0x420]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x424]
call esi
jmp 0x1042acb
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x100d0a0
push dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
call fcn.01033408
cmp eax, edi
mov dword [ebp - 0x428], eax
je 0x1042e1b
mov eax, dword [ebp - 0x434]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1042ca2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x434]
push 1
push edi
push ebx
push dword [ebp - 0x430]
call esi
mov eax, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1042ccc
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push edi
push dword [ebp - 0x428]
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x428]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, 0x1049000
mov eax, ebx
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1042d08
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push edi
push dword [ebp - 8]
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push edi
push 0x100d008
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1042e27
mov eax, dword [0x100d098]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100d09c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1042d71
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push ebx
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1042d9a
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1048df8
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1042dc7
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1048bf0
push dword [ebp - 0x420]
call esi
lea eax, [ebp - 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1042df4
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1049208
push dword [ebp - 0x420]
call esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01031a01
leave
ret 0x10