Function at 0x41ee20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497bd0
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4bb0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0
push 0x400
mov byte [ebp - 0x41], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x800
call fcn.0040f540
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 4], 0
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.00420b30
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [eax + 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41eeaa
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x4b0adc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub eax, 0
je 0x41ef15
sub eax, 2
je 0x41f05e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegQueryValueEx_failed_with__i
push eax
call fcn.0041d020
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409730
lea ecx, [ebp - 0x28]
call fcn.00403640
xor bl, bl
jmp 0x41f061
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
shr ecx, 1
cmp ecx, eax
ja 0x41ef37
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41ef44
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040a7a0
sub esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x108]
push eax
call fcn.004200c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
jne 0x41f053
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.00420c90
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x41f001
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41efcb
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x41efd1
lea edi, [edx + eax*2]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x41f001
movzx eax, word [esi]
push eax
call fcn.00477244
add esp, 4
test eax, eax
jne 0x41efee
add esi, 2
cmp esi, edi
jne 0x41efd5
jmp 0x41effe
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420850
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41f03c
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f032
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0b5
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
je 0x41ef80
lea ecx, [ebp - 0x108]
call fcn.0041f0c0
mov bl, byte [ebp - 0x41]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41f097
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f08d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f0b5
push edx
push ecx
call fcn.0046cebb
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ce78
mov esp, ebp
pop ebp
ret
call fcn.00471c84
int3