Function at 0x491710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f229b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x536364]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x53fa70]
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x42c], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x424], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x53f23c]
cmp eax, dword [ecx + 4]
jg 0x491aad
mov eax, dword [0x53f238]
cmp dword [eax - 0xc], 0
jne 0x491a27
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c10f0
add esp, 0xc
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push 0x20019
push 0
push 0x4f87c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x491835
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x430], 0x206
push eax
lea eax, [ebp - 0x434]
push eax
push 0
push 0x4f7db4
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491814
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, 0x53f238
call fcn.004864d0
mov eax, dword [0x53f238]
cmp dword [eax - 0xc], 0
jne 0x491a27
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c10f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x491a21
mov edx, str.SoftMgr
mov ecx, esi
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4918c6
test ax, ax
je 0x4918c2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4918c6
add ecx, 4
add edx, 4
test ax, ax
jne 0x4918a0
xor eax, eax
jmp 0x4918cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4918f6
lea eax, [ebp - 0x218]
push eax
call edi
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4918e1
sub edx, esi
sar edx, 1
push edx
jmp 0x491a10
mov ecx, str.360Safe
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x491926
test dx, dx
je 0x491922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x491926
add eax, 4
add ecx, 4
test dx, dx
jne 0x491900
xor eax, eax
jmp 0x49192b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x491950
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x491940
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491940
jmp 0x491a0b
mov eax, 0x4f8c74
mov cx, word [esi]
cmp cx, word [eax]
jne 0x49197b
test cx, cx
je 0x491977
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x49197b
add esi, 4
add eax, 4
test cx, cx
jne 0x491955
xor eax, eax
jmp 0x491980
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x4919ad
call edi
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4919a0
jmp 0x491a0b
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
mov ecx, str.360Safe
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4919e6
test dx, dx
je 0x4919e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4919e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4919c0
xor eax, eax
jmp 0x4919eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x491a21
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x491a00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491a00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x53f238
push eax
call fcn.004864d0
mov ebx, dword [ebp - 0x424]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x491a79
push eax
lea ecx, [ebp - 0x424]
call fcn.004828f0
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push eax
push 0x53f238
push ebx
call fcn.00490520
mov esi, dword [ebp - 0x424]
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491a8f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x491a8f
mov eax, dword [0x53f238]
add eax, 0xfffffff0
push eax
call fcn.00486140
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
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.004a1e09
mov esp, ebp
pop ebp
ret
push 0x53f23c
call fcn.004a1d15
add esp, 4
cmp dword [0x53f23c], 0xffffffff
jne 0x491776
mov dword [ebp - 4], 0
call fcn.00483a50
mov ecx, eax
test ecx, ecx
jne 0x491ae3
push 0x80004005
call fcn.004836b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
push 0x4f5b50
mov dword [0x53f238], eax
call fcn.004a1ac3
push 0x53f23c
call fcn.004a1ccb
add esp, 8
jmp 0x491776