Function at 0x412f40
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x5070bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x1e4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1f4]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
cmp ecx, ebx
je 0x413bf1
lea eax, [esp + 0x18]
push eax
call fcn.00417170
mov dword [esp + 0x1ec], ebx
mov edx, dword [esp + 0x18]
push 3
lea ecx, [esp + 0xa0]
push edx
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], ecx
call fcn.004180d0
sub esp, 0x104
mov edi, esp
mov byte [esp + 0x2f0], 1
mov ecx, 0x41
lea esi, [esp + 0x19c]
push str.ParseJsonData__s
rep movsd dword es:[edi], dword [esi]
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
mov byte [esp + 0x2f4], bl
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + 0x1a4]
add esp, 0x108
cmp eax, ecx
je 0x41301e
push eax
call fcn.004cc15e
add esp, 4
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], ebx
jne 0x413053
cmp dword [ebp + 0x168], ebx
je 0x413bc6
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x10]
push str.jsonerror
push 0x51609c
push 5
push eax
push ecx
mov ecx, ebp
call fcn.00415960
jmp 0x413bc6
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x1ec], 2
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x1ec], 3
mov edx, dword [0x54d210]
mov eax, dword [edx + 0xc]
mov ecx, 0x54d210
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
and dword [esp + 0x34], 0xfffffe00
mov dword [esp + 0x38], 0
mov byte [esp + 0x1ec], 6
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
call fcn.00465d06
test eax, eax
je 0x413b49
mov al, byte [esp + 0x34]
test al, al
je 0x4130e5
cmp al, 7
jne 0x413b49
push str.condition_tpi
lea ecx, [esp + 0x30]
push ecx
call fcn.0044f770
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.00465fe3
mov edx, dword [esp + 0x20]
cmp dword [edx - 0xc], 0
jne 0x413167
cmp dword [ebp + 0x168], 0
je 0x41312d
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x10]
push str.tpisrciptempty
push 0x5160d0
push 5
push eax
push ecx
mov ecx, ebp
call fcn.00415960
lea eax, [esp + 0x2c]
mov byte [esp + 0x1ec], 4
call fcn.0044ed30
lea eax, [esp + 0x28]
call fcn.0042afc0
lea eax, [esp + 0x1c]
call fcn.0042afc0
lea eax, [esp + 0x20]
call fcn.0042afc0
lea eax, [esp + 0x18]
call fcn.0042afc0
jmp 0x413bf1
push str.type
lea eax, [esp + 0x30]
push eax
call fcn.0044f770
mov edx, ebp
mov ecx, eax
call fcn.00465e96
push str.guid
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebp + 4]
call fcn.0044f770
mov edx, esi
mov ecx, eax
call fcn.004660c0
push str.product
lea edx, [esp + 0x30]
push edx
lea esi, [ebp + 8]
call fcn.0044f770
mov edx, esi
mov ecx, eax
call fcn.004660c0
push str.combo
lea eax, [esp + 0x30]
push eax
lea esi, [ebp + 0xc]
call fcn.0044f770
mov edx, esi
mov ecx, eax
call fcn.004660c0
push str.promotion_id
lea ecx, [esp + 0x30]
push ecx
lea ebx, [ebp + 0x10]
call fcn.0044f770
mov edx, ebx
mov ecx, eax
call fcn.004660c0
push 0x516104
lea edx, [esp + 0x30]
push edx
lea esi, [ebp + 0x1c]
call fcn.0044f770
mov edx, esi
mov ecx, eax
call fcn.004660c0
push str.ext_msg
lea eax, [esp + 0x30]
push eax
call fcn.0044f770
push eax
lea ecx, [esp + 0x70]
call fcn.0044ebc0
mov byte [esp + 0x1ec], 7
cmp byte [esp + 0x74], 0
je 0x41337c
lea eax, [esp + 0x6c]
call fcn.0044fbe0
test al, al
je 0x41337c
mov dword [esp + method.Json::FastWriter.virtual_0], vtable.Json::FastWriter.0
mov dword [esp + 0x1d4], 0xf
mov dword [esp + 0x1d0], 0
mov byte [esp + 0x1c0], 0
mov byte [esp + 0x1d8], 0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x1c0]
mov byte [esp + 0x1f4], 8
call fcn.00452a70
mov esi, 0x10
mov byte [esp + 0x1ec], 9
cmp dword [eax + 0x18], esi
jb 0x4132ac
mov eax, dword [eax + 4]
jmp 0x4132af
add eax, 4
push eax
lea ecx, [esp + 0x1a0]
call fcn.00401110
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1ec], 0xb
call fcn.004018a0
mov edx, dword [esp + 0x1a0]
cmp dword [esp + 0x1b4], esi
jae 0x4132e4
lea edx, [esp + 0x1a0]
mov ecx, dword [esp + 0x1b0]
lea eax, [esp + 0x24]
push eax
call fcn.0040f130
add esp, 4
mov byte [esp + 0x1ec], 0xc
mov edx, dword [esp + 0x24]
push 3
lea ecx, [esp + 0xa0]
push edx
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], ecx
call fcn.004180d0
mov byte [esp + 0x1ec], 0xd
mov edx, dword [esp + 0x98]
lea edi, [ebp + 0x14]
call fcn.004085a0
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x413353
push eax
call fcn.004cc15e
add esp, 4
lea eax, [esp + 0x24]
call fcn.0042afc0
lea ecx, [esp + 0x19c]
call fcn.004018a0
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x1ec], 7
call fcn.0040f280
push str.360speedld_ver
lea edx, [esp + 0x30]
push edx
lea edi, [ebp + 0x18]
call fcn.0044f770
mov edx, edi
mov ecx, eax
call fcn.004660c0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4133a9
mov edx, str.3.1.2.2485
call fcn.004085a0
push str.interval
lea ecx, [esp + 0x30]
xor esi, esi
push ecx
mov dword [esp + 0x2c], esi
call fcn.0044f770
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.00465e96
mov eax, dword [esp + 0x24]
cmp eax, esi
jbe 0x4133d4
mov dword [ebp + 0x20], eax
push str.waittime
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x2c], esi
call fcn.0044f770
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.00465e96
mov eax, dword [esp + 0x24]
cmp eax, esi
jbe 0x413400
mov dword [ebp + 0x1b0], eax
push str.weak
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x2c], esi
call fcn.0044f770
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.00465e96
mov ecx, dword [ebp + 0x1b0]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 4]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
push str.promotion_id:_s__msgid:_s__product:_s__combo:_s__interval:_d__waittime:_d
call fcn.00401f50
mov edx, str.script_MessagePopup
mov ecx, eax
call fcn.00401fd0
add esp, 0x1c
cmp dword [ebp], esi
jne 0x41345d
mov dword [ebp], 2
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], esi
jne 0x413472
mov edx, str.softmgr
lea edi, [ebp + 8]
call fcn.004085a0
mov edx, dword [ebp + 0xc]
cmp dword [edx - 0xc], 0
jne 0x413488
mov edx, str.360newstip
lea edi, [ebp + 0xc]
call fcn.004085a0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x41349c
mov edx, str.default
mov edi, ebx
call fcn.004085a0
mov esi, ebp
call fcn.00413c20
test eax, eax
je 0x41353a
mov edx, dword [ebp + 0x30]
mov eax, dword [edx + 0xc]
lea edi, [ebp + 0x30]
push str.BITjs.system.bits_OS__SPjs.system.ver_buildjs.string.rfind_OS___.___if_build____1__r_nthen_r_nOSjs.string.substr_OS_0_build___r_nend_r_n
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 0xc]
push eax
mov ecx, edi
call edx
lea esi, [esp + 0x50]
call fcn.0040e9e0
mov byte [esp + 0x1ec], 0xe
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, esi
push ecx
push str.result_tpi
mov ecx, edi
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x413550
call fcn.0040ef50
test al, al
jne 0x413550
cmp dword [ebp + 0x168], 0
je 0x413521
push str.result_tpi_fail
push 0x5162b4
mov eax, dword [ebp + 4]
mov ebx, dword [ebx]
push 5
push eax
push ebx
mov ecx, ebp
call fcn.00415960
mov byte [esp + 0x1ec], 7
mov dword [esp + 0x50], vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x50]
call fcn.0040ea60
lea eax, [esp + 0x6c]
mov byte [esp + 0x1ec], 6
call fcn.0044ed30
jmp 0x41312d
push str.condition
lea eax, [esp + 0x30]
push eax
call fcn.0044f770
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.00465fe3
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jne 0x413589
cmp dword [ebp + 0x168], 0
je 0x413521
push str.condition_script_empty
push 0x5162f4
jmp 0x413511
push str.js.soft.ver_
push str.SOFTVER_
lea edx, [esp + 0x24]
push edx
call fcn.00417250
push str.js.soft.exist_
push str.SOFT_
lea eax, [esp + 0x24]
push eax
call fcn.00417250
mov edx, dword [edi]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 0xc]
push eax
mov ecx, edi
call edx
lea esi, [esp + 0x60]
call fcn.0040e9e0
mov byte [esp + 0x1ec], 0xf
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, esi
push ecx
push str.result
mov ecx, edi
call edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x413640
call fcn.0040ef50
test al, al
jne 0x413640
cmp dword [ebp + 0x168], 0
je 0x413615
mov eax, dword [ebp + 4]
mov ebx, dword [ebx]
push str.result_fail
push 0x51634c
push 5
push eax
push ebx
mov ecx, ebp
call fcn.00415960
mov byte [esp + 0x1ec], 0xe
mov esi, vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
call fcn.0040ea60
mov byte [esp + 0x1ec], 7
mov dword [esp + 0x50], esi
jmp 0x413531
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
mov byte [esp + 0x1ec], 0x10
test esi, esi
je 0x413672
mov ebx, dword [esp + 0x18]
mov dword [esi], 0
call fcn.0040c040
jmp 0x413674
xor esi, esi
push esi
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x11
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__cmd__
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ebx, vtable.os::script_shared_ptr_class__variant__.0
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
mov byte [esp + 0x1ec], 0x12
test esi, esi
je 0x413721
mov eax, dword [ebp + 0x1c]
push 3
lea ecx, [esp + 0xa0]
push eax
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], ecx
call fcn.00418470
mov byte [esp + 0x1ec], 0x13
mov ebx, dword [esp + 0x98]
mov eax, esi
mov dword [esp + 0x5c], 1
mov dword [esi], 0
call fcn.0040c040
mov ebx, vtable.os::script_shared_ptr_class__variant__.0
jmp 0x413723
xor esi, esi
push esi
lea esi, [esp + 0x48]
mov dword [esp + 0x1f0], 0x14
call fcn.0040ec70
mov dword [esp + 0x1ec], 0x15
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str._pop_id
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0x14
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
mov dword [esp + 0x1ec], 0xf
test byte [esp + 0x5c], 1
je 0x413792
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x413792
push eax
call fcn.004cc15e
add esp, 4
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x40], ecx
mov byte [esp + 0x1ec], 0x16
test ecx, ecx
je 0x4137c0
mov eax, dword [ebp + 0x1b4]
call fcn.0040c000
jmp 0x4137c2
xor eax, eax
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x17
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__force_pop
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
test esi, esi
je 0x41385f
push 0x54cfe0
push 0x3c
call fcn.004cba2a
add esp, 8
mov dword [esp + 0x5c], eax
mov byte [esp + 0x1ec], 0x19
test eax, eax
je 0x413852
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.0047395e
mov dword [esi + 8], eax
mov dword [esi], 5
jmp 0x413861
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 5
jmp 0x413861
xor esi, esi
push esi
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x1a
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__fullcmd__
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x40], ecx
xor eax, eax
mov byte [esp + 0x1ec], 0x1b
test ecx, ecx
je 0x4138c5
call fcn.0040c000
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x1c
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__debug__
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov ecx, eax
add esp, 8
mov dword [esp + 0x40], ecx
mov byte [esp + 0x1ec], 0x1d
test ecx, ecx
je 0x41392e
mov eax, dword [0x548990]
call fcn.0041a730
jmp 0x413930
xor eax, eax
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x1e
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__safetype__
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x54cfe0
push 0x10
call fcn.004cba2a
mov esi, eax
add esp, 8
mov dword [esp + 0x40], esi
mov byte [esp + 0x1ec], 0x1f
test esi, esi
je 0x41399b
call fcn.00402cd0
mov ecx, esi
call fcn.0040c000
jmp 0x41399d
xor eax, eax
push eax
lea esi, [esp + 0x48]
mov byte [esp + 0x1f0], 0xf
call fcn.0040ec70
mov byte [esp + 0x1ec], 0x20
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x38]
push str.__safelite__
mov ecx, edi
call eax
mov byte [esp + 0x1ec], 0xf
mov ecx, esi
mov dword [esp + 0x44], ebx
call fcn.0040ea60
push 0x515b28
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebp + 0x2c]
call fcn.0044f770
mov edx, esi
mov ecx, eax
call fcn.004660c0
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
je 0x413b23
push 0x51638c
push 0x516390
push esi
call fcn.00417530
cmp dword [esp + 0x24], 0
je 0x413ad2
push str.Q360.Mutex.WeakPush
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp + 0x1d4], eax
test eax, eax
je 0x413a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413a58
mov eax, dword [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x1d4], 0
mov byte [esp + 0x1ec], 0xe
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
call fcn.0040ea60
mov byte [esp + 0x1ec], 7
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
call fcn.0040ea60
lea eax, [esp + 0x6c]
mov byte [esp + 0x1ec], 6
call fcn.0044ed30
lea eax, [esp + 0x2c]
mov byte [esp + 0x1ec], 4
call fcn.0044ed30
lea eax, [esp + 0x28]
call fcn.0042afc0
lea eax, [esp + 0x1c]
call fcn.0042afc0
lea eax, [esp + 0x20]
call fcn.0042afc0
lea eax, [esp + 0x18]
call fcn.0042afc0
mov eax, 1
jmp 0x413bf3
push str._newsld_svc.bubble
push str.MsgSrvPushTipClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x413a58
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413a58
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413a58
push 0x5163e8
call fcn.00401f50
mov edx, str.MultiTip
mov ecx, eax
call fcn.00401fd0
add esp, 4
mov byte [esp + 0x1ec], 0xe
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
call fcn.0040ea60
mov byte [esp + 0x1ec], 7
mov dword [esp + 0x50], ebx
jmp 0x413531
lea eax, [esp + 0x2c]
mov byte [esp + 0x1ec], 4
call fcn.0044ed30
lea eax, [esi - 0x10]
mov byte [esp + 0x1ec], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1ec], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ba2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x1ec], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1ec], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413bf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004cb38b
add esp, 0x1dc
ret 4