Function at 0x412400
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ceb00]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
mov edi, ecx
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x41243a
mov eax, dword [esi]
jmp 0x41243c
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x412498
cmp dword [edi + 0x18], 8
jb 0x41245f
mov esi, dword [esi]
push ebx
push esi
push str._::RegOpenKeyEx__s__failed.__0x_08x_
push 0x100
push 0x5c4
push str...CommonInstComn_Utility.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ebx, 8
cmp dword [ebp + 0x18], ebx
mov dword [esp + 0x18], 0
lea edi, [ebp + 4]
jb 0x4124b1
mov eax, dword [edi]
jmp 0x4124b3
mov eax, edi
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x41251b
cmp dword [ebp + 0x18], ebx
jb 0x4124da
mov edi, dword [edi]
push esi
push edi
push str.::RegQueryValueEx__s__failed.__0x_08x_
push 0x10
push 0x5cd
push str...CommonInstComn_Utility.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x1c]
cmp eax, 7
je 0x41256a
push eax
push str._Invalid_data:__0x_08x_
push 0x100
push 0x5d4
push str...CommonInstComn_Utility.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xd
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4125a0
push str.Required_data_size:_0
push 0x10
push 0x5dc
push str...CommonInstComn_Utility.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412718
push eax
call fcn.0043db39
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x20], ebx
jne 0x4125d5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx + 0xe]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x18]
push ecx
push 0
push ebx
call fcn.00472ca0
add esp, 0xc
cmp dword [ebp + 0x18], 8
jb 0x4125ef
mov eax, dword [edi]
jmp 0x4125f1
mov eax, edi
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x412667
cmp dword [ebp + 0x18], 8
jb 0x41261a
mov edi, dword [edi]
push esi
push edi
push str._::RegQueryValueEx__s__failed.__0x_08x_
push 0x100
push 0x5ed
push str...CommonInstComn_Utility.cpp
mov ecx, 0x4db628
call fcn.0042ffb0
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0043db3e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov edi, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
cmp word [ebx], ax
je 0x4126fb
mov edx, edi
lea eax, [esp + 0x34]
call fcn.0040ab90
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x28]
mov byte [esp + 0x5c], 1
call fcn.00412760
mov byte [esp + 0x58], 0
cmp dword [esp + 0x4c], 8
jb 0x4126b5
mov edx, dword [esp + 0x38]
push edx
call fcn.0043db3e
add esp, 4
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4126c0
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x41267e
mov esi, dword [esp + 0x64]
lea ebx, [esp + 0x24]
call fcn.00412870
mov eax, ebx
call fcn.00412810
add edi, 2
cmp word [edi], 0
jne 0x41267e
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0043db3e
add esp, 4
lea esi, [esp + 0x24]
call fcn.00413850
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret