Function at 0x418dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a9dd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x480040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], 0
jbe 0x418e0f
mov ecx, dword [eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push ecx
push 0
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x418e33
mov dword [esi], eax
mov byte [esi + 0x18], 0
jmp 0x418f5b
mov esi, dword [ebp - 0x2c]
xorps xmm0, xmm0
shr esi, 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
cmp esi, 0x7ffffffe
ja 0x418ff6
cmp esi, 7
ja 0x418e88
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
test esi, esi
je 0x418e7f
mov ecx, esi
lea edi, [ebp - 0x28]
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [ebp + esi*2 - 0x28], ax
jmp 0x418ee0
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x418e9d
mov dword [ebp - 0x30], closesocket
jmp 0x418eaa
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00416840
mov edx, eax
mov ecx, esi
mov eax, dword [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x18], ecx
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, 0x200020
shr ecx, 1
mov dword [ebp - 0x28], edi
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [edx + esi*2], ax
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x38]
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x418efd
mov eax, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push ecx
push 0
push 2
push eax
mov eax, dword [ebp - 0x3c]
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x418f7a
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov byte [esi + 0x18], 0
cmp ecx, 7
jbe 0x418f5b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418f51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418ff0
push ecx
push edx
call fcn.0041eb1b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ec12
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
shr ecx, 1
dec ecx
cmp ecx, eax
ja 0x418f9d
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x418faa
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041b650
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00417020
mov ecx, dword [ebp - 0x14]
mov byte [esi + 0x18], 1
cmp ecx, 7
jbe 0x418f5b
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x418f51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418f51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.004016e0
int3