Function at 0x4e7e30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576087
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x5ea6f0]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x468], 0
xor edi, edi
movq qword [ebp - 0x470], xmm0
xor al, al
mov dword [ebp - 0x45c], 0
mov byte [ebp - 0x461], al
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x468], edi
mov byte [ebp - 4], 2
cmp ebx, reloc.WS2_32.dll_bind
jne 0x4e7f19
call fcn.004e7300
test eax, eax
je 0x4e7f19
cmp dword [esi + 0x14], 8
jb 0x4e7ed3
mov eax, dword [esi]
jmp 0x4e7ed5
mov eax, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x45c]
push ecx
push 0x109
push 0
push eax
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x4e801a
cmp dword [esi + 0x14], 8
jb 0x4e7f01
mov esi, dword [esi]
lea eax, [ebp - 0x45c]
push eax
push 9
push 0
push esi
push reloc.WS2_32.dll_bind
call ebx
jmp 0x4e800d
cmp byte [ebp + 0x40], 0
je 0x4e7ff2
cmp ebx, reloc.WS2_32.dll_accept
jne 0x4e7ff2
lea eax, [ebp - 0x450]
push eax
call fcn.004e38a0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4e7f4a
mov esi, dword [esi]
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
push esi
cmovae eax, dword [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push str._s_s
push eax
call fcn.004e20d0
add esp, 0x10
lea ecx, [ebp - 0x45c]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ecx
push 9
push 0
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x424], 8
mov esi, eax
jb 0x4e7fb8
push dword [ebp - 0x438]
call fcn.0054e059
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
jb 0x4e800f
push dword [ebp - 0x450]
call fcn.0054e059
add esp, 4
jmp 0x4e800f
cmp dword [esi + 0x14], 8
jb 0x4e7ffa
mov esi, dword [esi]
lea eax, [ebp - 0x45c]
push eax
push 9
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4e801a
xor bl, bl
jmp 0x4e82fd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00550c40
add esp, 0xc
lea eax, [ebp - 0x218]
xor esi, esi
push 0x104
push eax
push esi
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4e821a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4e8070
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4e81f6
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
mov dword [ebp - 0x458], 0x104
call fcn.00550c40
add esp, 0xc
mov dword [ebp - 0x454], 1
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x458]
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x454]
push ecx
push 0
push eax
push dword [ebp - 0x460]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e81ee
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004e1980
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
sub esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x474], esp
lea eax, [ebp - 0x450]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004eafb0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5d0b70
mov byte [ecx], 0
call fcn.004e9140
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.004f1910
add esp, 0x30
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x470]
push eax
call fcn.004e9e60
cmp dword [ebp - 0x424], 0x10
jb 0x4e81b8
push dword [ebp - 0x438]
call fcn.0054e059
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x43c], 0x10
mov dword [ebp - 0x424], 0xf
mov dword [ebp - 0x428], 0
mov byte [ebp - 0x438], 0
jb 0x4e81ee
push dword [ebp - 0x450]
call fcn.0054e059
add esp, 4
push dword [ebp - 0x460]
call ebx
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x45c]
call edi
test eax, eax
je 0x4e8070
mov edi, dword [ebp - 0x46c]
push dword [ebp - 0x45c]
call ebx
mov ebx, dword [ebp - 0x470]
mov esi, ebx
cmp ebx, edi
je 0x4e82bc
cmp dword [ebp + 0x3c], 8
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004e1980
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4e8255
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x4e825f
mov ecx, dword [esi]
jmp 0x4e8261
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4e8281
test dl, dl
je 0x4e827d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4e8281
add ecx, 2
add eax, 2
test dl, dl
jne 0x4e8261
xor eax, eax
jmp 0x4e8286
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp dword [ebp - 0x43c], 0x10
jb 0x4e82a2
push dword [ebp - 0x450]
call fcn.0054e059
add esp, 4
test bl, bl
jne 0x4e82af
add esi, 0x18
cmp esi, edi
jne 0x4e8232
jmp 0x4e82b6
mov byte [ebp - 0x461], 1
mov ebx, dword [ebp - 0x470]
test ebx, ebx
je 0x4e82f7
mov esi, ebx
cmp ebx, edi
je 0x4e82ee
cmp dword [esi + 0x14], 0x10
jb 0x4e82d6
push dword [esi]
call fcn.0054e059
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x4e82c6
push ebx
call fcn.0054e059
add esp, 4
mov bl, byte [ebp - 0x461]
cmp dword [ebp + 0x24], 8
jb 0x4e830e
push dword [ebp + 0x10]
call fcn.0054e059
add esp, 4
xor eax, eax
mov dword [ebp + 0x24], 7
cmp dword [ebp + 0x3c], 8
mov dword [ebp + 0x20], 0
mov word [ebp + 0x10], ax
jb 0x4e8333
push dword [ebp + 0x28]
call fcn.0054e059
add esp, 4
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.005507d9
mov esp, ebp
pop ebp
ret