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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526831
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x588eb0]
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]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x450], eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e0741
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x100
push eax
lea eax, [ebp - 0x410]
sub esi, ecx
push eax
push 0
push reloc.WS2_32.dll_closesocket
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4e0a3a
test eax, eax
jne 0x4e0a02
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
lea ecx, [ebp - 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x444], eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e07c0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.004c3110
push 0x15
push str.Volatile_Environment
lea ecx, [ebp - 0x440]
call fcn.004cce85
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x444]
push ecx
push 0x20019
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push 0
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e09bf
push 0x200
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004ffc00
add esp, 0xc
mov dword [ebp - 0x448], 0x100
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x454]
push eax
push 0
push str.APPDATA
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e08fb
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.005138ec
add esp, 0xc
test eax, eax
je 0x4e08fb
xor eax, eax
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e08b4
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.004c3110
mov ecx, dword [ebp - 0x450]
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 1
call fcn.004e2bb0
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 0
call fcn.004c33b0
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x454]
push eax
push 0
push str.LOCALAPPDATA
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e09b3
push esi
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.005138ec
add esp, 0xc
test eax, eax
je 0x4e09b3
xor eax, eax
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x414], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e0970
sub eax, edx
lea ecx, [ebp - 0x428]
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004c3110
mov ecx, dword [ebp - 0x450]
lea eax, [ebp - 0x428]
push eax
mov byte [ebp - 4], 2
call fcn.004e2bb0
lea ecx, [ebp - 0x428]
call fcn.004c33b0
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4e0a02
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e09f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e0a56
push edx
push ecx
call fcn.004fbca6
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x100
push eax
lea eax, [ebp - 0x410]
inc edi
push eax
push edi
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x4e0788
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.004fbc95
mov esp, ebp
pop ebp
ret
call fcn.00501cb1
int3