Function at 0x431cf0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x640
mov eax, dword [0x4832f0]
xor eax, esp
mov dword [esp + 0x63c], eax
mov eax, dword [esp + 0x64c]
mov ecx, dword [esp + 0x644]
mov edx, dword [esp + 0x648]
push ebx
push ebp
xor ebp, ebp
push esi
lea esi, [esp + 0x248]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], esi
lea edi, [esp + 0x44]
cmp eax, ebp
je 0x431e12
cmp ecx, ebp
je 0x431e12
cmp edx, ebp
je 0x431d84
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebp
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebp
je 0x431d84
mov dword [esp + 0x20], ebp
jmp 0x431e17
push ebp
push ebp
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push ebp
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebp
jne 0x431e17
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x431dc2
mov ecx, eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, ecx
inc ecx
mov dword [esp + 0x18], ecx
cmp edx, 0x103
jbe 0x431de7
lea eax, [ecx + ecx]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov edi, eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x400
jbe 0x431e01
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov dword [esp + 0x10], eax
cmp edi, ebp
je 0x431e0b
cmp dword [esp + 0x10], ebp
jne 0x431e17
mov esi, 8
jmp 0x431e17
mov esi, 0x57
xor ebx, ebx
cmp dword [esp + 0x24], ebp
jbe 0x431ed5
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
test esi, esi
jne 0x431ed3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x44]
push edx
push edi
push ebx
push eax
mov dword [esp + 0x54], ecx
call ebp
mov esi, eax
test esi, esi
jne 0x431ec8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x431ebd
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push 0x2001f
push 1
push esi
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x431ebd
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x40]
push eax
push esi
push ecx
call fcn.00431cf0
mov edx, dword [esp + 0x3c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [esp + 0x24]
jb 0x431e30
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x30], ebp
jbe 0x431f42
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test esi, esi
jne 0x431f40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x3c]
push edx
push esi
lea eax, [esp + 0x38]
push eax
push edi
push ebx
push ecx
call ebp
mov esi, eax
test esi, esi
jne 0x431f39
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
inc ebx
cmp ebx, dword [esp + 0x30]
jb 0x431ee3
xor ebp, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x44]
cmp edi, eax
je 0x431f5b
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24c]
cmp eax, ecx
je 0x431f75
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esp + 0x40], ebp
je 0x431f8a
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x431f8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x64c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b6ee
add esp, 0x640
ret 0x10