Function at 0x46c410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x52ee74]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x52dfa0]
mov edi, dword [ebp + 8]
cmp eax, dword [ecx + 0xc]
jg 0x46c77b
mov ecx, 0x52df9c
call fcn.004a2a40
test eax, eax
jne 0x46c4fd
push 0x4e6d6c
mov ecx, 0x52df9c
call fcn.004a2300
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 0x46c4fd
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 0x46c4f1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push dword [ebp - 0x404]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x46c4f1
push dword [ebp - 0x40c]
mov ecx, 0x52df9c
call fcn.004a2300
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp word [0x52dfa4], 0
jne 0x46c59f
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0x4f3a64
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46c581
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 0x4f3a80
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x408]
cmp eax, 0xffffffff
je 0x46c581
push eax
push 0x4f3a90
push 4
push 0x52dfa4
call fcn.00464600
add esp, 0x10
cmp word [0x52dfa4], 0
jne 0x46c59f
push 0x4f3a9c
push 4
push 0x52dfa4
call fcn.004ba210
add esp, 0xc
cmp word [ebx], 0xa
jbe 0x46c76b
push 0xa
push 0x4f3aa0
push edi
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c76b
cmp word [ebx], 0x11
jb 0x46c684
push 7
lea eax, [edi + 0x14]
push 0x4f3ab8
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c684
cmp word [ebx], 0x44
jb 0x46c60f
push 0x33
lea eax, [edi + 0x22]
push 0x4f3ac8
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c60f
push 0x4ec684
push 0x44
jmp 0x46c75f
cmp word [ebx], 0x22
jb 0x46c638
push 0x11
lea eax, [edi + 0x22]
push 0x4f3b30
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c638
push 0x4ec658
push 0x22
jmp 0x46c75f
cmp word [ebx], 0x26
jb 0x46c678
push 0x12
lea eax, [edi + 0x22]
push 0x4f3b54
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c678
push 3
lea eax, [edi + 0x46]
push 0x52dfa4
push eax
call fcn.004bad40
add esp, 0xc
test eax, eax
jne 0x46c678
push 0x4f3b7c
push 0x26
jmp 0x46c75f
push 0x4ec670
push 0x11
jmp 0x46c75f
cmp word [ebx], 0xe
jb 0x46c76b
push 4
lea eax, [edi + 0x14]
push 0x4f3bb8
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c76b
mov ecx, 0x52df9c
call fcn.004a2a40
movzx ecx, word [ebx]
add eax, 0xf
cmp ecx, eax
jb 0x46c758
cmp word [edi + 0x1c], 0x5c
jne 0x46c758
push esi
mov ecx, 0x52df9c
call fcn.004a2a40
mov ecx, 0x52df9c
mov esi, eax
call fcn.004a2380
push esi
push eax
lea eax, [edi + 0x1e]
push eax
call fcn.004ba850
add esp, 0xc
pop esi
test eax, eax
jne 0x46c758
mov ecx, 0x52df9c
call fcn.004a2a40
movzx ecx, word [ebx]
add eax, 0x17
cmp ecx, eax
jb 0x46c743
push 8
push 0x4f3bc4
mov ecx, 0x52df9c
call fcn.004a2a40
add eax, 0xf
lea eax, [edi + eax*2]
push eax
call fcn.004ba850
add esp, 0xc
test eax, eax
jne 0x46c743
push 0x4f3bd8
mov ecx, 0x52df9c
call fcn.004a2a40
add eax, 0x17
push eax
jmp 0x46c75f
push 0x4ec664
mov ecx, 0x52df9c
call fcn.004a2a40
add eax, 0xf
push eax
jmp 0x46c75f
push 0x4ec67c
push 0xe
push 0
push ebx
push edi
call fcn.0046b8a0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0x52dfa0
call fcn.004a74f5
add esp, 4
cmp dword [0x52dfa0], 0xffffffff
jne 0x46c44b
push 0x4db280
call fcn.004a7464
push 0x52dfa0
call fcn.004a74a4
add esp, 8
jmp 0x46c44b