Function at 0x403122
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 0x4b586c
mov eax, dword fs:[0]
push eax
sub esp, 0xfd0
mov eax, dword [0x4f2be0]
xor eax, esp
mov dword [esp + 0xfc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4f2be0]
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.00403bf7
mov dword [esp + 0xfe8], ebx
cmp dword [esi + 0x104], ebx
jne 0x403664
call fcn.00403708
call fcn.00403951
call fcn.0040a544
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x18]
call fcn.00402675
lea eax, [esp + 0x14]
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0xfec], 1
call fcn.0043cd64
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, edi
call fcn.0043d39b
mov eax, dword [esi + 0x118]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x403349
push 0x4f8ce0
lea ecx, [esp + 0x14]
call fcn.004029af
push 0x800
lea eax, [esp + 0x38]
push ebx
push eax
mov byte [esp + 0xff4], 2
call fcn.00474a10
add esp, 0xc
push 0x2711
lea ecx, [esp + 0x18]
call fcn.00402675
mov ecx, edi
mov byte [esp + 0xfe8], 3
call fcn.0043caed
test eax, eax
jne 0x40330c
mov ecx, edi
call fcn.0043caf5
push eax
lea ecx, [esp + 0x14]
call fcn.00401df2
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x40331a
xor eax, eax
push 0x1fe
mov word [esp + 0x9c8], ax
lea eax, [esp + 0x9ca]
push ebx
push eax
call fcn.00474a10
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4d28c4
push str.http:__www.360.cn
mov dword [esp + 0x30], pe_nt_image_headers32
call fcn.0043397a
lea eax, [esp + 0x9dc]
push eax
call fcn.004754ae
add esp, 0x1c
test eax, eax
jne 0x4032d4
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x9d0]
push eax
push 0x4d28c4
push str.http:__www.360safe.com
call fcn.0043397a
add esp, 0x18
lea eax, [esp + 0x9c4]
push eax
call fcn.004754ae
pop ecx
test eax, eax
jne 0x4032f9
push dword [esp + 0x14]
lea eax, [esp + 0x9c8]
push eax
call fcn.00477016
pop ecx
pop ecx
lea eax, [esp + 0x9c4]
push eax
lea ecx, [esp + 0x14]
call fcn.004028fb
jmp 0x40331a
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00401df2
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x118]
call fcn.00401df2
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.004029d4
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0043cbcb
lea ecx, [esi + 0x124]
push eax
mov byte [esp + 0xfec], 4
call fcn.00401df2
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004029d4
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.004957c0
lea eax, [esp + 0x834]
lea ecx, [esi + 0x11c]
push eax
call fcn.004028fb
push 0xc8
lea eax, [esp + 0x838]
push ebx
push eax
call fcn.00474a10
add esp, 0xc
push 0x64
lea eax, [esp + 0x838]
push eax
call fcn.00429280
lea eax, [esp + 0x834]
lea ecx, [esi + 0x120]
push eax
call fcn.004028fb
xor eax, eax
push 0x206
mov word [esp + 0xbc8], ax
lea eax, [esp + 0xbca]
push ebx
push eax
call fcn.00474a10
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.00474a10
add esp, 0xc
push 0x63
lea eax, [esp + 0x900]
push eax
lea eax, [esp + 0xbcc]
push eax
call fcn.0040d0b6
add esp, 0xc
lea eax, [esp + 0x8fc]
lea ecx, [esi + 0x128]
push eax
call fcn.004028fb
mov edi, 0x208
push edi
lea eax, [esp + 0xdd0]
push ebx
push eax
mov dword [esp + 0x34], 1
call fcn.00474a10
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 0x4d251c
push 0x4d2528
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4035be
lea eax, [esp + 0xdcc]
push eax
lea ecx, [esp + 0x18]
call fcn.00402675
push str._safemon360tray.exe
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xff4], 5
call fcn.00403a89
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 0x403553
push str.hipsver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00403a89
add esp, 0xc
mov dword [esp + 0xfe8], 7
push dword [eax]
mov dword [esp + 0x14], 3
call edi
test eax, eax
je 0x403553
push str.360ver.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403a89
add esp, 0xc
push dword [eax]
mov dword [esp + 0x14], 7
call edi
test eax, eax
jne 0x403553
inc eax
jmp 0x403555
xor eax, eax
test byte [esp + 0x10], 4
mov dword [esi + 0x110], eax
je 0x403573
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0xfffffffb
add ecx, 0xfffffff0
call fcn.004029d4
test byte [esp + 0x10], 2
je 0x40358b
mov ecx, dword [esp + 0x24]
and dword [esp + 0x10], 0xfffffffd
add ecx, 0xfffffff0
call fcn.004029d4
mov dword [esp + 0xfe8], 5
test byte [esp + 0x10], 1
je 0x4035a9
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.004029d4
mov byte [esp + 0xfe8], bl
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
jmp 0x4035c4
mov dword [esi + 0x110], ebx
push 0x4f8ce0
lea ecx, [esp + 0x14]
call fcn.004029af
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.00403b7e
lea edi, [esi + 0x124]
mov eax, dword [edi]
add esp, 0x30
cmp dword [eax - 0xc], ebx
je 0x40363e
push str.instver
lea ecx, [esp + 0x14]
call fcn.00403b59
push edi
lea ecx, [esp + 0x14]
call fcn.00403c9c
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x12c]
call fcn.00401df2
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
mov dword [esi + 0x104], 1
call fcn.004029d4
lea ecx, [esp + 0x2c]
call fcn.00403be0
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.00474a8a
mov esp, ebp
pop ebp
ret