Function at 0x410dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
test ebp, ebp
je 0x410ddb
xor eax, eax
cmp word [ebp], ax
cmove ebp, eax
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x410df4
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
jmp 0x410e33
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x410e24
push ecx
push dword [edi + 4]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00408c20
test al, al
je 0x410f38
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov dword [edi + 0x20], eax
cmp eax, 1
je 0x410e52
cmp eax, 2
je 0x410e52
cmp eax, 7
je 0x410e52
xor cl, cl
mov byte [esp + 0x1c], cl
test esi, esi
je 0x410fa6
jmp 0x410e65
mov cl, 1
mov byte [esp + 0x1c], cl
test esi, esi
jne 0x410e65
mov esi, 2
mov dword [esp + 0x20], esi
lea edx, [edi + 0x2c]
test cl, cl
je 0x410e7a
mov eax, esi
add esi, 2
and eax, 1
add esi, eax
mov dword [esp + 0x20], esi
mov ecx, dword [edi + 0x28]
cmp ecx, edx
je 0x410e99
mov eax, dword [edi + 0x14]
shr eax, 0xa
not al
test al, 1
je 0x410e99
push ecx
call fcn.0041f5f1
add esp, 4
lea edx, [edi + 0x2c]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], edx
mov dword [edx], 0
cmp esi, 0x10
jbe 0x410ebe
push esi
call fcn.0041f629
add esp, 4
test eax, eax
je 0x410f19
mov dword [edi + 0x28], eax
lea eax, [esp + 0x20]
mov dword [edi + 0x1c], esi
push eax
push dword [edi + 0x28]
push 0
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x410f41
cmp eax, 0xea
jne 0x410f38
cmp ebx, 0x80000004
je 0x410ef6
cmp ebx, 0x80000050
je 0x410ef6
mov esi, dword [esp + 0x20]
jmp 0x410f08
mov esi, dword [esp + 0x20]
cmp esi, 0x100000
jae 0x410f38
add esi, esi
mov dword [esp + 0x20], esi
mov cl, byte [esp + 0x1c]
test esi, esi
je 0x410fa2
jmp 0x410e65
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x410f38
mov ecx, dword [ecx + 0x104]
test ecx, ecx
je 0x410f38
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x18
mov cl, byte [esp + 0x1c]
mov esi, dword [esp + 0x20]
test cl, cl
je 0x410fa2
mov eax, dword [edi + 0x28]
cmp word [eax + esi - 2], 0
je 0x410fa2
lea ebp, [esi + 2]
cmp ebp, 0x10
jbe 0x410f93
push ebp
mov ecx, edi
call fcn.004106c0
test al, al
je 0x410f38
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 0x28]
push 0
push 0
push dword [esp + 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x20]
mov cl, byte [esp + 0x1c]
mov eax, dword [edi + 0x28]
xor edx, edx
mov word [esi + eax], dx
mov esi, ebp
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], esi
test esi, esi
je 0x410fe7
test cl, cl
je 0x410fe7
cmp eax, 7
jne 0x410fcc
mov ecx, dword [edi + 0x28]
shr esi, 1
lea edx, [esi - 1]
call fcn.00410d60
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x18
cmp eax, 2
jne 0x410fe7
test byte [esp + 0x28], 1
jne 0x410fe7
mov ecx, edi
call fcn.004107b0
test al, al
je 0x410f38
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x18