Function at 0x4662c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488318
mov eax, dword fs:[0]
push eax
sub esp, 0xd44
mov eax, dword [0x4bc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd3c]
call fcn.004027e0
mov byte [ebp - 4], 3
lea edx, [ebp - 0xd3c]
lea ecx, [ebp + 8]
call fcn.00465a30
mov dword [ebp - 0xd38], eax
lea ecx, [ebp - 0xd38]
push ecx
push 0x20019
push 0
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x466480
mov dword [ebp - 0xd44], 0xbb8
mov edx, str.DWORD
lea ecx, [ebp + 0xc]
call fcn.0045f100
lea ecx, [ebp - 0xd34]
test al, al
je 0x4663f6
mov dword [ebp - 0xd4c], 4
push dword [ebp - 0xd3c]
call fcn.0045fda0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4c]
push ecx
lea ecx, [ebp - 0xd40]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0xd38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0xd48], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd30]
mov eax, dword [ebp - 0xd34]
cmp eax, ecx
je 0x4663c6
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [ebp - 0xd40]
push 0x48d104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x5dc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
add esp, 0x18
jmp 0x46644b
push dword [ebp - 0xd3c]
call fcn.0045fda0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd44]
push ecx
lea ecx, [ebp - 0xc30]
push ecx
push 0
push 0
push dword [eax]
push dword [ebp - 0xd38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0xd48], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd30]
mov eax, dword [ebp - 0xd34]
cmp eax, ecx
je 0x46644b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
test edi, edi
jne 0x466486
lea edx, [ebp - 0xc30]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x466460
sub edx, esi
sar edx, 1
push edx
lea eax, [ebp - 0xc30]
push eax
mov ecx, ebx
call fcn.004030f0
jmp 0x466486
mov edi, dword [ebp - 0xd48]
push dword [ebp - 0xd38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xd3c]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4664ba
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4664dc
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x466502
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, edi
jmp 0x46659c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00471083
mov esp, ebp
pop ebp
ret