Function at 0x41f250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499120
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4bd0c8]
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.0040f260
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.00420f60
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 0x41f2da
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 0x4b1c4c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub eax, 0
je 0x41f345
sub eax, 2
je 0x41f48e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegQueryValueEx_failed_with__i
push eax
call fcn.0041d420
add esp, 0xc
mov ecx, edi
push eax
call fcn.00409400
lea ecx, [ebp - 0x28]
call fcn.004036b0
xor bl, bl
jmp 0x41f491
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
shr ecx, 1
cmp ecx, eax
ja 0x41f367
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 0x41f374
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040a4c0
sub esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x108]
push eax
call fcn.004204f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
jne 0x41f483
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.004210c0
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x41f431
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41f3fb
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x41f401
lea edi, [edx + eax*2]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x41f431
movzx eax, word [esi]
push eax
call fcn.00478754
add esp, 4
test eax, eax
jne 0x41f41e
add esi, 2
cmp esi, edi
jne 0x41f405
jmp 0x41f42e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420c80
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41f46c
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f462
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f4e5
push edx
push ecx
call fcn.0046e38b
add esp, 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
je 0x41f3b0
lea ecx, [ebp - 0x108]
call fcn.0041f4f0
mov bl, byte [ebp - 0x41]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41f4c7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f4bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f4e5
push edx
push ecx
call fcn.0046e38b
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
int3