Function at 0x413a00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da55
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 9
push 0
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413a77
push eax
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x413a8b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x80]
call fcn.0043a4be
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
lea eax, [eax*2 + 2]
push eax
call fcn.0043a61f
lea ecx, [ebp - 0x6c]
call fcn.0043a4be
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x14]
call fcn.0043a61f
mov ebx, dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x68]
call fcn.00436896
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00436896
push 0xffffffffffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
push dword [ebp - 0x2c]
call fcn.00436bd6
push 0xffffffffffffffff
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00436bd6
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x18], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ecx*2 + 2]
push eax
push edi
push ebx
call fcn.0044cff0
push dword [ebp - 0x14]
push edi
push esi
call fcn.0044cff0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x413c36
cmp dword [ebp - 0x18], 1
jne 0x413bda
test edi, edi
js 0x413cf4
cmp edi, dword [ebp - 0x50]
jge 0x413cf4
mov eax, dword [ebp - 0x54]
lea eax, [eax + edi*4]
mov dword [ebp - 0x30], eax
test ebx, ebx
jne 0x413b7e
xor ecx, ecx
jmp 0x413b95
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413b83
mov eax, dword [ebp - 0x30]
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, eax
call fcn.00403e20
cmp edi, dword [ebp - 0x3c]
jge 0x413cf4
mov eax, dword [ebp - 0x40]
lea eax, [eax + edi*4]
mov dword [ebp - 0x30], eax
test esi, esi
jne 0x413bb8
xor eax, eax
jmp 0x413bcf
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413bc0
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x30]
push eax
push esi
call fcn.00403e20
inc edi
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ecx*2 + 2]
push eax
push 0
push ebx
call fcn.0044cff0
push dword [ebp - 0x14]
push 0
push esi
call fcn.0044cff0
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x413b56
push dword [ebp - 0x10]
cmp eax, 0x103
jne 0x413cb8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
call fcn.00436bd6
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.00436bd6
xor esi, esi
test edi, edi
jle 0x413cb4
test esi, esi
js 0x413cf4
cmp esi, dword [ebp - 0x50]
jge 0x413cf4
mov ecx, dword [ebp + 8]
cmp esi, dword [ecx + 8]
jge 0x413cf4
mov eax, dword [ebp - 0x54]
lea ebx, [esi*4]
mov ecx, dword [ecx + 4]
add eax, ebx
push eax
add ecx, ebx
call fcn.0040ef40
cmp esi, dword [ebp - 0x3c]
jge 0x413cf4
mov ecx, dword [ebp + 0xc]
cmp esi, dword [ecx + 8]
jge 0x413cf4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ecx + 4]
add eax, ebx
push eax
add ecx, ebx
call fcn.0040ef40
inc esi
cmp esi, edi
jl 0x413c62
mov bl, 1
jmp 0x413cc0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.004368ad
lea ecx, [ebp - 0x58]
call fcn.004368ad
lea ecx, [ebp - 0x6c]
call fcn.0043a4d5
lea ecx, [ebp - 0x80]
call fcn.0043a4d5
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00436600
int3