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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 4]
sub esp, 0x428
push edi
push eax
push 0xf003f
xor edi, edi
push edi
push 0x1001190
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10019a3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x1001290
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10019aa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1001c3b
cmp dword [ebp - 0x24], edi
push esi
push ebx
mov ebx, 0x100138c
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 0x18], edi
jbe 0x1001ac0
lea eax, [ebp - 0x228]
push dword [ebp - 0x18]
push 0x10012cc
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001ab1
lea eax, [ebp - 0x428]
push 0x10012f0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001ab1
lea eax, [ebp - 0x228]
push dword [ebp - 0x18]
push 0x1001278
push ebx
push eax
call esi
lea eax, [ebp - 0xc]
add esp, 0x10
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push dword [ebp - 0x14]
call sub.TAPI32.dll_lineRemoveProvider
test eax, eax
jne 0x1001bff
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push edi
push 0x1001210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c08
lea eax, [ebp - 0x228]
push dword [ebp - 0x14]
push 0x100130c
push ebx
push eax
call esi
lea eax, [ebp - 0x228]
add esp, 0x10
push eax
push dword [ebp - 0x10]
call fcn.01001759
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jb 0x10019c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x10012ac
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001bff
cmp dword [ebp - 0x10], edi
jne 0x1001b11
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push edi
push 0x1001210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c08
push dword [ebp - 0x14]
push 0x100130c
lea eax, [ebp - 0x228]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1001c2e
cmp dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
je 0x1001ba3
push dword [ebp - 0x1c]
push 0x1001320
lea eax, [ebp - 0x228]
push ebx
push eax
call esi
add esp, 0x10
push dword [ebp + 8]
call fcn.01001404
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
lea eax, [ebp - 0x228]
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001bed
push edi
call fcn.01001684
inc dword [ebp - 0x1c]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x1001b57
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop esi
push esi
push eax
push esi
push edi
push 0x1001330
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1001bed
push esi
push 0x100302c
push esi
push edi
push 0x1001348
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1001bed
push esi
push 0x1003028
push esi
push edi
push 0x1001378
push dword [ebp - 8]
call ebx
test eax, eax
je 0x1001c0c
push dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 4]
call edi
jmp 0x1001c08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1001c39
lea eax, [ebp - 0x14]
push eax
push edi
push 0x10012f0
call sub.TAPI32.dll_lineAddProviderW
push dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 4]
call edi
xor edi, edi
inc edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop ebx
pop esi
pop edi
leave
ret 4