Function at 0x466b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5195a0]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5186c0]
mov edi, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jg 0x466e62
mov ecx, 0x5186bc
call fcn.0049c770
test eax, eax
jne 0x466bed
push 0x4e0168
mov ecx, 0x5186bc
call fcn.0049c0a0
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x466bed
lea eax, [ebp - 0x410]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 1
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x466be1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push dword [ebp - 0x404]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x466be1
push dword [ebp - 0x40c]
mov ecx, 0x5186bc
call fcn.0049c0a0
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x5186c4], 0
jne 0x466c8f
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0x4eca44
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x466c71
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0xffffffff
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], 4
push eax
push 0
push 0
push 0x4eca60
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x408]
cmp eax, 0xffffffff
je 0x466c71
push eax
push 0x4eca70
push 4
push 0x5186c4
call fcn.0045f810
add esp, 0x10
cmp word [0x5186c4], 0
jne 0x466c8f
push 0x4eca7c
push 4
push 0x5186c4
call fcn.004b4900
add esp, 0xc
cmp word [edi], 0xa
jbe 0x466e52
push 0xa
push 0x4eca80
push ebx
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466e52
cmp word [edi], 0x11
push esi
lea esi, [ebx + 0x14]
jb 0x466d6f
push 7
push 0x4eca98
push esi
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466d6f
cmp word [edi], 0x44
lea esi, [ebx + 0x22]
jb 0x466d00
push 0x33
push 0x4ecaa8
push esi
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466d00
push 0x4e5c6c
push 0x44
jmp 0x466e45
cmp word [edi], 0x22
jb 0x466d26
push 0x11
push 0x4ecb10
push esi
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466d26
push 0x4e5c40
push 0x22
jmp 0x466e45
cmp word [edi], 0x26
jb 0x466d63
push 0x12
push 0x4ecb34
push esi
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466d63
push 3
lea eax, [ebx + 0x46]
push 0x5186c4
push eax
call fcn.004b5428
add esp, 0xc
test eax, eax
jne 0x466d63
push 0x4ecb5c
push 0x26
jmp 0x466e45
push 0x4e5c58
push 0x11
jmp 0x466e45
cmp word [edi], 0xe
jb 0x466e51
push 4
push 0x4ecb98
push esi
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466e51
mov ecx, 0x5186bc
call fcn.0049c770
movzx ecx, word [edi]
add eax, 0xf
cmp ecx, eax
jb 0x466e3e
cmp word [ebx + 0x1c], 0x5c
jne 0x466e3e
mov ecx, 0x5186bc
call fcn.0049c770
mov ecx, 0x5186bc
mov esi, eax
call fcn.0049c120
push esi
push eax
lea eax, [ebx + 0x1e]
push eax
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466e3e
mov ecx, 0x5186bc
call fcn.0049c770
movzx ecx, word [edi]
add eax, 0x17
cmp ecx, eax
jb 0x466e29
push 8
push 0x4ecba4
mov ecx, 0x5186bc
call fcn.0049c770
add eax, 0xf
lea eax, [ebx + eax*2]
push eax
call fcn.004b4f40
add esp, 0xc
test eax, eax
jne 0x466e29
push 0x4ecbb8
mov ecx, 0x5186bc
call fcn.0049c770
add eax, 0x17
push eax
jmp 0x466e45
push 0x4e5c4c
mov ecx, 0x5186bc
call fcn.0049c770
add eax, 0xf
push eax
jmp 0x466e45
push 0x4e5c64
push 0xe
push 0
push edi
push ebx
call fcn.00466030
add esp, 0x14
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
push 0x5186c0
call fcn.004a1210
add esp, 4
cmp dword [0x5186c0], 0xffffffff
jne 0x466b3b
push 0x4d5460
call fcn.004a10c8
push 0x5186c0
call fcn.004a11c6
add esp, 8
jmp 0x466b3b