Function at 0x41b220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4308fe
push eax
mov eax, 0x10ac
mov dword fs:[0], esp
call fcn.00423820
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41b919
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x80]
mov byte [esp + 0x80], al
call fcn.0040aae0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x84]
call fcn.0040ad80
mov cl, byte [esp + 0x13]
mov dword [esp + 0x10c4], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x10c8], 1
mov byte [esp + 0x40], dl
call fcn.0040aae0
mov edi, 0x4389a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4389a0
lea ecx, [esp + 0x44]
call fcn.0040ad80
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
mov byte [esp + 0x10d0], 2
call fcn.004163c0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c4], 1
push 1
call fcn.0040aae0
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x8bd]
mov byte [esp + 0x8bc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xbd]
mov byte [esp + 0xbc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41b8c1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x41b8c1
mov edx, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x40]
lea esi, [edx + eax]
mov al, byte [edx + eax]
mov byte [esp + 0x40], al
call fcn.0040aae0
mov ecx, dword [0x4313b0]
push ecx
push ebx
push esi
lea ecx, [esp + 0x48]
call fcn.0040a8e0
mov dl, byte [esp + 0x13]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x90]
mov byte [esp + 0x10c8], 4
mov byte [esp + 0x90], al
call fcn.0040aae0
mov edi, 0x4389a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4389a4
lea ecx, [esp + 0x94]
call fcn.0040ad80
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x10d0], 5
call fcn.004163c0
add esp, 0xc
lea ecx, [esp + 0x8c]
mov byte [esp + 0x10c4], 4
push 1
call fcn.0040aae0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
je 0x41b7e7
mov edx, ecx
sub edx, eax
sar edx, 4
cmp edx, 3
jb 0x41b7e7
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x8bc]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x60]
mov byte [esp + 0x60], al
call fcn.0040aae0
mov edi, str.hkcu
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.hkcu
lea ecx, [esp + 0x64]
call fcn.0040ad80
lea ecx, [esp + 0x5c]
mov byte [esp + 0x10c4], 6
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040c010
test eax, eax
je 0x41b531
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa0], dl
call fcn.0040aae0
mov edi, str.HKEY_CURRENT_USER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0xa4]
call fcn.0040ad80
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x10c8], 7
call fcn.0040c010
test eax, eax
push 1
lea ecx, [esp + 0xa0]
sete byte [esp + 0x17]
mov byte [esp + 0x10c8], 6
call fcn.0040aae0
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], bl
cmp al, bl
je 0x41b536
mov byte [esp + 0x13], 1
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x10c8], 4
call fcn.0040aae0
cmp byte [esp + 0x13], bl
je 0x41b55c
mov dword [esp + 0x4c], SysReAllocStringLen
jmp 0x41b647
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x70], cl
lea ecx, [esp + 0x70]
call fcn.0040aae0
mov edi, str.hklm
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.hklm
lea ecx, [esp + 0x74]
call fcn.0040ad80
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x10c8], 8
call fcn.0040c010
test eax, eax
je 0x41b621
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0xb0]
mov byte [esp + 0xb0], al
call fcn.0040aae0
mov edi, str.HKEY_LOCAL_MACHINE
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0xb4]
call fcn.0040ad80
lea ecx, [esp + 0xac]
mov byte [esp + 0x10c4], 9
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040c010
test eax, eax
push 1
lea ecx, [esp + 0xb0]
sete byte [esp + 0x17]
mov byte [esp + 0x10c8], 8
call fcn.0040aae0
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], bl
cmp al, bl
je 0x41b626
mov byte [esp + 0x13], 1
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x10c8], 4
call fcn.0040aae0
cmp byte [esp + 0x13], bl
je 0x41b647
mov dword [esp + 0x4c], reloc.OLEAUT32.dll_SysReAllocString
mov edx, dword [esp + 0x18]
mov edi, dword [edx + 0x14]
cmp edi, ebx
jne 0x41b657
mov edi, 0x4313b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x8bc]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x58], esi
mov esi, edi
mov edi, dword [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x24]
cmp eax, ebx
jne 0x41b68d
mov eax, 0x4313b4
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xbc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x8bc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xff
lea edi, [esp + 0x4bd]
mov byte [esp + 0x4bc], bl
mov dword [esp + 0x50], 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x54]
push ecx
push 0x20019
stosb byte es:[edi], al
mov eax, dword [esp + 0x54]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41b728
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x10c4], 3
je 0x41b7e4
push ebx
mov ecx, esi
call fcn.00414790
add esi, 0x10
cmp esi, edi
jne 0x41b70f
mov esi, dword [esp + 0x18]
push esi
jmp 0x41b7ff
mov edi, str.none
lea esi, [esp + 0xbc]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x41b75c
cmp al, bl
je 0x41b758
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x41b75c
add esi, 2
add edi, 2
cmp al, bl
jne 0x41b734
xor eax, eax
jmp 0x41b761
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x41b83f
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4bc]
push eax
mov eax, dword [esp + 0x58]
push ecx
push ebx
lea edx, [esp + 0xc8]
push ebx
push edx
push eax
mov dword [esp + 0x68], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41b869
mov ecx, dword [esp + 0x54]
xor ebp, ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0041c770
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, eax
mov byte [esp + 0x10c4], 3
mov edi, eax
je 0x41b7e4
push ebx
mov ecx, esi
call fcn.00414790
add esi, 0x10
cmp esi, edi
jne 0x41b7d1
mov esi, dword [esp + 0x18]
push esi
jmp 0x41b7ff
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10cc], 3
call fcn.00414740
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00420ca8
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x10c8], 1
call fcn.0040aae0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
inc ecx
add eax, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
jmp 0x41b356
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov ebp, 1
mov byte [esp + 0x10c4], 3
je 0x41b895
push ebx
mov ecx, esi
call fcn.00414790
add esi, 0x10
cmp esi, edi
jne 0x41b858
jmp 0x41b891
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov ebp, 1
mov byte [esp + 0x10c4], 3
je 0x41b895
push ebx
mov ecx, esi
call fcn.00414790
add esi, 0x10
cmp esi, edi
jne 0x41b882
mov esi, dword [esp + 0x18]
push esi
call fcn.00420ca8
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x10c8], 1
call fcn.0040aae0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push edx
push eax
call fcn.0041c770
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10cc], bl
call fcn.00414740
mov edx, dword [esp + 0x28]
push edx
call fcn.00420ca8
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10c8], 0xffffffff
call fcn.0040aae0
mov ecx, dword [esp + 0x10bc]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10b8
ret