Function at 0x401490
Capabilities:
Check for time delay via gettickcount
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [sym.imp.MSVCR80.dll___argc]
mov eax, dword [eax]
cmp eax, 2
je 0x4014e5
cmp eax, 3
je 0x4014e5
cmp eax, 5
je 0x4014e5
lea ecx, [ebp - 0x50]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [sym.imp.MSVCR80.dll___wargv]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
push edi
push str._fromQQ
push eax
lea ecx, [ebp - 0x4c]
call esi
mov edi, dword [sym.imp.Common.dll_bool___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push eax
call edi
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x45], al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
cmp byte [ebp - 0x45], bl
je 0x401528
mov dword [0x41e1c0], ebx
jmp 0x401583
mov ecx, dword [sym.imp.MSVCR80.dll___wargv]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push str._fromTM
push eax
lea ecx, [ebp - 0x4c]
call esi
push eax
call edi
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x45], al
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
cmp byte [ebp - 0x45], bl
je 0x401ae6
push 0x41e1b8
mov ecx, 0x41e1b0
mov dword [0x41e1c0], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
push 0x41e1bc
mov ecx, 0x41e1b4
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
mov ecx, dword [sym.imp.MSVCR80.dll___argc]
mov eax, dword [ecx]
cmp eax, 3
jne 0x4015ca
mov edx, dword [sym.imp.MSVCR80.dll___wargv]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push str._startIM
push ecx
lea ecx, [ebp - 0x4c]
call esi
push eax
call edi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x45], al
call esi
xor edx, edx
cmp byte [ebp - 0x45], bl
setne dl
mov dword [ebp - 0x5c], edx
jmp 0x4016d0
cmp eax, 5
jne 0x4016ca
mov eax, dword [sym.imp.MSVCR80.dll___wargv]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push str._path
push edx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], 1
call esi
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_const__]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
add esp, 8
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x45], al
call edi
cmp byte [ebp - 0x45], bl
je 0x401682
mov dword [ebp - 0x4c], 0x4166a0
mov dword [ebp - 0x10], str.file
mov dword [ebp - 0xc], str.func
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x3c], 0x84
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x4c]
push ecx
push 0x4164dc
lea edx, [ebp - 0x44]
push str.StorageTool
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x50]
call edi
jmp 0x401b5b
mov ecx, dword [sym.imp.MSVCR80.dll___wargv]
mov dword [ebp - 0x54], ebx
mov edx, dword [ecx]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.Common.dll_Ordinal_34]
mov ecx, dword [sym.imp.MSVCR80.dll___wargv]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 8
push 0x20
push 0x7c
push eax
lea ecx, [ebp - 0x4c]
call esi
mov ecx, eax
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_]
push eax
lea ecx, [ebp - 0x50]
call dword [0x41604c]
lea ecx, [ebp - 0x4c]
call edi
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push 1
call fcn.00401260
add esp, 4
test eax, eax
jne 0x401768
mov dword [ebp - 0x4c], 0x41663c
mov dword [ebp - 0x10], str.file
mov dword [ebp - 0xc], str.func
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x3c], 0x95
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x4c]
push edx
push 0x4164dc
lea eax, [ebp - 0x44]
push str.StorageTool
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x50]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
push ecx
push 0x416614
push str.StorageTool
push 3
push str.func
push 0x98
push str.file
call fcn.00402c30
add esp, 0x1c
push ebx
lea edx, [ebp - 0x58]
push edx
push 0x416604
push 0x4165f4
push 0x4165dc
mov dword [ebp - 0x58], ebx
call dword [sym.imp.Common.dll_long_int___stdcall_Util::Com::CreateObjectFromDllFile_wchar_t_const___struct__GUID_const___struct__GUID_const___void____struct_IUnknown__]
test eax, eax
jge 0x4017d9
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4017bf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x50]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x68]
push eax
call fcn.00411d40
push str.platform.tpc
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
add esp, 0x10
push eax
lea ecx, [ebp - 0x4c]
call edi
mov ecx, eax
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
call dword [sym.imp.Common.dll_int___cdecl_Util::CoreCenter::InitPlatform_wchar_t__]
add esp, 4
lea ecx, [ebp - 0x4c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x54]
call esi
call dword [sym.imp.Common.dll_int___cdecl_Util::Boot::InitPlatformCoreConfig_void_]
call dword [sym.imp.Common.dll_int___cdecl_Util::Boot::InitPlatformI18NConfig_void_]
test eax, eax
je 0x4018a4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CFmtString::constructor_void_]
mov esi, dword [sym.imp.Common.dll_public:_int___thiscall_CFmtString::PropertyStr_wchar_t_const___wchar_t_const__]
push 0x41645c
push str.__PNAME
lea ecx, [ebp - 0x2c]
call esi
push 0x416464
push str.__PNAME_V
lea ecx, [ebp - 0x2c]
call esi
push str.QQ2012_Beta
push str.__PNAME_V_TYPE
lea ecx, [ebp - 0x2c]
call esi
push str.QQ2012_Beta1
push str.__PNAME_V_SV
lea ecx, [ebp - 0x2c]
call esi
push 0x4164a8
push str.__EXEFILE
lea ecx, [ebp - 0x2c]
call esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.Common.dll_void___cdecl_TXStringBundle::AddFmtString_class_CFmtString_const__]
add esp, 4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CFmtString::destructor_void_]
call dword [sym.imp.Common.dll_int___cdecl_Util::Boot::InitPlatformFileSystem_void_]
call dword [sym.imp.Common.dll_int___cdecl_Util::Boot::InitPlatformGFConfig_void_]
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, 0x41e1b0
call esi
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
mov dword [0x41e16c], eax
je 0x401a5a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x4c]
push str.Title_MoveStorageHint
push ecx
call fcn.00412980
lea edx, [ebp - 0x54]
push str.StorageTool_CloseQQ
push edx
call fcn.00412980
mov eax, dword [0x41e16c]
add esp, 0x10
cmp eax, ebx
je 0x401918
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e16c], ebx
mov ecx, 0x41e1b0
call esi
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
mov dword [0x41e16c], eax
je 0x401a25
mov dword [ebp - 0x60], 0x4164e4
mov dword [ebp - 0x10], str.file
mov dword [ebp - 0xc], str.func
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x3c], 0xe1
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x60]
push ecx
push 0x4164dc
lea edx, [ebp - 0x44]
push str.StorageTool
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
push ebx
push ebx
push 0x45
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call edi
mov esi, dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov ecx, eax
call esi
push eax
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x60]
call edi
mov ecx, eax
call esi
push eax
push ebx
call dword [sym.imp.AFUtil.dll_int___cdecl_Util::Misc::MessageBoxExW_struct_IGFFrame___wchar_t___wchar_t___unsigned_int__struct_ITXData___struct_ITXData___]
add esp, 0x18
lea ecx, [ebp - 0x60]
mov esi, eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x64]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
cmp esi, 4
jne 0x401a53
mov eax, dword [0x41e16c]
cmp eax, ebx
je 0x401a04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e16c], ebx
mov ecx, 0x41e1b0
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
mov dword [0x41e16c], eax
jne 0x4019a5
xor esi, esi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x54]
call edi
lea ecx, [ebp - 0x4c]
call edi
mov eax, dword [0x41e16c]
cmp eax, ebx
je 0x401a4d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e16c], ebx
cmp esi, ebx
jne 0x401a81
jmp 0x401a60
mov esi, 1
jmp 0x401a27
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x190]
call fcn.00405d30
lea ecx, [ebp - 0x190]
call fcn.004062b0
lea ecx, [ebp - 0x190]
call fcn.00405e60
mov eax, dword [0x41e168]
cmp eax, ebx
je 0x401a97
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41e168], ebx
call dword [sym.imp.Common.dll_void___cdecl_Util::Misc::OnExitCoreCenter_void_]
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x44]
call eax
call dword [sym.imp.Common.dll_void___cdecl_Util::Misc::OnExitWinMain_void_]
cmp dword [ebp - 0x5c], ebx
je 0x401ab8
call fcn.00411dc0
lea ecx, [ebp - 0x68]
call edi
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x401acc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x50]
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x64], 0x4166a0
mov dword [ebp - 0x10], str.file
mov dword [ebp - 0xc], str.func
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x3c], 0x6f
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x64]
push ecx
push 0x4164dc
lea edx, [ebp - 0x44]
push str.StorageTool
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea ecx, [ebp - 0x50]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00412d02
mov esp, ebp
pop ebp
ret 0x10