Function at 0x411980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563129
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x5f7448]
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 + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push 0x5876d8
mov ecx, eax
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x45c], 0
call fcn.004059b0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov dword [ebp - 4], 1
push 9
push str.Software_
lea ecx, [ebp - 0x428]
call fcn.004059b0
push 6
push 0x58133c
lea ecx, [ebp - 0x428]
call fcn.00405750
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x460]
push ecx
push 0x20019
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00425090
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
push 0x1e
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push str.Failed_to_open_key_with_error
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
call fcn.004059b0
mov byte [ebp - 4], 3
push esi
lea eax, [ebp - 0x440]
push eax
push edi
call fcn.00406fc0
add esp, 0xc
mov dword [ebp - 0x45c], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x42c], 0x10
jb 0x411b02
push dword [ebp - 0x440]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x444], 0x10
jb 0x411b38
push dword [ebp - 0x458]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
jmp 0x411cb2
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x464], 0x3ff
jb 0x411b74
mov esi, dword [esi]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0
push esi
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x460]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x411c07
cmp dword [ebp - 0x464], esi
jbe 0x411bec
cmp byte [ebp - 0x410], 0
jne 0x411bc7
xor ecx, ecx
jmp 0x411bd9
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411bd0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x410]
push eax
call fcn.004059b0
push 0x5876d8
mov ecx, edi
call fcn.00405090
mov dword [ebp - 0x45c], 1
jmp 0x411cb2
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.00425090
add esp, 8
mov esi, eax
mov byte [ebp - 4], 4
push str.Failed_to_open_query_value_with_error
lea ecx, [ebp - 0x458]
call fcn.00405090
mov byte [ebp - 4], 5
push esi
push eax
push edi
call fcn.00406fc0
add esp, 0xc
mov dword [ebp - 0x45c], 1
mov byte [ebp - 4], 4
cmp dword [ebp - 0x444], 0x10
jb 0x411c61
push dword [ebp - 0x458]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 0x10
jb 0x411c97
push dword [ebp - 0x440]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x42c], 0xf
mov dword [ebp - 0x430], 0
mov byte [ebp - 0x440], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x414], 0x10
jb 0x411ccd
push dword [ebp - 0x428]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
mov eax, edi
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.004adbd4
mov esp, ebp
pop ebp
ret 0xc