Function at 0x4176c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x428], ecx
push esi
push edi
mov ecx, dword [eax]
mov eax, dword [0x559344]
cmp eax, dword [ecx + 4]
jg 0x417a0e
cmp dword [0x5531ac], 0
jne 0x417991
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004c05c0
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
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 0x4177b1
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 0x206
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Path
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417790
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, 0x55319c
call fcn.00403e30
cmp dword [0x5531ac], 0
jne 0x417991
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c05c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
test edx, edx
je 0x417991
mov ecx, str.SoftMgr
mov si, word [eax]
cmp si, word [ecx]
jne 0x417839
test si, si
je 0x417835
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x417839
add eax, 4
add ecx, 4
test si, si
jne 0x417813
xor eax, eax
jmp 0x41783e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x417864
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417854
jmp 0x41797b
mov ecx, str.360Safe
mov eax, edx
nop dword [eax + eax]
mov si, word [eax]
cmp si, word [ecx]
jne 0x417896
test si, si
je 0x417892
mov si, word [eax + 2]
cmp si, word [ecx + 2]
jne 0x417896
add eax, 4
add ecx, 4
test si, si
jne 0x417870
xor eax, eax
jmp 0x41789b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4178c0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4178b0
jmp 0x41797b
mov eax, 0x506ec0
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4178eb
test cx, cx
je 0x4178e7
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4178eb
add edx, 4
add eax, 4
test cx, cx
jne 0x4178c5
xor eax, eax
jmp 0x4178f0
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x210]
push eax
jne 0x41791d
call edi
lea eax, [ebp - 0x210]
push eax
call edi
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417910
jmp 0x41797b
call edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, str.360Safe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417957
test dx, dx
je 0x417953
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417957
add eax, 4
add ecx, 4
test dx, dx
jne 0x417931
xor eax, eax
jmp 0x41795c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x417991
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417970
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, 0x55319c
call fcn.00403e30
push str.UtilsDesktopRestDesktopRest.exe
push 0x5010bc
mov edx, 0x55319c
lea ecx, [ebp - 0x440]
call fcn.004048c0
mov esi, dword [ebp - 0x428]
add esp, 4
mov edx, eax
mov ecx, esi
call fcn.00404850
mov edx, dword [ebp - 0x42c]
add esp, 4
cmp edx, 8
jb 0x4179fc
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4179f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417a44
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
push 0x559344
call fcn.004be1ad
add esp, 4
cmp dword [0x559344], 0xffffffff
jne 0x4176f4
push 0x4e67d0
call fcn.004bdff8
push 0x559344
call fcn.004be163
add esp, 8
jmp 0x4176f4
call fcn.004c8da3
int3