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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x107fa78]
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 0x1011ab8
push SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x42c], 1
call esi
test eax, eax
jne 0x1072550
lea eax, [ebp - 0x420]
push eax
push 0x2001f
push edi
push 0x1011aa8
push dword [ebp - 0x424]
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x420], edi
call esi
test eax, eax
je 0x10721ef
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1072553
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 0x1072330
cmp dword [ebp - 0x42c], 1
je 0x1072240
cmp dword [ebp - 0x42c], 2
jne 0x1072330
lea eax, [ebp - 0x41c]
push eax
push 0x103
lea eax, [ebp - 0x214]
push eax
call fcn.01034c79
test eax, eax
jl 0x1072348
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x214]
push eax
call fcn.01068e7c
test eax, eax
jne 0x1072348
lea eax, [ebp - 0x214]
push eax
call fcn.01068efa
test eax, eax
jne 0x1072348
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
call fcn.01069928
test eax, eax
jne 0x10722c3
push dword [ebp - 0x424]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x420]
call esi
jmp 0x1072550
push edi
lea eax, [ebp - 0x428]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x1011a90
push dword [ebp - 0x424]
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1072348
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10722f8
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 0x1072348
cmp dword [ebp + 0x14], edi
jne 0x1072348
push dword [ebp - 0x428]
call fcn.01069f4b
test eax, eax
je 0x10722a8
lea eax, [ebp - 0x430]
push eax
push 0x2001f
push edi
push 0x1011a7c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1072385
push dword [ebp - 0x420]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x424]
call esi
jmp 0x10721e8
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x1011a70
push dword [ebp - 0x420]
mov dword [ebp - 0x424], edi
call fcn.01058426
cmp eax, edi
mov dword [ebp - 0x428], eax
je 0x1072538
mov eax, dword [ebp - 0x434]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10723bf
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 0x10723e9
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, 0x1082630
mov eax, ebx
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1072425
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 0x10119d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1072544
mov eax, dword [0x1011a68]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1011a6c]
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 0x107248e
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 0x10724b7
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1082428
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 0x10724e4
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1082220
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 0x1072511
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push edi
push 0x1082838
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.01047417
leave
ret 0x10