Function at 0x495af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d0a1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
mov dword [ebp - 0x20], 0
cmp dword [edi + 0xe0], eax
sete al
mov dword [0x602110], eax
mov eax, dword [edi + 0x20]
mov dword [0x602114], eax
mov eax, dword [edi + 0xb0]
sub eax, 0x10
push eax
call fcn.004293f0
add esp, 4
mov dword [ebp - 0x20], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x631790
call fcn.0042a6a0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495b91
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x495dff
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x20], 3
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push dword [0x6024b8]
mov dword [ebp - 0x10], 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x495c9c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push str.Version
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x495c16
cmp eax, 2
jne 0x495c96
lea ecx, [ebp - 0x14]
call fcn.00429490
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x495e09
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x495c4c
push edx
lea ecx, [ebp - 0x14]
call fcn.004296d0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x495c96
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00555593
add esp, 8
test eax, eax
js 0x495e09
cmp eax, dword [esi - 8]
jg 0x495e09
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x495cab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
mov ecx, 0x631764
call fcn.0042a6a0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495cde
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 0x10]
mov ecx, 0x631760
push eax
call fcn.0042a6a0
mov edi, dword [0x631760]
xor esi, esi
movzx eax, word [edi]
test ax, ax
je 0x495d44
mov ecx, eax
mov edi, edi
push ecx
push 0x5b51b4
call fcn.0054bcf3
add esp, 8
test eax, eax
je 0x495d1d
test esi, esi
mov eax, edi
cmovne eax, esi
mov esi, eax
jmp 0x495d1f
xor esi, esi
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x495d00
test esi, esi
je 0x495d44
sub esi, dword [0x631760]
mov ecx, 0x631760
sar esi, 1
push esi
call fcn.00470270
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.0048c570
push eax
mov ecx, 0x631778
mov dword [ebp - 4], 3
call fcn.0042a6a0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x495d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [0x631778]
xor esi, esi
movzx eax, word [edi]
test ax, ax
je 0x495dd7
mov ecx, eax
push ecx
push 0x5b51b4
call fcn.0054bcf3
add esp, 8
test eax, eax
je 0x495db0
test esi, esi
mov eax, edi
cmovne eax, esi
mov esi, eax
jmp 0x495db2
xor esi, esi
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x495d93
test esi, esi
je 0x495dd7
sub esi, dword [0x631778]
mov ecx, 0x631778
sar esi, 1
push esi
call fcn.00470270
push 0
push 0x5ac698
mov ecx, 0x631774
call fcn.00429870
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
int3