Function at 0x41a400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fe8c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x629a40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x470]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x4a0], edi
mov dword [ebp - 0x490], 0
call fcn.00429690
cmp dword [eax + 0x14], 8
jb 0x41a463
mov eax, dword [eax]
lea ecx, [ebp - 0x490]
push ecx
push 0x109
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x45c]
mov esi, eax
cmp ecx, 8
jb 0x41a499
inc ecx
push ecx
push dword [ebp - 0x470]
lea ecx, [ebp - 0x470]
call fcn.004043b0
test esi, esi
je 0x41a4a4
xor eax, eax
jmp 0x41a99f
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x49c], ebx
call fcn.004322d0
test eax, eax
je 0x41a98e
nop dword [eax + eax]
cmp byte [edi + 8], 0
jne 0x41a4cd
mov eax, 0x62f640
jmp 0x41a50d
mov esi, dword [edi]
lea eax, [ebp - 0x4a8]
push eax
mov ecx, esi
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], ebx
call fcn.00433000
mov ecx, dword [esi]
cmp eax, ecx
je 0x41a4fd
cmp ebx, dword [eax + 0x14]
setb dl
test dl, dl
je 0x41a4ff
mov eax, ecx
cmp eax, ecx
jne 0x41a50a
mov eax, 0x62f640
jmp 0x41a50d
add eax, 0x18
mov cl, byte [eax + 8]
test cl, cl
je 0x41a98e
cmp cl, 7
jne 0x41a98e
mov esi, dword [eax]
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4b0], 0x61d84c
push eax
mov ecx, esi
mov dword [ebp - 0x4ac], 0
call fcn.00432b20
mov ebx, 0x62f640
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x41a55a
lea ebx, [eax + 0x18]
lea eax, [ebp - 0x4b8]
mov dword [ebp - 0x4b8], str.type
push eax
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4b4], 0
push eax
mov ecx, esi
call fcn.00432b20
mov edi, 0x62f640
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x41a591
lea edi, [eax + 0x18]
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], str.value
push eax
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4bc], 0
push eax
mov ecx, esi
call fcn.00432b20
mov eax, dword [eax]
cmp eax, dword [esi]
mov esi, 0x62f640
je 0x41a5c8
lea esi, [eax + 0x18]
mov al, byte [ebx + 8]
test al, al
je 0x41a98e
cmp al, 4
jne 0x41a98e
mov al, byte [edi + 8]
test al, al
je 0x41a5e6
cmp al, 4
je 0x41a5f5
mov al, byte [esi + 8]
test al, al
je 0x41a5f5
cmp al, 4
je 0x41a98e
lea eax, [ebp - 0x470]
mov ecx, ebx
push eax
call fcn.00431e90
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00429690
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x45c]
cmp eax, 0x10
jb 0x41a639
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.00407ab0
mov al, byte [edi + 8]
mov dword [ebp - 0x45c], 0xf
mov dword [ebp - 0x460], 0
mov byte [ebp - 0x470], 0
test al, al
je 0x41a66a
cmp al, 4
jne 0x41a66a
mov al, byte [esi + 8]
test al, al
je 0x41a66a
cmp al, 4
je 0x41a6a5
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0
cmovae eax, dword [ebp - 0x440]
push 0
push 0
push 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a983
mov ebx, dword [ebp - 0x494]
inc dword [ebx]
jmp 0x41a6ab
mov ebx, dword [ebp - 0x494]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x48c], 0
push eax
mov ecx, edi
call fcn.00431e90
mov edx, str.REG_SZ
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a6ea
mov dword [ebp - 0x48c], 1
jmp 0x41a888
mov edx, str.REG_EXPAND_SZ
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a70d
mov dword [ebp - 0x48c], 2
jmp 0x41a888
mov edx, str.REG_BINARY
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a730
mov dword [ebp - 0x48c], 3
jmp 0x41a888
mov edx, str.REG_DWORD
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a753
mov dword [ebp - 0x48c], 4
jmp 0x41a888
mov edx, str.REG_DWORD_LITTLE_ENDIAN
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a776
mov dword [ebp - 0x48c], 4
jmp 0x41a888
mov edx, str.REG_DWORD_BIG_ENDIAN
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a799
mov dword [ebp - 0x48c], 5
jmp 0x41a888
mov edx, str.REG_LINK
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a7bc
mov dword [ebp - 0x48c], 6
jmp 0x41a888
mov edx, str.REG_MULTI_SZ
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a7df
mov dword [ebp - 0x48c], 7
jmp 0x41a888
mov edx, str.REG_RESOURCE_LIST
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a802
mov dword [ebp - 0x48c], 8
jmp 0x41a888
mov edx, str.REG_FULL_RESOURCE_DESCRIPTOR
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a822
mov dword [ebp - 0x48c], 9
jmp 0x41a888
mov edx, str.REG_RESOURCE_REQUIREMENTS_LIST
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a842
mov dword [ebp - 0x48c], 0xa
jmp 0x41a888
mov edx, str.REG_QWORD
lea ecx, [ebp - 0x428]
call fcn.00416d70
test al, al
je 0x41a862
mov dword [ebp - 0x48c], 0xb
jmp 0x41a888
mov edx, str.REG_QWORD_LITTLE_ENDIAN
lea ecx, [ebp - 0x428]
call fcn.00416d70
mov ecx, dword [ebp - 0x48c]
test al, al
mov eax, 0xb
cmovne ecx, eax
mov dword [ebp - 0x48c], ecx
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00578b50
add esp, 0xc
mov dword [ebp - 0x498], 0x200
lea eax, [ebp - 0x488]
mov ecx, esi
push eax
call fcn.00431e90
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x458]
call fcn.00429690
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 3
call fcn.004071e0
mov eax, dword [ebp - 0x48c]
cmp eax, 2
je 0x41a9bd
cmp eax, 1
je 0x41a9bd
cmp eax, 7
je 0x41a9bd
cmp eax, 4
je 0x41a901
cmp eax, 3
jne 0x41a96d
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x498]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41aa27
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
movsx esi, word [ebp - 0x410]
cmovae eax, dword [ebp - 0x458]
push eax
call fcn.00580486
add esp, 4
cmp eax, esi
je 0x41aa25
lea ecx, [ebp - 0x458]
call fcn.00403020
lea ecx, [ebp - 0x428]
call fcn.004071e0
lea ecx, [ebp - 0x440]
call fcn.00403020
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x498]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push 0
push eax
push dword [ebp - 0x490]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41aa27
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00577d2d
add esp, 8
test eax, eax
je 0x41a96d
inc dword [ebx]
lea ecx, [ebp - 0x458]
call fcn.00403020
lea ecx, [ebp - 0x428]
call fcn.004071e0
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.00403020
mov ebx, dword [ebp - 0x49c]
mov edi, dword [ebp - 0x4a0]
inc ebx
mov ecx, edi
mov dword [ebp - 0x49c], ebx
call fcn.004322d0
cmp ebx, eax
jb 0x41a4c0
jmp 0x41a98e