Function at 0x1029c44
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x107342c]
push esi
mov dword [ebp - 4], eax
call fcn.0103e8e4
call fcn.0102a20a
lea eax, [ebp - 0x46c]
push eax
call fcn.0101e522
xor esi, esi
test eax, eax
je 0x1029c82
lea eax, [ebp - 0x46c]
push eax
call fcn.0102d15e
jmp 0x1029c88
mov dword [ebp - 0x46c], esi
cmp dword [0x1074a18], esi
jne 0x1029c98
xor eax, eax
inc eax
jmp 0x102a1cd
push ebx
push edi
push dword [0x1073420]
push 0x10132f0
call fcn.0103ec9f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x464]
push eax
push 0x20019
push esi
push 0x1011308
mov ebx, 0x80000002
push ebx
call edi
test eax, eax
jne 0x1029d23
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x480]
push eax
push esi
push str.DontWatchSysProcs
push dword [ebp - 0x464]
mov dword [ebp - 0x490], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1029d17
cmp dword [ebp - 0x480], 4
jne 0x1029d17
mov eax, dword [ebp - 0x47c]
mov dword [0x1074410], eax
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x10132a8
push 0x1013278
push 0x101128c
call fcn.01031f9d
cmp eax, esi
mov dword [ebp - 0x468], eax
je 0x1029d5e
push esi
push esi
push eax
call fcn.01029b78
push dword [ebp - 0x468]
mov dword [ebp - 0x460], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1029d64
mov dword [ebp - 0x460], esi
cmp dword [ebp - 0x460], esi
je 0x102a111
push esi
push esi
push 2
push dword [ebp - 0x46c]
push 0x80
push esi
push esi
push 0x1010d74
push dword [ebp - 0x460]
call fcn.01029a08
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x1074488], esi
je 0x1029db3
cmp dword [0x1074484], 4
je 0x1029db3
call fcn.01028339
lea eax, [ebp - 0x464]
push eax
push 0x20019
push esi
push 0x1013200
push ebx
call edi
test eax, eax
je 0x1029fbf
lea eax, [ebp - 0x464]
push eax
push 0x20019
push esi
push 0x1013198
push ebx
call edi
test eax, eax
jne 0x1029fcb
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x478]
push eax
push esi
push 0x1013184
push dword [ebp - 0x464]
mov dword [ebp - 0x48c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1029fbf
cmp dword [ebp - 0x478], 4
jne 0x1029fbf
cmp dword [ebp - 0x468], esi
je 0x1029fbf
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, esi
jbe 0x1029f98
cmp eax, 0x104
jae 0x1029f98
lea eax, [ebp - 0x20c]
push 0x101316c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x488], eax
je 0x1029f98
push 0x10130d0
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push 1
push esi
lea eax, [ebp - 0x474]
mov dword [ebp - 0x4a0], eax
push esi
lea eax, [ebp - 0x4a8]
push eax
push 0x2001f
lea eax, [ebp - 0x460]
push eax
mov dword [ebp - 0x4a8], 0x18
mov dword [ebp - 0x4a4], esi
mov dword [ebp - 0x49c], 0x40
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x494], esi
call dword [sym.imp.ntdll.dll_NtCreateKey]
test eax, eax
jl 0x1029f8c
push 0x10130bc
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x484], 1
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push 0x101309c
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 4
lea eax, [ebp - 0x484]
push eax
push 4
push esi
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x488]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x478]
mov dword [ebp - 0x468], esi
push esi
push 0x1013184
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x464]
push eax
push 0x20019
push esi
push 0x1013200
push ebx
call edi
cmp eax, esi
jne 0x1029ff2
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x102a04f
lea eax, [ebp - 0x464]
push eax
push 0x20019
push esi
push 0x1013030
push ebx
call edi
cmp eax, esi
jne 0x102a0c4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push esi
push esi
push esi
push 0x1013004
push dword [ebp - 0x464]
call edi
mov ebx, eax
cmp ebx, esi
je 0x102a03f
push esi
push esi
push esi
push esi
push 0x1012fd8
push dword [ebp - 0x464]
call edi
mov ebx, eax
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x102a0c4
push esi
push 0x1012f90
push 0x1012f70
mov ebx, 0x101128c
push ebx
call fcn.01031f9d
mov edi, eax
cmp edi, esi
je 0x102a085
push esi
push 3
push edi
call fcn.01029b78
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x460], eax
call edi
jmp 0x102a091
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x460], esi
cmp dword [ebp - 0x460], esi
je 0x102a0cf
push esi
push esi
push esi
push dword [ebp - 0x46c]
push 0x80
push esi
push 3
push 0x1010d74
push dword [ebp - 0x460]
call fcn.01029a08
push dword [ebp - 0x460]
call edi
jmp 0x102a0cf
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 0x101128c
push esi
push 0x1012f30
push 0x1012f18
push ebx
call fcn.01031f9d
cmp eax, esi
mov dword [ebp - 0x468], eax
je 0x102a103
push esi
push 1
push eax
call fcn.01029b78
push dword [ebp - 0x468]
mov dword [ebp - 0x460], eax
call edi
jmp 0x102a109
mov dword [ebp - 0x460], esi
cmp dword [ebp - 0x460], esi
jne 0x102a118
xor eax, eax
jmp 0x102a1cb
push esi
push esi
push 2
push dword [ebp - 0x46c]
push 0x80
push esi
push 1
push 0x1010d74
push dword [ebp - 0x460]
call fcn.01029a08
push dword [ebp - 0x460]
call edi
push esi
push esi
push 0x1012944
push ebx
call fcn.01031f9d
cmp eax, esi
mov dword [ebp - 0x460], eax
je 0x102a1bc
push 0x101276c
push eax
jmp 0x102a1a6
cmp word [ebx], 0x20
jne 0x102a172
mov ax, word [ebx]
inc ebx
inc ebx
cmp ax, 0x20
je 0x102a167
push 0x1012930
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x102a1a0
push esi
push esi
push esi
push dword [ebp - 0x46c]
push 0x80
push esi
push 4
push 0x1010d74
push ebx
call fcn.01029a08
push 0x101276c
push esi
call dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jne 0x102a161
push dword [ebp - 0x460]
call edi
push dword [ebp - 0x46c]
call dword [sym.imp.ntdll.dll_RtlDestroyEnvironment]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0103e4d8
leave
ret