Function at 0x494800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x5441c8]
mov dword [ebp - 0x428], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x543764]
mov dword [ebp - 0x418], ebx
cmp eax, dword [ecx + 4]
jg 0x494b7b
mov eax, dword [0x543760]
cmp dword [eax - 0xc], 0
jne 0x494af8
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c49e0
add esp, 0xc
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x494906
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 0x206
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.Path
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4948e5
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, 0x543760
call fcn.00483d00
mov eax, dword [0x543760]
cmp dword [eax - 0xc], 0
jne 0x494af8
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c49e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov edx, eax
test edx, edx
je 0x494af1
mov ecx, str.SoftMgr
lea ecx, [ecx]
mov si, word [eax]
cmp si, word [ecx]
jne 0x494996
test si, si
je 0x494992
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x494996
add eax, 4
add ecx, 4
test si, si
jne 0x494970
xor eax, eax
jmp 0x49499b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4949c6
lea eax, [ebp - 0x20c]
push eax
call edi
lea edx, [ebp - 0x20c]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4949b1
sub edx, esi
sar edx, 1
push edx
jmp 0x494ae0
mov ecx, str.360Safe
mov eax, edx
lea ecx, [ecx]
mov si, word [eax]
cmp si, word [ecx]
jne 0x4949f6
test si, si
je 0x4949f2
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x4949f6
add eax, 4
add ecx, 4
test si, si
jne 0x4949d0
xor eax, eax
jmp 0x4949fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x494a20
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x494a10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494a10
jmp 0x494adb
mov eax, 0x4fb364
mov cx, word [edx]
cmp cx, word [eax]
jne 0x494a4b
test cx, cx
je 0x494a47
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x494a4b
add edx, 4
add eax, 4
test cx, cx
jne 0x494a25
xor eax, eax
jmp 0x494a50
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x494a7d
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494a70
jmp 0x494adb
call edi
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ecx, str.360Safe
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494ab6
test dx, dx
je 0x494ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x494a90
xor eax, eax
jmp 0x494abb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x494af1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x494ad0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494ad0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, 0x543760
push eax
call fcn.00483d00
mov ebx, dword [ebp - 0x418]
pop edi
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x494b53
push eax
lea ecx, [ebp - 0x41c]
call fcn.00483760
lea eax, [ebp - 0x41c]
push eax
push 0x543760
push ebx
call fcn.004930b0
mov esi, dword [ebp - 0x41c]
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x494b69
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
mov eax, dword [0x543760]
add eax, 0xfffffff0
push eax
call fcn.00483b30
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
push 0x543764
call fcn.004c1ef5
add esp, 4
cmp dword [0x543764], 0xffffffff
jne 0x494847
call fcn.004833a0
mov ecx, eax
test ecx, ecx
jne 0x494baa
push 0x80004005
call fcn.00483200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4f77b0
mov dword [0x543760], eax
call fcn.004c1caa
push 0x543764
call fcn.004c1eab
add esp, 8
jmp 0x494847