Function at 0x1040799
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x1046190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x2001f
xor esi, esi
push esi
push dword [0x10472a0]
xor edi, edi
inc edi
push 0x80000002
mov dword [ebp - 0x4b0], esi
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4c0], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1040cb3
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x4c0]
push eax
push esi
push 0x10056f8
push dword [ebp - 0x4bc]
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4ac], 0x230
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1040ce4
cmp dword [ebp - 0x4c0], edi
jne 0x1040ce4
push ebx
lea eax, [ebp - 0x4a8]
push eax
mov word [ebp - 0x27a], si
call fcn.010326f3
test eax, eax
mov edi, 0x103
mov ebx, 0x1048bf0
lea eax, [ebp - 0x4a8]
je 0x1040875
push 0x104
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
jmp 0x104087d
push eax
push edi
push ebx
call fcn.01028a67
push ebx
push 0x1006c68
push edi
push 0x1049000
call fcn.01028b64
add esp, 0x10
push ebx
push edi
push 0x1048df8
call fcn.01028a67
lea eax, [ebp - 0x4a8]
push eax
push 0x1006c68
push edi
push ebx
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x4a8]
push eax
push edi
push 0x1049208
call fcn.01028a67
cmp dword [ebp + 8], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jne 0x1040a49
lea eax, [ebp - 0x4b0]
push eax
push 0x2001f
push esi
push 0x10077d4
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x1040a49
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
jmp 0x1040a23
inc dword [ebp - 0x4b4]
lea eax, [ebp - 0x4b8]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x4b0]
call ebx
test eax, eax
jne 0x1040a0e
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x4c0]
push eax
push esi
push 0x1007890
push dword [ebp - 0x4b8]
mov dword [ebp - 0x4ac], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1040976
cmp dword [ebp - 0x4c0], 1
je 0x1040990
lea eax, [ebp - 0x68]
push eax
push 0x1007880
lea eax, [ebp - 0x1f8]
push 0x63
push eax
call fcn.01028b64
add esp, 0x10
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x4c0]
push eax
push esi
push 0x1009c14
push dword [ebp - 0x4b8]
mov dword [ebp - 0x4ac], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10409d7
cmp dword [ebp - 0x4c0], 1
jne 0x10409d7
lea eax, [ebp - 0x278]
push eax
jmp 0x10409dc
push 0x1004598
push 0x1048df8
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0103c333
push 0x10078b4
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], 0x32
call edi
test eax, eax
je 0x1040911
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x4b0]
push eax
push 0x2001f
push esi
push 0x1007868
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x1040b11
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x4b4], esi
push esi
jmp 0x1040aef
inc dword [ebp - 0x4b4]
lea eax, [ebp - 0x4b8]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b0]
call ebx
test eax, eax
jne 0x1040ad7
push 1
lea eax, [ebp - 0x130]
push eax
call fcn.010433d0
push 0x10078b4
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], 0x64
call edi
test eax, eax
je 0x1040a86
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], esi
jne 0x1040ca6
lea eax, [ebp - 0x4b0]
push eax
push 0x2001f
push esi
push 0x10077b0
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x1040be0
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x4b4], esi
push esi
jmp 0x1040bbe
inc dword [ebp - 0x4b4]
lea eax, [ebp - 0x4b8]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b0]
call ebx
test eax, eax
jne 0x1040ba6
lea eax, [ebp - 0x130]
push eax
call fcn.01039e45
push 0x10078b4
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], 0x64
call edi
test eax, eax
je 0x1040b57
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x4b0]
push eax
push 0x2001f
push esi
push 0x10077c4
push dword [ebp - 0x4bc]
call ebx
test eax, eax
jne 0x1040ca6
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x4b4], esi
push esi
jmp 0x1040c84
inc dword [ebp - 0x4b4]
lea eax, [ebp - 0x4b8]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b0]
call ebx
test eax, eax
jne 0x1040c6c
lea eax, [ebp - 0x130]
push eax
call fcn.01038b39
push 0x10078b4
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x4b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x4b4]
push dword [ebp - 0x4b0]
mov dword [ebp - 0x4ac], 0x64
call edi
test eax, eax
je 0x1040c1d
push dword [ebp - 0x4b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push 0x100ccd8
push 0x80000001
call fcn.01033666
push esi
push esi
push 0x2000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01031a01
leave
ret 4
push dword [ebp - 0x4bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1040cd4