Function at 0x414bc4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508045
mov eax, dword fs:[0]
push eax
mov eax, 0x1430
call fcn.004f0e50
mov eax, dword [0xaba010]
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 esi, ecx
mov dword [ebp - 0x1434], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1418], ebx
mov dword [ebp - 0x1414], ebx
call fcn.0040fcf5
mov dword [ebp - 0x1418], eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1420]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 0x1420], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x414e39
cmp dword [ebp - 0x1420], eax
jbe 0x414e39
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004f1a90
push 0x1000
lea eax, [ebp - 0x1410]
push 0
push eax
call fcn.004f1a90
add esp, 0x18
and dword [ebp - 0x141c], 0
lea eax, [ebp - 0x1438]
mov dword [ebp - 0x143c], 0x400
mov dword [ebp - 0x1438], 0xfff
push eax
lea eax, [ebp - 0x1410]
push eax
lea eax, [ebp - 0x141c]
push eax
push 0
lea eax, [ebp - 0x143c]
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x414e2c
cmp dword [ebp - 0x141c], 2
je 0x414ce0
cmp dword [ebp - 0x141c], 1
jne 0x414e2c
mov al, byte [ebp - 0x1410]
test al, al
jne 0x414cf6
cmp byte [ebp - 0x410], al
je 0x414e2c
mov byte [ebp - 0x411], 0
lea esi, [ebp - 0x1410]
movzx eax, al
jmp 0x414d0c
inc esi
movzx eax, byte [esi]
push eax
call fcn.004f83f0
pop ecx
test eax, eax
jne 0x414d08
mov ecx, esi
call fcn.0042299a
push eax
lea ecx, [ebp - 0x1430]
call fcn.004094e6
mov byte [ebp - 4], 1
cmp byte [ebp - 0x410], 0
jne 0x414d49
push str._Default_
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x142c]
call fcn.004094e6
lea eax, [ebp - 0x142c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1418]
call fcn.0040fa4f
mov edx, dword [ebp - 0x1430]
mov ecx, eax
mov dword [ebp - 0x1428], ecx
mov esi, dword [ecx]
lea eax, [edx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x1424], eax
cmp eax, esi
je 0x414de2
cmp dword [esi + 0xc], 0
jl 0x414dd9
mov eax, dword [edx - 0x10]
cmp eax, dword [esi]
jne 0x414dd9
mov ecx, dword [ebp - 0x1424]
call fcn.004098e7
mov dword [ebp - 0x1424], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414dcc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1424]
mov ecx, dword [ebp - 0x1428]
add eax, 0x10
mov dword [ecx], eax
jmp 0x414de2
push dword [edx - 0xc]
push edx
call fcn.0040942f
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x142c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414e04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414e26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1434]
inc ebx
cmp ebx, dword [ebp - 0x1420]
jb 0x414c50
lea eax, [ebp - 0x1418]
mov ecx, edi
push eax
call fcn.0041563a
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1418]
push eax
push dword [eax]
lea eax, [ebp - 0x1428]
push eax
call fcn.0040fb88
push ecx
mov ecx, dword [ebp - 0x1418]
xor edx, edx
push 0x18
inc edx
call fcn.0040b8be
pop ecx
mov eax, edi
pop ecx
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.004efcea
mov esp, ebp
pop ebp
ret 4