Function at 0x4eb2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542e9b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x577018]
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
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0xac], 0x80
push 0
push eax
call fcn.00519680
add esp, 0xc
mov dword [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
push 0x2c
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.00408270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
push 0x12
xor eax, eax
mov dword [ebp - 0xa8], 0
push str.CurrentBuildNumber
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00408270
mov byte [ebp - 4], 1
lea edx, [ebp - 0xac]
cmp dword [ebp - 0x94], 8
lea ecx, [ebp - 0xa8]
push edx
cmovae ecx, dword [ebp - 0xa8]
lea edx, [ebp - 0x90]
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
push edx
cmovae eax, dword [ebp - 0xdc]
push 0
push 2
push ecx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4eb40a
xor bl, bl
jmp 0x4eb50a
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
lea edx, [ecx + 2]
mov dword [ebp - 0xb0], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4eb431
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc4]
call fcn.00408270
mov eax, dword [ebp - 0xb4]
cmp eax, 4
jbe 0x4eb4c8
cmp dword [ebp - 0xb0], 8
lea edi, [ebp - 0xc4]
mov ecx, 5
mov esi, eax
cmovae edi, dword [ebp - 0xc4]
mov edx, str.22000
cmp eax, ecx
cmova esi, ecx
test esi, esi
je 0x4eb4b6
sub edi, edx
nop dword [eax]
movzx eax, word [edx]
movzx ebx, word [edx + edi]
mov ecx, eax
mov dword [ebp - 0xe0], ecx
movzx ecx, word [edx + edi]
cmp cx, ax
jne 0x4eb4bf
add edx, 2
sub esi, 1
jne 0x4eb490
mov eax, dword [ebp - 0xb4]
cmp eax, 5
jb 0x4eb4c8
mov bl, 1
jmp 0x4eb4ca
cmp bx, word [ebp - 0xe0]
jmp 0x4eb4b9
xor bl, bl
mov eax, dword [ebp - 0xb0]
cmp eax, 8
jb 0x4eb50a
mov edx, dword [ebp - 0xc4]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4eb500
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb5c1
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x94]
cmp ecx, 8
jb 0x4eb54a
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4eb540
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb5c1
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0xc8]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
cmp ecx, 8
jb 0x4eb5a3
mov edx, dword [ebp - 0xdc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4eb599
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4eb5c1
push ecx
push edx
call fcn.00517162
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.00517154
mov esp, ebp
pop ebp
ret
call fcn.0051eb64
int3