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

Disassembly:
sub esp, 0x640
mov eax, dword [0x4bd450]
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 0x438572
cmp ecx, ebp
je 0x438572
cmp edx, ebp
je 0x4384e4
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 0x4384e4
mov dword [esp + 0x20], ebp
jmp 0x438577
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 0x438577
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x438522
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 0x438547
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 0x438561
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov dword [esp + 0x10], eax
cmp edi, ebp
je 0x43856b
cmp dword [esp + 0x10], ebp
jne 0x438577
mov esi, 8
jmp 0x438577
mov esi, 0x57
xor ebx, ebx
cmp dword [esp + 0x24], ebp
jbe 0x438635
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea esp, [esp]
test esi, esi
jne 0x438633
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 0x438628
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 0x43861d
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 0x43861d
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x40]
push eax
push esi
push ecx
call fcn.00438450
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 0x438590
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x30], ebp
jbe 0x4386a2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test esi, esi
jne 0x4386a0
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 0x438699
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 0x438643
xor ebp, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x44]
cmp edi, eax
je 0x4386bb
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 0x4386d5
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esp + 0x40], ebp
je 0x4386ea
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4386ea
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.00471eba
add esp, 0x640
ret 0x10