Function at 0x403066
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b0c8f
mov eax, dword fs:[0]
push eax
sub esp, 0xfd0
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0xfc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed820]
xor eax, esp
push eax
lea eax, [esp + 0xfe0]
mov dword fs:[0], eax
mov esi, ecx
push 1
xor ebx, ebx
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.00403b90
mov dword [esp + 0xfe8], ebx
cmp dword [esi + 0x100], ebx
jne 0x4035a8
call fcn.0040364c
call fcn.00403895
call fcn.0040a4d6
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x18]
call fcn.004025d8
lea eax, [esp + 0x14]
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0xfec], 1
call fcn.0043cbdd
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
mov ecx, edi
call fcn.0043d21c
mov eax, dword [esi + 0x114]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x40328d
push 0x4f39f8
lea ecx, [esp + 0x14]
call fcn.004028e9
push 0x800
lea eax, [esp + 0x38]
push ebx
push eax
mov byte [esp + 0xff4], 2
call fcn.004701a0
add esp, 0xc
push 0x2711
lea ecx, [esp + 0x18]
call fcn.004025d8
mov ecx, edi
mov byte [esp + 0xfe8], 3
call fcn.0043c9a3
test eax, eax
jne 0x403250
mov ecx, edi
call fcn.0043c9ab
push eax
lea ecx, [esp + 0x14]
call fcn.00401d9d
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x40325e
xor eax, eax
push 0x1fe
mov word [esp + 0x9c8], ax
lea eax, [esp + 0x9ca]
push ebx
push eax
call fcn.004701a0
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4cd994
push str.http:__www.360.cn
mov dword [esp + 0x30], 0x100
call fcn.00433826
lea eax, [esp + 0x9dc]
push eax
call fcn.00470c3e
add esp, 0x1c
test eax, eax
jne 0x403218
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4cd994
push str.http:__www.360safe.com
call fcn.00433826
add esp, 0x18
lea eax, [esp + 0x9c4]
push eax
call fcn.00470c3e
pop ecx
test eax, eax
jne 0x40323d
push dword [esp + 0x14]
lea eax, [esp + 0x9c8]
push eax
call fcn.004727c6
pop ecx
pop ecx
lea eax, [esp + 0x9c4]
push eax
lea ecx, [esp + 0x14]
call fcn.0040285e
jmp 0x40325e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00401d9d
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x114]
call fcn.00401d9d
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0043ca44
lea ecx, [esi + 0x120]
push eax
mov byte [esp + 0xfec], 4
call fcn.00401d9d
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040290e
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.00490ef0
lea eax, [esp + 0x834]
lea ecx, [esi + 0x118]
push eax
call fcn.0040285e
push 0xc8
lea eax, [esp + 0x838]
push ebx
push eax
call fcn.004701a0
add esp, 0xc
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.00428ed0
lea eax, [esp + 0x834]
lea ecx, [esi + 0x11c]
push eax
call fcn.0040285e
xor eax, eax
push 0x206
mov word [esp + 0xbc8], ax
lea eax, [esp + 0xbca]
push ebx
push eax
call fcn.004701a0
add esp, 0xc
push 0x103
lea eax, [esp + 0xbc8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0xc6
mov word [esp + 0x900], ax
lea eax, [esp + 0x902]
push ebx
push eax
call fcn.004701a0
add esp, 0xc
push 0x63
lea eax, [esp + 0x900]
push eax
lea eax, [esp + 0xbcc]
push eax
call fcn.0040d04b
add esp, 0xc
lea eax, [esp + 0x8fc]
lea ecx, [esi + 0x124]
push eax
call fcn.0040285e
mov edi, 0x208
push edi
lea eax, [esp + 0xdd0]
push ebx
push eax
mov dword [esp + 0x34], 1
call fcn.004701a0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xdd0]
push eax
mov dword [esp + 0x28], edi
lea eax, [esp + 0x30]
push eax
push 0x4cd5ec
push 0x4cd5f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403502
lea eax, [esp + 0xdcc]
push eax
lea ecx, [esp + 0x18]
call fcn.004025d8
push str._safemon360tray.exe
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xff4], 5
call fcn.004039cd
add esp, 0xc
mov byte [esp + 0xfe8], 6
push dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x14], 1
call edi
test eax, eax
je 0x403497
push str.hipsver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004039cd
add esp, 0xc
mov dword [esp + 0xfe8], 7
push dword [eax]
mov dword [esp + 0x14], 3
call edi
test eax, eax
je 0x403497
push str.360ver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004039cd
add esp, 0xc
push dword [eax]
mov dword [esp + 0x14], 7
call edi
test eax, eax
jne 0x403497
inc eax
jmp 0x403499
xor eax, eax
test byte [esp + 0x10], 4
mov dword [esi + 0x10c], eax
je 0x4034b7
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0xfffffffb
add ecx, 0xfffffff0
call fcn.0040290e
test byte [esp + 0x10], 2
je 0x4034cf
mov ecx, dword [esp + 0x24]
and dword [esp + 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.0040290e
mov dword [esp + 0xfe8], 5
test byte [esp + 0x10], 1
je 0x4034ed
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040290e
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
jmp 0x403508
mov dword [esi + 0x10c], ebx
push 0x4f39f8
lea ecx, [esp + 0x14]
call fcn.004028e9
mov byte [esp + 0xfe8], 8
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x11c]
push dword [esi + 0x118]
push dword [esi + 0x10c]
push dword [esi + 0x114]
push dword [esi + 0x124]
push str.http:__s.360.cn_safe_instcomp.htm_soft923ver_spid_ships_dmid_smid2_sw_I64db_I64do_ddver9.0
push eax
call fcn.00403ac2
lea edi, [esi + 0x120]
mov eax, dword [edi]
add esp, 0x30
cmp dword [eax - 0xc], ebx
je 0x403582
push str.instver
lea ecx, [esp + 0x14]
call fcn.00403a9d
push edi
lea ecx, [esp + 0x14]
call fcn.00403c35
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x128]
call fcn.00401d9d
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
mov dword [esi + 0x100], 1
call fcn.0040290e
lea ecx, [esp + 0x2c]
call fcn.00403b79
mov ecx, dword [esp + 0xfe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfc8]
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret