Function at 0x4128a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a9f9
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 ebx, ecx
mov dword [ebp - 0x214], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
push 0xf013f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.004035a0
or edi, 0xffffffff
test eax, eax
jne 0x412aa7
push 0x200
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
call fcn.00419210
add esp, 0xc
mov dword [ebp - 0x218], 0x100
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x412aa7
nop dword [eax]
lea ecx, [ebp - 0x278]
call fcn.0040ffe0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x26c]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x264], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00414880
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x278]
call fcn.00410410
test al, al
je 0x412a4f
mov edi, dword [ebx + 0x10]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebx + 0x10]
call fcn.00405d30
mov esi, eax
cmp esi, dword [ebx + 0x10]
je 0x4129f4
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00405730
test al, al
je 0x4129f7
mov esi, dword [ebx + 0x10]
cmp esi, edi
jne 0x412af5
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x278]
push eax
call fcn.00412db0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x244]
push eax
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebx + 0x10]
call fcn.00415290
lea eax, [ebp - 0x278]
push eax
call fcn.00413f20
or edi, 0xffffffff
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x280]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], 0x100
push ecx
lea ecx, [ebp - 0x210]
inc eax
push ecx
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00411d20
test esi, esi
je 0x412980
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x412ab8
push eax
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 0x412ad7
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
mov esi, dword [0x43cfe0]
mov ebx, dword [0x43cfe4]
cmp esi, ebx
je 0x412a46
mov edi, dword [ebp - 0x244]
nop
test edi, edi
je 0x412c4b
mov ecx, dword [esi + 0x34]
mov eax, edi
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412b46
test dx, dx
je 0x412b42
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412b46
add ecx, 4
add eax, 4
test dx, dx
jne 0x412b20
xor eax, eax
jmp 0x412b4b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x412b5f
mov eax, dword [ebp - 0x264]
cmp dword [esi + 0x14], eax
je 0x412b6b
add esi, 0x38
cmp esi, ebx
jne 0x412b10
jmp 0x412a46
call fcn.00403ba0
test eax, eax
je 0x412c4b
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 0x412c4b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00414880
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bd0
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 0x412c25
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 0x412a49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x412a49
push 0x80004005
call fcn.00404640
int3