Function at 0x406970
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x425960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov eax, dword [0x4309b0]
push ebx
push ebp
push esi
push edi
push section.share
mov dword [esp + 0xdc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 5
jg 0x407231
call fcn.00412dc0
call fcn.00406900
call fcn.004139b0
push 0x4273a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00412dc0
push eax
push str.actBeginMain_time_u
push 0x30
call fcn.00412c70
add esp, 0xc
push str.hao123_client
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x431d54], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x4277fc
push esi
call fcn.00419b65
add esp, 8
test eax, eax
mov ebx, 3
je 0x406a1e
mov edi, 2
jmp 0x406a96
push str.install
push esi
call fcn.00419b65
add esp, 8
test eax, eax
je 0x406a37
mov edi, 1
jmp 0x406a96
push str.first_exec_from_inst
push esi
call fcn.00419b65
add esp, 8
test eax, eax
je 0x406a4d
mov edi, ebx
jmp 0x406a96
push 0x427810
push esi
call fcn.00419b65
add esp, 8
test eax, eax
je 0x406a66
mov edi, 4
jmp 0x406a96
push str.hint
push esi
call fcn.00419b65
add esp, 8
test eax, eax
je 0x406a7f
mov edi, 5
jmp 0x406a96
push str.check_update_from_inst
push esi
call fcn.00419b65
add esp, 8
test eax, eax
je 0x406a96
mov edi, 6
push edi
push str.CommandLine_Code:__d
push 0x30
call fcn.00412c70
add esp, 0xc
call fcn.004057d0
mov ebp, 1
mov ecx, 0x431d6c
mov dword [esp + 0x18], ebp
call fcn.00408a20
test eax, eax
jne 0x406ac8
mov dword [esp + 0x18], eax
mov ebp, eax
cmp edi, 2
jne 0x406b3d
push 0
push 0x24
push 0x4277b0
push str._fT
push 0
call dword [0x431d68]
cmp eax, 6
jne 0x40722c
mov eax, dword [0x431d54]
push 0
push 0
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x12
mov dword [esp + 0x28], 8
call dword [sym.imp.USER32.dll_BroadcastSystemMessageW]
mov ecx, 0x431d6c
call fcn.00409a00
mov ecx, 0x431d6c
call fcn.00408220
call fcn.00413120
call fcn.004131a0
call fcn.00413210
call fcn.004134d0
call fcn.00413310
jmp 0x40722c
cmp edi, 6
je 0x406b4f
cmp edi, 1
je 0x406b4f
test edi, edi
jne 0x406d48
mov ecx, 0x431d6c
call fcn.00409b40
test eax, eax
jne 0x406c40
push str.act__CheckInstalled__result:no
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.00408250
test eax, eax
jne 0x406b8d
push str.act__CopyToAppData__failed
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.004088b0
test eax, eax
jne 0x406baa
push str.act__CreateDeskTopShortcut__failed
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.004088d0
test eax, eax
jne 0x406bc7
push str.act__CreateStartMenuShortCut__failed
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.00408940
test eax, eax
jne 0x406be4
push str.act__CreateQuickLaunchShortCut__failed
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.00409590
test eax, eax
jne 0x406c01
push str.act__SetRegUninstallInfo__failed
push 0x30
call fcn.00412c70
add esp, 8
mov ecx, 0x431d6c
call fcn.00409820
test ebp, ebp
jne 0x406c1e
call fcn.00413120
call fcn.004131a0
call fcn.00413210
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
call fcn.00413380
add esp, 4
test eax, eax
jne 0x406c40
push eax
call fcn.00413410
add esp, 4
cmp edi, 6
jne 0x406d48
lea ecx, [esp + 0x7c]
call fcn.0040b2c0
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe4], 0
call fcn.0040dfd0
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x432844]
mov ecx, 0x432844
mov byte [esp + 0xe4], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xe8], 2
call fcn.00413b30
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405400
add esp, 8
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xd0]
call fcn.00404070
push 2
push ebx
push 0
push 0
lea eax, [esp + 0x8c]
push 0x431d6c
push eax
call fcn.00404a10
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0xe4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xe4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe4], 0xffffffff
call fcn.0040b0c0
jmp 0x407146
cmp edi, ebx
jne 0x406e78
lea eax, [esp + 0x14]
push eax
xor esi, esi
call fcn.00413280
add esp, 4
test eax, eax
je 0x406d71
cmp dword [esp + 0x14], 1
jne 0x406d71
mov esi, 2
jmp 0x406d7a
test ebp, ebp
jne 0x406d7a
mov esi, 1
lea ecx, [esp + 0x7c]
call fcn.0040b2c0
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe4], ebx
call fcn.0040dfd0
mov edx, dword [0x432844]
mov ecx, 0x432844
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x432844]
mov ecx, 0x432844
mov byte [esp + 0xe4], 4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0xe8], 5
call fcn.00413b30
lea edx, [esp + 0x20]
push edx
call fcn.00405400
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xd0]
call fcn.00404070
push 1
push esi
push 0
push 0
lea ecx, [esp + 0x8c]
push 0x431d6c
push ecx
call fcn.00404a10
add esp, 0x18
test eax, eax
jne 0x406e19
mov edi, 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xe4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xe4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe4], 0xffffffff
call fcn.0040b0c0
cmp edi, 4
jne 0x406ea2
mov ecx, 0x431d6c
call fcn.00409eb0
push 0
push 0x40
push 0x4277b0
push 0x4277bc
push 0
call dword [0x431d68]
jmp 0x40722c
test edi, edi
jne 0x40713d
call fcn.00412dc0
push eax
push str.actBeforeInit_time_u
push 0x30
call fcn.00412c70
add esp, 0xc
lea ecx, [esp + 0x7c]
call fcn.0040b2c0
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xe8], 6
call fcn.00411160
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe4], 7
call fcn.0040dfd0
mov esi, dword [esp + 0xd4]
call fcn.00412dc0
push eax
push str.actAfterInit_time_u
push 0x30
call fcn.00412c70
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.00410860
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x80]
call fcn.00403ea0
mov edx, dword [esp + 0x94]
mov eax, dword [eax]
mov ecx, 8
mov byte [esp + 0xe4], cl
cmp edx, ecx
mov ecx, dword [esp + 0x80]
jae 0x406f4f
lea ecx, [esp + 0x80]
push eax
push ecx
push esi
call fcn.00412dc0
push eax
push str.actBeforeNavi_time_u_bUseDefault_d_default_s_iepath_s
push 0x30
call fcn.00412c70
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0xe4], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406f8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x432844]
mov ecx, 0x432844
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x432844]
mov ecx, 0x432844
mov byte [esp + 0xe4], 9
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0xe8], 0xa
call fcn.00413b30
lea ecx, [esp + 0x20]
push ecx
call fcn.00405400
add esp, 8
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xd0]
call fcn.00404070
mov edi, dword [esp + 0x1c]
push edi
push str.actHao123_URL_time_s
push 0x30
call fcn.00412c70
push esi
push edi
call fcn.00413f20
mov esi, eax
add esp, 0x14
push esi
call fcn.00412dc0
push eax
push str.actAfterNavi_time_u_nNavi_d
push 0x30
call fcn.00412c70
add esp, 0xc
lea ebx, [edi - 0x10]
mov dword [esp + 0x24], esp
mov ebp, esp
push ebx
mov dword [esp + 0x1c], 0
call fcn.00403570
add eax, 0x10
add esp, 4
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00405190
call fcn.00412dc0
push eax
push str.actAfterTrack_time_u
push 0x30
call fcn.00412c70
lea eax, [esp + 0x40]
push eax
xor edi, edi
call fcn.00413280
add esp, 0x24
test eax, eax
je 0x40708c
cmp dword [esp + 0x20], 1
jne 0x40708c
mov edi, 2
jmp 0x407099
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407099
mov edi, 1
call fcn.00413490
mov ecx, dword [esp + 0x14]
push 0
push edi
push ecx
push esi
lea edx, [esp + 0x8c]
push 0x431d6c
push edx
call fcn.00404a10
call fcn.00412dc0
push eax
push str.actAfterUpdateSelf_time_u
push 0x30
call fcn.00412c70
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x24
mov byte [esp + 0xe4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0xe4], 7
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407113
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
lea ecx, [esp + 0x40]
mov byte [esp + 0xe4], 6
call fcn.00410b20
lea ecx, [esp + 0x7c]
mov dword [esp + 0xe4], 0xffffffff
call fcn.0040b0c0
jmp 0x40722c
cmp edi, 5
jne 0x40722c
call fcn.00402ab0
test eax, eax
je 0x40722c
mov esi, dword [esp + 0xec]
xor ebx, ebx
push str.User32.DLL
mov dword [0x43195c], esi
mov dword [0x431958], ebx
mov dword [0x431954], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x431a28
push 0x67
push esi
mov dword [0x431954], eax
call edi
push 0x64
push 0x431960
push 0x6e
push esi
call edi
push esi
call fcn.00403680
mov eax, dword [esp + 0xfc]
push eax
push esi
call fcn.00402cb0
add esp, 0xc
test eax, eax
je 0x40723c
push 0x6e
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x40721a
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x24]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x407209
lea ecx, [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call edi
test eax, eax
jne 0x4071e6
mov ecx, dword [0x431954]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.00402c60
call fcn.00412c50
push section.share
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xd8]
xor eax, eax
call fcn.0041931e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 0x10