Function at 0x410410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x43b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov word [eax + 4], 0x100
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x20119
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004035a0
test eax, eax
jne 0x4108cd
xor esi, esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push dword [esi + 0x430998]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104d0
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4108cd
cmp eax, 2
je 0x4108cd
add esi, 4
cmp esi, 4
jb 0x410495
xor edi, edi
mov dword [ebp - 0x1c], 0x43036c
mov dword [ebp - 0x18], str.MUIVerb
or ebx, 0xffffffff
nop dword [eax + eax]
call fcn.00403ba0
test eax, eax
je 0x4107e3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x410532
push 0x200
lea ecx, [ebp + 8]
call fcn.00403fb0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x400
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + edi*4 - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410571
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x410562
cmp eax, 2
jne 0x410571
test esi, esi
je 0x410571
cmp dword [ebp - 0x14], 0
jne 0x410571
xor eax, eax
mov word [esi], ax
push dword [esi - 8]
push esi
call fcn.0041ca0c
add esp, 8
test eax, eax
js 0x4108f3
cmp eax, dword [esi - 8]
jg 0x4108f3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x4105c6
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4105b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, 2
jb 0x4104f0
mov edi, dword [ebp - 0x10]
jmp 0x4105f0
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x34]
call fcn.00414880
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4105f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x34]
lea ebx, [edi + 0x34]
mov dword [ebp - 0x20], ebx
cmp dword [eax - 0xc], 0
jne 0x410628
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x41060a
xor ecx, ecx
jmp 0x41061f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410610
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00404160
push ecx
mov ecx, ebx
call fcn.00414250
xor eax, eax
mov dword [ebp - 0x18], eax
mov edi, dword [eax + 0x4309a0]
call fcn.00403ba0
test eax, eax
je 0x4107e3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
test edi, edi
je 0x410695
test edi, 0xffff0000
jne 0x41067f
movzx edi, di
mov ecx, edi
call fcn.00403c50
test eax, eax
je 0x4106a4
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00403de0
jmp 0x4106a1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410684
sub ecx, edx
sar ecx, 1
jmp 0x410697
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp + 8]
call fcn.00404160
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00406390
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
mov ebx, dword [esi - 0xc]
test ebx, ebx
js 0x4108f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4106e4
push ebx
lea ecx, [ebp + 8]
call fcn.00403fb0
mov esi, dword [ebp + 8]
lea eax, [ebx + 1]
push eax
push esi
call fcn.0041df94
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x4108f3
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x4108f3
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x41072b
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403fb0
mov edi, dword [ebp - 0x14]
lea eax, [ebx + 1]
push eax
push edi
call fcn.0041df94
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x4108f3
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
mov ecx, edi
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410776
test dx, dx
je 0x410772
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410776
add eax, 4
add ecx, 4
test dx, dx
jne 0x410750
xor eax, eax
jmp 0x41077b
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 4], 4
sete al
or ebx, 0xffffffff
add edi, 0xfffffff0
test al, al
mov eax, ebx
jne 0x4108a2
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4107a6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4107c1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, 0xc0
jb 0x410635
call fcn.00403ba0
mov ecx, eax
test ecx, ecx
jne 0x4107ed
push 0x80004005
call fcn.00404640
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
mov esi, dword [ebp - 0x20]
push eax
push dword [esi]
call fcn.00411020
test al, al
jne 0x410812
xor bl, bl
jmp 0x410881
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00414880
push ecx
mov ecx, esi
call fcn.00414250
mov ebx, dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0x432240
lea eax, [ebx + 0xc]
push eax
call fcn.00404dd0
add esp, 0xc
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push str.LegacyDisable
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410879
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x410875
cmp eax, 2
je 0x410875
mov eax, 0xd
jmp 0x410877
xor eax, eax
test eax, eax
sete al
mov byte [ebx + 4], al
mov bl, 1
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4108cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4108cf
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4108b4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4108cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4108dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00404640
int3