Function at 0x41dc00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
push ebx
push 0x495d90
push reloc.OLEAUT32.dll_SysReAllocStringLen
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x41dea8
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edx
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x41dea8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push edi
push ecx
push ebx
push 0x495d90
push reloc.OLEAUT32.dll_SysReAllocStringLen
call esi
test eax, eax
je 0x41dc93
push edi
push ebx
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov al, byte [edi]
mov ebp, edi
cmp al, bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
je 0x41de99
cmp dword [esp + 0x10], 5
jge 0x41de99
push ebp
lea edx, [esp + 0x30]
push 0x495d8c
push edx
call fcn.0043c57a
mov esi, dword [esp + 0x2c]
add esp, 0xc
and esi, 1
jne 0x41dcdf
push ebp
call fcn.0043d1e9
add esp, 4
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x41de70
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x81d8], 0xffffffff
jne 0x41dd3f
mov esi, 0x495d7c
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41dd1f
cmp cl, bl
je 0x41dd1b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41dd1f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41dcfb
xor eax, eax
jmp 0x41dd24
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41dd3f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81d8], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
push 0x495d68
push ebp
call fcn.0043d200
add esp, 8
test eax, eax
je 0x41dd68
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x81dc], edx
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x81e0], 0xffffffff
jne 0x41ddc0
mov esi, 0x495d50
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41dda0
cmp cl, bl
je 0x41dd9c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41dda0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41dd7c
xor eax, eax
jmp 0x41dda5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41ddc0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81e0], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x81e4], 0xffffffff
jne 0x41de18
mov esi, 0x495d40
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41ddf8
cmp cl, bl
je 0x41ddf4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41ddf8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41ddd4
xor eax, eax
jmp 0x41ddfd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41de18
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81e4], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x81e8], 0xffffffff
jne 0x41de70
mov esi, 0x495d30
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41de50
cmp cl, bl
je 0x41de4c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41de50
add eax, 2
add esi, 2
cmp cl, bl
jne 0x41de2c
xor eax, eax
jmp 0x41de55
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41de70
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x81e8], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [esp + 0x28]
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x20]
inc ecx
cmp al, bl
mov dword [esp + 0x20], ecx
jne 0x41dcab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret