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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602007
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x697bc0]
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 - 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 0x4eb91f
call fcn.004e9830
test eax, eax
je 0x4eb91f
cmp dword [esi + 0x14], 8
jb 0x4eb8d9
mov eax, dword [esi]
jmp 0x4eb8db
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 0x4eba20
cmp dword [esi + 0x14], 8
jb 0x4eb907
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 0x4eba13
cmp byte [ebp + 0x40], 0
je 0x4eb9f8
cmp ebx, reloc.WS2_32.dll_accept
jne 0x4eb9f8
lea eax, [ebp - 0x450]
push eax
call fcn.004e5510
add esp, 4
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4eb950
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.004e37f0
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 0x4eb9be
push dword [ebp - 0x438]
call fcn.005c4337
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 0x4eba15
push dword [ebp - 0x450]
call fcn.005c4337
add esp, 4
jmp 0x4eba15
cmp dword [esi + 0x14], 8
jb 0x4eba00
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 0x4eba20
xor bl, bl
jmp 0x4ebd0d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x460], 0
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 0x4ebc2a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4eba80
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 0x4ebc06
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
mov dword [ebp - 0x458], 0x104
call fcn.005c63d0
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 0x4ebbfe
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004e2fe0
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.004f0d50
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x66e0b8
mov byte [ecx], 0
call fcn.004eec50
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 5
call fcn.004f8590
add esp, 0x30
lea eax, [ebp - 0x438]
lea ecx, [ebp - 0x470]
push eax
call fcn.004efb50
cmp dword [ebp - 0x424], 0x10
jb 0x4ebbc8
push dword [ebp - 0x438]
call fcn.005c4337
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 0x4ebbfe
push dword [ebp - 0x450]
call fcn.005c4337
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 0x4eba80
mov edi, dword [ebp - 0x46c]
push dword [ebp - 0x45c]
call ebx
mov ebx, dword [ebp - 0x470]
mov esi, ebx
cmp ebx, edi
je 0x4ebccc
cmp dword [ebp + 0x3c], 8
lea eax, [ebp + 0x28]
cmovae eax, dword [ebp + 0x28]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.004e2fe0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x4ebc65
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x4ebc6f
mov ecx, dword [esi]
jmp 0x4ebc71
mov ecx, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4ebc91
test dl, dl
je 0x4ebc8d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4ebc91
add ecx, 2
add eax, 2
test dl, dl
jne 0x4ebc71
xor eax, eax
jmp 0x4ebc96
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp dword [ebp - 0x43c], 0x10
jb 0x4ebcb2
push dword [ebp - 0x450]
call fcn.005c4337
add esp, 4
test bl, bl
jne 0x4ebcbf
add esi, 0x18
cmp esi, edi
jne 0x4ebc42
jmp 0x4ebcc6
mov byte [ebp - 0x461], 1
mov ebx, dword [ebp - 0x470]
test ebx, ebx
je 0x4ebd07
mov esi, ebx
cmp ebx, edi
je 0x4ebcfe
cmp dword [esi + 0x14], 0x10
jb 0x4ebce6
push dword [esi]
call fcn.005c4337
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x4ebcd6
push ebx
call fcn.005c4337
add esp, 4
mov bl, byte [ebp - 0x461]
cmp dword [ebp + 0x24], 8
jb 0x4ebd1e
push dword [ebp + 0x10]
call fcn.005c4337
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 0x4ebd43
push dword [ebp + 0x28]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret