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

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