Function at 0x4124f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a999
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x43b00c]
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 dword [ebp - 0x228], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0xf013f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.004035a0
or edi, 0xffffffff
test eax, eax
je 0x412585
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x412861
push eax
jmp 0x41285b
xor esi, esi
lea eax, [ebp - 0x210]
push 0x200
push esi
push eax
mov dword [ebp - 0x214], esi
call fcn.00419210
mov ebx, dword [ebp - 0x224]
add esp, 0xc
mov dword [ebp - 0x218], 0x100
lea eax, [ebp - 0x278]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412856
lea ecx, [ebp - 0x270]
call fcn.0040ffe0
mov esi, dword [ebp - 0x228]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x25c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00414880
lea eax, [ebp - 0x210]
push eax
push ebx
lea ecx, [ebp - 0x270]
call fcn.00410120
test al, al
je 0x4126d7
mov edi, dword [esi + 0x10]
lea ebx, [esi + 0x10]
lea eax, [ebp - 0x268]
mov ecx, ebx
push eax
call fcn.00405d30
mov esi, eax
cmp esi, dword [ebx]
je 0x412653
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405730
test al, al
je 0x412655
mov esi, dword [ebx]
cmp esi, edi
jne 0x412701
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x258], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412672
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.00404160
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x270]
push eax
call fcn.00412db0
push dword [ebp - 0x218]
lea eax, [ebp - 0x268]
push eax
push ecx
lea eax, [ebp - 0x280]
mov ecx, ebx
push eax
call fcn.00415290
lea eax, [ebp - 0x270]
push eax
call fcn.00413f20
or edi, 0xffffffff
mov ebx, dword [ebp - 0x224]
inc dword [ebp - 0x214]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x218], 0x100
mov byte [ebp - 4], 1
call fcn.00411d20
mov esi, dword [ebp - 0x214]
jmp 0x4125b2
mov esi, dword [0x43cfe0]
mov ebx, dword [0x43cfe4]
cmp esi, ebx
je 0x4126ce
mov edi, dword [ebp - 0x268]
test edi, edi
je 0x41284c
mov ecx, dword [esi + 8]
mov eax, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41274a
test dx, dx
je 0x412746
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41274a
add ecx, 4
add eax, 4
test dx, dx
jne 0x412724
xor eax, eax
jmp 0x41274f
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x412763
mov eax, dword [ebp - 0x25c]
cmp dword [esi + 0x14], eax
je 0x41276f
add esi, 0x38
cmp esi, ebx
jne 0x412717
jmp 0x4126ce
call fcn.00403ba0
test eax, eax
je 0x41284c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
call fcn.00403ba0
test eax, eax
je 0x41284c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
mov dword [ebp - 0x238], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00414880
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4127d1
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404160
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x1c]
call fcn.00413ff0
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x230]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412826
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4126d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4126d1
push 0x80004005
call fcn.00404640
test ebx, ebx
je 0x412861
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x412880
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00416148
mov esp, ebp
pop ebp
ret 8