Function at 0x402fa0
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 0x4b63ff
mov eax, dword fs:[0]
push eax
sub esp, 0xfd0
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0xfc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f3bd0]
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.00403bd9
mov dword [esp + 0xfe8], ebx
cmp dword [esi + 0x104], ebx
jne 0x4034e2
call fcn.004036ea
call fcn.00403933
call fcn.0040a529
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
lea eax, [esp + 0x14]
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0xfec], 1
call fcn.0043ce97
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, edi
call fcn.0043d4ce
mov eax, dword [esi + 0x118]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x4031c7
push 0x4f9e18
lea ecx, [esp + 0x14]
call fcn.0040284b
push 0x800
lea eax, [esp + 0x38]
push ebx
push eax
mov byte [esp + 0xff4], 2
call fcn.00475570
add esp, 0xc
push 0x2711
lea ecx, [esp + 0x18]
call fcn.00402530
mov ecx, edi
mov byte [esp + 0xfe8], 3
call fcn.0043cc20
test eax, eax
jne 0x40318a
mov ecx, edi
call fcn.0043cc28
push eax
lea ecx, [esp + 0x14]
call fcn.00401c8e
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x403198
xor eax, eax
push 0x1fe
mov word [esp + 0x9c8], ax
lea eax, [esp + 0x9ca]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4d39a4
push str.http:__www.360.cn
mov dword [esp + 0x30], pe_nt_image_headers32
call fcn.00433a8c
lea eax, [esp + 0x9dc]
push eax
call fcn.0047600e
add esp, 0x1c
test eax, eax
jne 0x403152
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4d39a4
push str.http:__www.360safe.com
call fcn.00433a8c
add esp, 0x18
lea eax, [esp + 0x9c4]
push eax
call fcn.0047600e
pop ecx
test eax, eax
jne 0x403177
push dword [esp + 0x14]
lea eax, [esp + 0x9c8]
push eax
call fcn.00477b95
pop ecx
pop ecx
lea eax, [esp + 0x9c4]
push eax
lea ecx, [esp + 0x14]
call fcn.004027b6
jmp 0x403198
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00401c8e
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x118]
call fcn.00401c8e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402870
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0043ccfe
lea ecx, [esi + 0x124]
push eax
mov byte [esp + 0xfec], 4
call fcn.00401c8e
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402870
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.004962c0
lea eax, [esp + 0x834]
lea ecx, [esi + 0x11c]
push eax
call fcn.004027b6
push 0xc8
lea eax, [esp + 0x838]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.004291f0
lea eax, [esp + 0x834]
lea ecx, [esi + 0x120]
push eax
call fcn.004027b6
xor eax, eax
push 0x206
mov word [esp + 0xbc8], ax
lea eax, [esp + 0xbca]
push ebx
push eax
call fcn.00475570
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.00475570
add esp, 0xc
push 0x63
lea eax, [esp + 0x900]
push eax
lea eax, [esp + 0xbcc]
push eax
call fcn.00439e49
add esp, 0xc
lea eax, [esp + 0x8fc]
lea ecx, [esi + 0x128]
push eax
call fcn.004027b6
mov edi, 0x208
push edi
lea eax, [esp + 0xdd0]
push ebx
push eax
mov dword [esp + 0x34], 1
call fcn.00475570
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 0x4d35fc
push 0x4d3608
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40343c
lea eax, [esp + 0xdcc]
push eax
lea ecx, [esp + 0x18]
call fcn.00402530
push str._safemon360tray.exe
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xff4], 5
call fcn.00403a6b
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 0x4033d1
push str.hipsver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403a6b
add esp, 0xc
mov dword [esp + 0xfe8], 7
push dword [eax]
mov dword [esp + 0x14], 3
call edi
test eax, eax
je 0x4033d1
push str.360ver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403a6b
add esp, 0xc
push dword [eax]
mov dword [esp + 0x14], 7
call edi
test eax, eax
jne 0x4033d1
inc eax
jmp 0x4033d3
xor eax, eax
test byte [esp + 0x10], 4
mov dword [esi + 0x110], eax
je 0x4033f1
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0xfffffffb
add ecx, 0xfffffff0
call fcn.00402870
test byte [esp + 0x10], 2
je 0x403409
mov ecx, dword [esp + 0x24]
and dword [esp + 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.00402870
mov dword [esp + 0xfe8], 5
test byte [esp + 0x10], 1
je 0x403427
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402870
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x403442
mov dword [esi + 0x110], ebx
push 0x4f9e18
lea ecx, [esp + 0x14]
call fcn.0040284b
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 + 0x120]
push dword [esi + 0x11c]
push dword [esi + 0x110]
push dword [esi + 0x118]
push dword [esi + 0x128]
push str.http:__s.360.cn_safe_instcomp.htm_soft923ver_spid_ships_dmid_smid2_sw_I64db_I64do_ddver9.0
push eax
call fcn.00403b60
lea edi, [esi + 0x124]
mov eax, dword [edi]
add esp, 0x30
cmp dword [eax - 0xc], ebx
je 0x4034bc
push str.instver
lea ecx, [esp + 0x14]
call fcn.00403b3b
push edi
lea ecx, [esp + 0x14]
call fcn.00403c7e
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x12c]
call fcn.00401c8e
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
mov dword [esi + 0x104], 1
call fcn.00402870
lea ecx, [esp + 0x2c]
call fcn.00403bc2
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.004755ea
mov esp, ebp
pop ebp
ret