Function at 0x4694e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x51d5f8]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x51c718]
mov edi, dword [ebp + 0xc]
cmp eax, dword [ecx + 0xc]
jg 0x469842
mov ecx, 0x51c714
call fcn.0049fdc0
test eax, eax
jne 0x4695cd
push 0x4e4338
mov ecx, 0x51c714
call fcn.0049f6f0
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 0x4695cd
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 0x4695c1
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push dword [ebp - 0x404]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x4695c1
push dword [ebp - 0x40c]
mov ecx, 0x51c714
call fcn.0049f6f0
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x51c71c], 0
jne 0x46966f
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0x4f0a2c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x469651
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 0x4f0a48
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x408]
cmp eax, 0xffffffff
je 0x469651
push eax
push 0x4f0a58
push 4
push 0x51c71c
call fcn.004621c0
add esp, 0x10
cmp word [0x51c71c], 0
jne 0x46966f
push 0x4f0a64
push 4
push 0x51c71c
call fcn.004b7f10
add esp, 0xc
cmp word [edi], 0xa
jbe 0x469832
push 0xa
push 0x4f0a68
push ebx
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x469832
cmp word [edi], 0x11
push esi
lea esi, [ebx + 0x14]
jb 0x46974f
push 7
push 0x4f0a80
push esi
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x46974f
cmp word [edi], 0x44
lea esi, [ebx + 0x22]
jb 0x4696e0
push 0x33
push 0x4f0a90
push esi
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x4696e0
push 0x4e9c54
push 0x44
jmp 0x469825
cmp word [edi], 0x22
jb 0x469706
push 0x11
push 0x4f0af8
push esi
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x469706
push 0x4e9c28
push 0x22
jmp 0x469825
cmp word [edi], 0x26
jb 0x469743
push 0x12
push 0x4f0b1c
push esi
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x469743
push 3
lea eax, [ebx + 0x46]
push 0x51c71c
push eax
call fcn.004b8a38
add esp, 0xc
test eax, eax
jne 0x469743
push 0x4f0b44
push 0x26
jmp 0x469825
push 0x4e9c40
push 0x11
jmp 0x469825
cmp word [edi], 0xe
jb 0x469831
push 4
push 0x4f0b80
push esi
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x469831
mov ecx, 0x51c714
call fcn.0049fdc0
movzx ecx, word [edi]
add eax, 0xf
cmp ecx, eax
jb 0x46981e
cmp word [ebx + 0x1c], 0x5c
jne 0x46981e
mov ecx, 0x51c714
call fcn.0049fdc0
mov ecx, 0x51c714
mov esi, eax
call fcn.0049f770
push esi
push eax
lea eax, [ebx + 0x1e]
push eax
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x46981e
mov ecx, 0x51c714
call fcn.0049fdc0
movzx ecx, word [edi]
add eax, 0x17
cmp ecx, eax
jb 0x469809
push 8
push 0x4f0b8c
mov ecx, 0x51c714
call fcn.0049fdc0
add eax, 0xf
lea eax, [ebx + eax*2]
push eax
call fcn.004b8550
add esp, 0xc
test eax, eax
jne 0x469809
push 0x4f0ba0
mov ecx, 0x51c714
call fcn.0049fdc0
add eax, 0x17
push eax
jmp 0x469825
push 0x4e9c34
mov ecx, 0x51c714
call fcn.0049fdc0
add eax, 0xf
push eax
jmp 0x469825
push 0x4e9c4c
push 0xe
push 0
push edi
push ebx
call fcn.00468a00
add esp, 0x14
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push 0x51c718
call fcn.004a4830
add esp, 4
cmp dword [0x51c718], 0xffffffff
jne 0x46951b
push 0x4d95e0
call fcn.004a46e8
push 0x51c718
call fcn.004a47e6
add esp, 8
jmp 0x46951b