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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov edi, edx
mov esi, ecx
lea edx, [ebp - 0x20a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x20c], cx
call fcn.0041d650
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x20019
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x22c], 4
mov dword [ebp - 0x224], 8
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
call edi
test eax, eax
jne 0x408a5f
mov edx, dword [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x220]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x408a5f
xor esi, esi
mov dword [ebp - 0x228], esi
cmp dword [ebp - 0x220], ebx
jbe 0x408a65
mov edi, edi
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041d650
mov eax, dword [ebp - 0x218]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
mov dword [ebp - 0x224], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x408a16
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x20c]
push edx
push eax
call edi
test eax, eax
jne 0x408a5f
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x214]
push ecx
push 0x2001f
push ebx
push 0x42c10c
push edx
call edi
test eax, eax
jne 0x408a5f
mov esi, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x22c]
push eax
push esi
push ebx
push ebx
push str.COD_Type
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4089cd
mov eax, dword [ebp - 0x214]
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push ebx
push str.COD_Type
push eax
jmp 0x408a02
cmp eax, ebx
jne 0x408a5f
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x4089e4
cmp dword [esi], 3
je 0x4089ed
jmp 0x408a16
cmp eax, 3
jne 0x408a16
cmp dword [esi], eax
je 0x408a16
mov edx, dword [ebp - 0x214]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push ebx
push str.COD_Type
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x408a16
mov dword [ebp - 0x210], 1
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x408a2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], ebx
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x408a44
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], ebx
mov esi, dword [ebp - 0x228]
inc esi
mov dword [ebp - 0x228], esi
cmp esi, dword [ebp - 0x220]
jb 0x408900
jmp 0x408a65
mov dword [ebp - 0x210], ebx
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x408a7e
push eax
call esi
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x408a91
push eax
call esi
mov dword [ebp - 0x21c], ebx
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0x408a9e
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041558a
mov esp, ebp
pop ebp
ret