Function at 0x415540
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x638f3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
mov esi, dword [0x6fca20]
mov dword [esp + 0x464], ebx
cmp esi, ebx
jne 0x415588
mov esi, 0x6fca24
mov eax, 0x6c900c
test eax, eax
je 0x4156c9
cmp esi, ebx
je 0x4156c9
mov ecx, str.IDMMsgHost.json
test ecx, ecx
je 0x4156c9
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x46c], 1
call fcn.004027e0
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x3c], bx
call fcn.00401f20
push str.IDMMsgHost.json
lea ecx, [esp + 0x44]
mov byte [esp + 0x468], 2
call fcn.00401ee0
lea ecx, [esp + 0x18]
mov byte [esp + 0x464], 3
call fcn.00401070
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x415697
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
lea ecx, [esp + 0x30]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x464], 2
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x464], 1
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x464], bl
call fcn.00401070
mov esi, dword [esp + 0x470]
mov edi, dword [esp + 0x46c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push esi
push edi
call ebp
test eax, eax
jne 0x4157cc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
push ebx
push 0x6fc41c
push edx
mov dword [esp + 0x3c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415742
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x415728
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x415742
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x14], ebx
je 0x4157cc
call fcn.0044bfc0
test eax, eax
je 0x4157cc
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ebx
push edx
push 0x20119
push ebx
push esi
push edi
call ebp
test eax, eax
jne 0x4157cc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
push ebx
push 0x6fc41c
push edx
mov dword [esp + 0x3c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4157c1
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4157a7
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x4157c1
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x464], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x45c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret