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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x430], esi
je 0x1072ad5
cmp eax, esi
jne 0x1072787
cmp ecx, esi
je 0x1072ad5
push ebx
push edi
push 0x100ee14
mov ebx, 0x103
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x1072ad4
push edi
push dword [0x107fde4]
lea eax, [ebp - 0x414]
push 0x1011b4c
push ebx
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x1072865
lea eax, [ebp - 0x420]
push eax
xor edi, edi
inc edi
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push dword [0x1082a4c]
mov dword [ebp - 0x420], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1072865
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push 0x100bdb8
push dword [ebp - 0x420]
mov dword [ebp - 0x41c], 0x208
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1072859
cmp dword [ebp - 0x428], edi
jne 0x1072859
lea eax, [ebp - 0x414]
push 0x10040f0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1072859
mov dword [ebp - 0x430], edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1072ad4
mov eax, dword [ebp - 0x418]
cmp eax, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x420], 1
je 0x1072a8e
cmp word [eax], 0x7b
jne 0x1072a8e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov ebx, 0x100f1b4
push ebx
push dword [ebp - 0x424]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1072972
cmp dword [ebp - 0x420], 1
jne 0x1072972
cmp dword [ebp - 0x430], esi
jne 0x1072919
lea eax, [ebp - 0x20c]
push eax
call fcn.01071e48
test eax, eax
je 0x10729a0
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01071d91
test eax, eax
jne 0x107295d
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1072933
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x1011b04
push dword [ebp - 0x424]
call edi
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1072966
jmp 0x1072985
mov eax, dword [ebp - 0x418]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x107297b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x418]
push 1
push esi
push ebx
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push 0x1011b2c
push 0x103
push eax
mov dword [ebp - 0x428], esi
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0x428]
push eax
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, SysReAllocString
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1072a8e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push dword [ebp - 0x428]
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1072a82
cmp dword [ebp - 0x420], 1
jne 0x1072a82
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x418], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1072a82
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push esi
push 0x100f6c8
push dword [ebp - 0x418]
mov dword [ebp - 0x41c], 1
call edi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x42c], esi
je 0x1072ac8
mov eax, dword [ebp - 0x42c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1072a9f
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x42c]
push 1
push esi
push 0x100ee00
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 0xc