Function at 0x46af50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51486c
mov eax, dword fs:[0]
push eax
sub esp, 0xda8
mov eax, dword [0x577680]
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 eax, dword [ebp + 8]
mov esi, dword [0x578ad4]
mov dword [ebp - 0xdb4], eax
mov eax, esi
imul eax, esi
xor ecx, ecx
mov dword [ebp - 0xd9c], ecx
cdq
mov ecx, 9
idiv ecx
cmp edx, 2
jne 0x46aff0
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebp + ecx*4 - 0xbf8]
add eax, dword [ebp + ecx*4 - 0xbfc]
add ecx, 6
add eax, dword [ebp + ecx*4 - 0xc18]
add eax, dword [ebp + ecx*4 - 0xc1c]
add eax, dword [ebp + ecx*4 - 0xc20]
add eax, dword [ebp + ecx*4 - 0xc24]
imul eax, eax, 0x2a
add esi, eax
cmp ecx, 0x3b4
jb 0x46afb0
mov dword [0x578ad4], esi
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xda4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 4], 0
call fcn.004f2250
add esp, 0xc
mov dword [ebp - 0xdb0], 0
mov dword [ebp - 0xdac], 0
mov dword [ebp - 0xda8], 0
push 1
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xdb0]
mov byte [ebp - 4], 1
call fcn.0040faa0
or ebx, 0xffffffff
test eax, eax
jne 0x46b4c9
push str.svcVe
lea ecx, [ebp - 0xd94]
call fcn.00401c30
push str.rsion
push eax
lea eax, [ebp - 0xda0]
push eax
mov byte [ebp - 4], 2
call fcn.00402b40
mov edi, dword [ebp - 0xdb0]
add esp, 0xc
lea ecx, [ebp - 0xd90]
push ecx
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0xd98]
push ecx
push 0
push dword [eax]
mov dword [ebp - 0xd90], 0x800
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x46b110
mov eax, dword [ebp - 0xd98]
cmp eax, 1
je 0x46b0e3
cmp eax, 2
je 0x46b0e3
lea esi, [ebx + 0xe]
jmp 0x46b110
mov eax, dword [ebp - 0xd90]
test eax, eax
je 0x46b105
test al, 1
jne 0x46b0fe
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x46b10e
mov esi, 0xd
jmp 0x46b110
xor eax, eax
mov word [ebp - 0x810], ax
xor esi, esi
mov edx, dword [ebp - 0xda0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b12f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xd94]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b152
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x46b17e
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xd98]
call fcn.00401c30
mov eax, dword [eax]
mov ecx, 1
mov dword [ebp - 0xd9c], ecx
cmp dword [eax - 0xc], esi
je 0x46b184
mov bl, cl
jmp 0x46b186
mov ecx, dword [ebp - 0xd9c]
xor bl, bl
test cl, 1
je 0x46b1b4
mov edx, dword [ebp - 0xd98]
and ecx, 0xfffffffe
add edx, 0xfffffff0
mov dword [ebp - 0xd9c], ecx
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b1b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x46b1e8
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b1c1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xda4]
call fcn.0040c730
jmp 0x46b4a9
call fcn.0046cb20
test al, al
jne 0x46b23d
mov edx, dword [0x578ad4]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebp + ecx*4 - 0x844]
add eax, dword [ebp + ecx*4 - 0x848]
add ecx, 6
add eax, dword [ebp + ecx*4 - 0x864]
add eax, dword [ebp + ecx*4 - 0x868]
add eax, dword [ebp + ecx*4 - 0x86c]
add eax, dword [ebp + ecx*4 - 0x870]
imul eax, eax, 0x66
add edx, eax
cmp ecx, 0x48
jb 0x46b200
mov dword [0x578ad4], edx
lea eax, [ebp - 0xd94]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xd98]
push eax
push 0
push 0x52a498
push edi
mov dword [ebp - 0xd94], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov dword [ebp - 0xd90], ebx
test ebx, ebx
jne 0x46b2cc
mov eax, dword [ebp - 0xd98]
cmp eax, 1
je 0x46b292
cmp eax, 2
je 0x46b292
mov dword [ebp - 0xd90], 0xd
jmp 0x46b2cc
mov eax, dword [ebp - 0xd94]
test eax, eax
je 0x46b2b9
test al, 1
jne 0x46b2ad
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x46b2c2
mov dword [ebp - 0xd90], 0xd
jmp 0x46b2cc
xor eax, eax
mov word [ebp - 0x810], ax
mov dword [ebp - 0xd90], 0
call fcn.0046c9d0
test al, al
jne 0x46b36d
xor eax, eax
mov dword [ebp - 0xd94], eax
lea esi, [ebp - 0xd8c]
jmp 0x46b2f0
xor ecx, ecx
mov dword [ebp - 0xda0], ecx
mov dword [ebp - 0xd98], esi
mov edi, edi
mov esi, dword [0x578ad4]
lea ebx, [ecx + 1]
lea ecx, [eax + 1]
mov eax, esi
cdq
idiv ecx
mov eax, esi
mov ecx, esi
sub ecx, dword [ebp - 0xd94]
mov esi, dword [ebp - 0xd98]
mov edi, edx
cdq
imul edi, ecx
idiv ebx
add edi, eax
sub edi, dword [ebp - 0xda0]
push edi
push 0x52a4e0
call fcn.004f20c4
mov eax, dword [ebp - 0xd94]
mov ecx, ebx
add esi, 4
add esp, 8
mov dword [ebp - 0xda0], ecx
mov dword [ebp - 0xd98], esi
cmp ecx, 0x10
jl 0x46b300
inc eax
mov dword [ebp - 0xd94], eax
cmp eax, 6
jl 0x46b2f0
mov edi, dword [ebp - 0xdb0]
cmp dword [ebp - 0xd90], 0
jne 0x46b40f
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd90], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x46b3c2
movzx esi, ax
push 0
push esi
call fcn.00403070
add esp, 8
test eax, eax
je 0x46b3f2
push esi
push eax
lea ecx, [ebp - 0xd90]
call fcn.00408b00
jmp 0x46b3f2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
jmp 0x46b3d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b3d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xd90]
call fcn.0040c730
mov ecx, dword [ebp - 0xd9c]
mov eax, dword [ebp - 0xd90]
or ecx, 2
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 1
je 0x46b415
mov bl, 1
jmp 0x46b417
mov ecx, dword [ebp - 0xd9c]
xor bl, bl
test cl, 2
je 0x46b43c
mov edx, dword [ebp - 0xd90]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b43c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x46b472
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b450
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xda4]
call fcn.0040c730
mov eax, dword [0x578ad4]
imul eax, eax
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 5
jne 0x46b4a9
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x578ad4]
mov edx, 7
test eax, eax
cmove ecx, edx
mov dword [0x578ad4], ecx
test edi, edi
je 0x46b4bc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0xdb0], edi
mov dword [ebp - 0xdac], 0
or ebx, 0xffffffff
mov esi, dword [ebp - 0xda4]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x46b4f5
cmp ecx, dword [esi]
jne 0x46b4f5
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46b532
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x46b509
call fcn.0040cb60
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004f18c0
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0xdb4]
mov dword [edi], eax
mov eax, dword [ebp - 0xdb0]
test eax, eax
je 0x46b54e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46b569
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004f0cd4
mov esp, ebp
pop ebp
ret