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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaac
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x10070f0]
mov dword [ebp - 0xa94], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xa8c], ecx
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa9c], ecx
mov ecx, dword [ebp + 0x24]
push esi
mov dword [ebp - 0xa98], ecx
lea ecx, [ebp - 0xa80]
push ecx
lea ecx, [ebp - 0xa6c]
push ecx
lea ecx, [ebp - 0xa7c]
push ecx
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x1001fa4
push eax
mov dword [ebp - 0xa90], eax
mov dword [ebp - 0xa88], esi
mov dword [ebp - 0xa7c], 1
mov dword [ebp - 0xa80], 0x618
call ebx
cmp eax, esi
jne 0x1004ada
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
lea eax, [ebp - 0xa6c]
push 0x1001f90
push eax
call edi
push dword [ebp - 0xa8c]
lea eax, [ebp - 0xa6c]
push eax
call edi
add esp, 0x10
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xa88]
push eax
push esi
push esi
push esi
push dword [ebp - 0xa90]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp - 0xa78], eax
jne 0x1004ad3
cmp dword [ebp - 0xa88], esi
mov dword [ebp - 0xa84], esi
jbe 0x1004ad3
lea eax, [ebp - 0xa74]
push eax
push 0xf003f
push esi
push 0x10
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xa84]
mov dword [ebp - 0xa70], esi
mov dword [ebp - 0xa74], esi
call dword [sym.imp.ntdll.dll__itow]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
push eax
push dword [ebp - 0xa94]
call edi
cmp eax, esi
mov dword [ebp - 0xa78], eax
jne 0x1004a99
lea eax, [ebp - 0xa70]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0xa90]
call edi
mov edi, eax
cmp edi, esi
jne 0x1004a5b
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0xa7c]
push eax
push esi
push 0x1001f80
push dword [ebp - 0xa70]
xor edi, edi
inc edi
mov dword [ebp - 0xa7c], edi
mov dword [ebp - 0xa80], 0x208
call ebx
cmp eax, esi
mov dword [ebp - 0xa78], eax
jne 0x1004a99
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0xa7c]
push eax
push esi
push 0x1001f68
push dword [ebp - 0xa70]
mov dword [ebp - 0xa7c], edi
mov dword [ebp - 0xa80], 0x208
call ebx
cmp eax, esi
mov dword [ebp - 0xa78], eax
jne 0x1004a99
lea eax, [ebp - 0xaac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push dword [ebp - 0xa98]
lea eax, [ebp - 0xa6c]
push dword [ebp - 0xa9c]
push dword [ebp - 0xa8c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0100458b
cmp eax, esi
mov dword [ebp - 0xa78], eax
je 0x10049ea
xor eax, eax
lea edi, [ebp - 0xaac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0xaac]
push eax
push 0xb
push esi
push 0x1001f54
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0xa74], esi
je 0x1004a24
cmp dword [ebp - 0xa74], 0xffffffff
je 0x1004a24
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x1004a41
cmp dword [ebp - 0xa70], 0xffffffff
je 0x1004a41
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xa84]
mov eax, dword [ebp - 0xa84]
cmp eax, dword [ebp - 0xa88]
jb 0x100489f
jmp 0x1004ad3
cmp dword [ebp - 0xa74], esi
je 0x1004a78
cmp dword [ebp - 0xa74], 0xffffffff
je 0x1004a78
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x1004a95
cmp dword [ebp - 0xa70], 0xffffffff
je 0x1004a95
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1004ad9
cmp dword [ebp - 0xa74], esi
je 0x1004ab6
cmp dword [ebp - 0xa74], 0xffffffff
je 0x1004ab6
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x1004ad3
cmp dword [ebp - 0xa70], 0xffffffff
je 0x1004ad3
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xa78]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01005225
leave
ret 0x20