Function at 0x404d00
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0461
push eax
mov eax, 0x102c
mov dword fs:[0], esp
call fcn.004999f0
push ebx
push esi
push edi
mov esi, ecx
call fcn.00404700
test eax, eax
je 0x404edd
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x3a]
mov word [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
mov ebx, 0x400
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x404ed3
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ed3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x38]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x18]
push ecx
push edx
push eax
push 0x4c712c
push str.http_shellopencommand
push SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x404ed3
mov ecx, dword [0x4b7080]
lea edx, [esp + 0x38]
test edx, edx
mov dword [esp + 0xc], ecx
je 0x404e47
lea eax, [esp + 0x38]
shr eax, 0x10
jne 0x404e07
xor eax, eax
lea ecx, [esp + 0x38]
mov ax, cx
lea ecx, [esp + 0xc]
push eax
call fcn.004068b0
jmp 0x404e47
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x404e47
push esi
lea ecx, [esp + 0x10]
call fcn.00406c50
test eax, eax
je 0x404e47
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x404e47
mov edi, dword [esp + 0xc]
mov edx, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1040], 0
call fcn.00406ea0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push str.360SE.EXE
lea ecx, [esp + 0x14]
call fcn.004062f0
mov edx, dword [0x4b7084]
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
je 0x404eb1
cmp ecx, edx
je 0x404eaa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404eaa
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x405282
cmp ecx, edx
je 0x404ed3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ed3
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, 1
jmp 0x405282
mov ecx, esi
call fcn.00404720
test eax, eax
je 0x40527d
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x83a]
mov word [esp + 0x838], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x838]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push 0
mov ebx, 0x400
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360se6.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x404ed3
lea eax, [esp + 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ed3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x838]
lea edx, [esp + 0x838]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push reloc.WS2_32.dll_accept
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x405142
mov ecx, dword [str.360seURL]
mov eax, dword [0x4b7904]
mov edx, dword [0x4b7900]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4b7908]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], edx
mov dx, word [0x4b790c]
lea ecx, [esp + 0x838]
push eax
push ecx
mov word [esp + 0x3c], dx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x404ed3
mov ecx, 0x1ff
lea edi, [esp + 0x3a]
mov word [esp + 0x38], ax
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x4c712c
push str.360seURL_shellopencommand
push SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x404ed3
mov edx, dword [0x4b7080]
lea eax, [esp + 0x38]
test eax, eax
mov dword [esp + 0xc], edx
je 0x4050a4
lea ecx, [esp + 0x38]
shr ecx, 0x10
jne 0x405064
xor eax, eax
lea edx, [esp + 0x38]
mov ax, dx
lea ecx, [esp + 0xc]
push eax
call fcn.004068b0
jmp 0x4050a4
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4050a4
push esi
lea ecx, [esp + 0x10]
call fcn.00406c50
test eax, eax
je 0x4050a4
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4050a4
mov edi, dword [esp + 0xc]
mov eax, ecx
lea esi, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1040], 1
call fcn.00406ea0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push str.360SE.EXE
lea ecx, [esp + 0x14]
call fcn.004062f0
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
je 0x405116
mov ecx, dword [0x4b7084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x404eaa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404eaa
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x405282
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x404ed3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ed3
mov edx, dword [esp + 0xc]
jmp 0x404ec7
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x838]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push 0x4c712c
push str.http_shellopencommand
push SysReAllocString
call esi
test eax, eax
jne 0x404ed3
mov eax, dword [0x4b7080]
lea ecx, [esp + 0x838]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4051eb
lea edx, [esp + 0x838]
shr edx, 0x10
jne 0x4051a5
xor eax, eax
lea ecx, [esp + 0x838]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004068b0
jmp 0x4051eb
lea edx, [esp + 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4051eb
push esi
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x4051eb
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x4051eb
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x838]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1040], 2
call fcn.00406ea0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
push 0
push str.360SE.EXE
lea ecx, [esp + 0x18]
call fcn.004062f0
mov edx, dword [0x4b7084]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
je 0x40525a
cmp ecx, edx
je 0x404eaa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404eaa
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x405282
cmp ecx, edx
je 0x404ed3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ed3
mov edx, dword [esp + 0x10]
jmp 0x404ec7
mov eax, 2
mov ecx, dword [esp + 0x1038]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1038
ret