Function at 0x10043f6
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 [0x10060f0]
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 0x1001ec8
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 0x100471f
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
lea eax, [ebp - 0xa6c]
push 0x1001eb4
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 0x1004718
cmp dword [ebp - 0xa88], esi
mov dword [ebp - 0xa84], esi
jbe 0x1004718
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 0x10046de
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 0x10046a0
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0xa7c]
push eax
push esi
push 0x1001ea4
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 0x10046de
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0xa7c]
push eax
push esi
push 0x1001e8c
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 0x10046de
lea eax, [ebp - 0xaac]
push eax
call dword [0x10010ac]
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.010041d0
cmp eax, esi
mov dword [ebp - 0xa78], eax
je 0x100462f
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 0x1001e78
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0xa74], esi
je 0x1004669
cmp dword [ebp - 0xa74], 0xffffffff
je 0x1004669
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x1004686
cmp dword [ebp - 0xa70], 0xffffffff
je 0x1004686
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 0x10044e4
jmp 0x1004718
cmp dword [ebp - 0xa74], esi
je 0x10046bd
cmp dword [ebp - 0xa74], 0xffffffff
je 0x10046bd
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x10046da
cmp dword [ebp - 0xa70], 0xffffffff
je 0x10046da
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100471e
cmp dword [ebp - 0xa74], esi
je 0x10046fb
cmp dword [ebp - 0xa74], 0xffffffff
je 0x10046fb
push dword [ebp - 0xa74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], esi
je 0x1004718
cmp dword [ebp - 0xa70], 0xffffffff
je 0x1004718
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.01004e6a
leave
ret 0x20