Function at 0x411960
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
mov eax, dword [0x451aa8]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, ecx
mov dword [esp + 0xc], vtable.ErrorClass.0
push ebx
mov ebx, dword [esp + 0x274]
push ebp
mov ebp, dword [esp + 0x27c]
mov ecx, dword [eax + 0xc]
push esi
mov dword [esp + 0xc], eax
or ecx, 0x20019
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], vtable.TextErrorClass.0
mov dword [esp + 0x20], 0x439c50
mov dword [esp + 0x24], 0
push edi
mov edi, dword [esp + 0x288]
cmp eax, 0x80000004
je 0x411a75
cmp eax, 0x80000050
je 0x411a75
lea edx, [esp + 0x14]
push edx
push ecx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411a79
push 0
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.004147b0
test al, al
jne 0x411a79
or dword [ebx + 0x14], 0x200
mov edi, dword [esp + 0x24]
test edi, edi
je 0x411a48
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a30
sub ecx, edx
sar ecx, 1
lea esi, [ecx*2 + 2]
jmp 0x411a4a
xor esi, esi
push esi
mov ecx, ebx
call fcn.00409000
test al, al
je 0x411d97
push esi
push edi
push dword [ebx + 0x28]
call fcn.00423750
mov dword [ebx + 0x20], 1
add esp, 0xc
mov bl, 1
jmp 0x411d99
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov eax, esi
movzx edx, word [esi]
test dx, dx
je 0x411aa2
jmp 0x411a90
add eax, 2
cmp dx, 0x5c
cmove ecx, eax
movzx edx, word [eax]
test dx, dx
jne 0x411a90
mov eax, dword [ebx]
test ecx, ecx
cmovne esi, ecx
mov ecx, ebx
push esi
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x411d97
or dword [ebx + 0x14], 1
xor ebp, ebp
cmp dword [ebx + 0x24], ebp
jne 0x411b03
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x14]
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x411aea
cmp eax, 0xea
jne 0x411b03
lea eax, [esp + 0x40]
mov dword [esp + 0x30], ebp
push eax
lea ecx, [esp + 0x34]
call fcn.0040bb60
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x24], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x64], eax
xor eax, eax
mov word [esp + 0x68], ax
mov eax, dword [edi]
shr eax, 2
not al
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0x108
test al, 1
je 0x411c51
lea esp, [esp]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x78]
push ebp
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x411b76
cmp eax, 0xea
jne 0x411c51
push 1
push dword [esp + 0x68]
mov ecx, ebx
inc ebp
call fcn.00406e30
mov esi, eax
test esi, esi
je 0x411d8a
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add edx, 0x2ac18000
push 0
push 0x989680
adc ecx, 0xfe624e21
push ecx
push edx
call fcn.004230f0
mov ecx, eax
add ecx, 0xffff573f
adc edx, 0xffffffff
test edx, edx
ja 0x411bce
jb 0x411bc9
cmp ecx, 0x7fff573d
ja 0x411bce
mov dword [esi + 0x24], eax
jmp 0x411bd5
mov dword [esi + 0x24], 0
mov eax, dword [edi]
shr eax, 3
not al
test al, 1
je 0x411b40
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push 0x44f518
push 0x20019
mov dword [esp + 0x3c], 0
push dword [eax + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], 0
push dword [eax]
call fcn.00410720
test al, al
je 0x411c31
push dword [edi]
mov ecx, dword [esp + 0x14]
push 0x44f518
push 0
push esi
push 0
push dword [esp + 0x48]
call fcn.00411eb0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x411b40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], 0
jmp 0x411b40
mov eax, dword [edi]
xor esi, esi
shr eax, 1
not al
test al, 1
je 0x411cee
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x411c70
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push eax
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x50], 0
push eax
push 0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x78]
push esi
push dword [esp + 0x30]
call ebp
test eax, eax
je 0x411ca9
cmp eax, 0xea
jne 0x411cee
mov eax, dword [esp + 0x64]
mov ecx, ebx
cmp word [eax], 0
je 0x411cc7
push 0
push eax
call fcn.00406e30
mov ecx, eax
test ecx, ecx
je 0x411d8a
mov eax, dword [esp + 0x4c]
inc esi
mov dword [ecx + 0x20], eax
lea eax, [esp + 0x1c]
push dword [edi]
push eax
push dword [esp + 0x44]
push ecx
push dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
push dword [esp + 0x28]
call fcn.00411eb0
jmp 0x411c70
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411d05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x28c]
test esi, esi
je 0x411d7d
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x411d7d
test byte [ebx + 0x14], 1
je 0x411d76
push dword [ebx + 0x18]
mov ebp, dword [esp + 0x30]
mov ecx, ebp
call fcn.00406ed0
test al, al
je 0x411d8a
mov ecx, dword [esp + 0x10]
lea eax, [esi - 1]
push eax
push edi
push ebp
push ebx
call fcn.00411960
test al, al
je 0x411d8a
push 0
mov ecx, ebp
call fcn.00412920
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x411d76
mov eax, dword [ecx + 0x24]
mov esi, dword [ecx + 4]
cmp eax, dword [edi + 4]
jb 0x411d63
cmp eax, dword [edi + 0x14]
jbe 0x411d69
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
test esi, esi
jne 0x411d53
mov esi, dword [esp + 0x28c]
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x411d17
lea ecx, [esp + 0x54]
mov bl, 1
call fcn.0040ba00
jmp 0x411d99
lea ecx, [esp + 0x54]
xor bl, bl
call fcn.0040ba00
jmp 0x411d99
xor bl, bl
cmp dword [esp + 0x28], 0
mov dword [esp + 0x1c], vtable.TextErrorClass.0
je 0x411dc4
push dword [esp + 0x24]
call fcn.00421e19
add esp, 4
mov dword [esp + 0x24], 0x439c50
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], vtable.ErrorClass.0
test eax, eax
je 0x411ddb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x278]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b84
add esp, 0x26c
ret 0x10