Function at 0x409f40
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x4e5728]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov dword [0x4e9a98], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x889]
call fcn.00406310
push 0
push 0
push 0x4babac
call fcn.00405cf0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00473050
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
mov esi, 2
lea eax, [ebp - 0x20c]
push eax
call edi
sub esi, 1
jne 0x409fc0
push str.UtilsDumpUper.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a029
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a000
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4e9aa0
call fcn.00479074
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
call fcn.0041ff60
add esp, 4
mov ecx, eax
push 0x11
push str.multi_wechat.log
call fcn.00408120
mov dword [ebp - 0x878], 0
xor ecx, ecx
mov dword [ebp - 0x874], 0
push 0x4ba76c
movups xmm0, xmmword [eax]
push 0x6400000
push 1
movups xmmword [ebp - 0x888], xmm0
push ecx
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x878], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x888]
cmp dword [ebp - 0x874], 8
cmovae eax, dword [ebp - 0x888]
push eax
call fcn.0043ca10
mov edx, dword [ebp - 0x874]
cmp edx, 8
jb 0x40a0eb
mov ecx, dword [ebp - 0x888]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab93
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov edx, dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
cmp edx, 8
jb 0x40a148
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a13e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab93
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov ecx, dword [0x4ea0fc]
test ecx, ecx
jne 0x40a1a6
push 0x4e4030
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4ea0fc], 0
jne 0x40a195
push 4
call fcn.00467a0f
add esp, 4
test eax, eax
je 0x40a183
mov ecx, eax
mov dword [eax], 0
call fcn.0043dcb0
jmp 0x40a185
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4ea0fc], eax
push 0x4e4030
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4ea0fc]
push 0
push 0x4babac
push 2
call fcn.0043dd30
test eax, eax
jne 0x40a288
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a288
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004082b0
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x47
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403c10
mov esi, eax
push str.stat_init_fail
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e00
lea ecx, [ebp - 0x224]
call fcn.00404580
lea ecx, [ebp - 0x888]
call fcn.00404580
call fcn.0041fbf0
push str.multi_wechat_tpi_attach_pop_wnd_name
push str.multi_wechat_tpi_attach_pop_wnd_class
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40a2ae
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x30
lea eax, [ebp - 0x290]
mov dword [ebp - 0x228], 0
push 0
push eax
call fcn.00473050
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.004405e0
mov ecx, ebx
mov dword [ebp - 0x214], 0
xor eax, eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a300
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x224]
call fcn.004083b0
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x290]
call fcn.00440e60
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x40a373
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a369
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab98
push edx
push ecx
call fcn.00467a3f
add esp, 8
test bl, bl
je 0x40a44c
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40aa13
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004082b0
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x53
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403c10
mov esi, eax
push str.cmdline_parse_fail
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e00
lea ecx, [ebp - 0x224]
call fcn.00404580
lea ecx, [ebp - 0x888]
call fcn.00404580
jmp 0x40aa13
lea eax, [ebp - 0x228]
push eax
call fcn.00405f00
add esp, 4
test al, al
je 0x40a529
push 0x4baa6c
push str.multi_wechat_main_wnd_class
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x40aa13
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x214], 0
mov ecx, edx
mov dword [ebp - 0x210], 7
xor eax, eax
mov word [ebp - 0x224], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a4b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.004083b0
mov eax, dword [ebp - 0x214]
add eax, eax
mov dword [ebp - 0x87c], 1
cmp dword [ebp - 0x210], 8
push 0
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push 0x1388
push 1
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x87c]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x224]
call fcn.004045d0
jmp 0x40aa13
push 0x5e0
lea eax, [ebp - 0x870]
push 0
push eax
call fcn.00473050
add esp, 0xc
lea ecx, [ebp - 0x870]
call fcn.0040be60
lea ecx, [ebp - 0x870]
call fcn.00410a90
test al, al
jne 0x40a62e
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40aa08
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.004082b0
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x5c
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403c10
mov esi, eax
push str.main_wnd_init_fail
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e00
lea ecx, [ebp - 0x224]
call fcn.00404580
lea ecx, [ebp - 0x888]
call fcn.00404580
jmp 0x40aa08
xor eax, eax
mov dword [ebp - 0x214], 0
push eax
push 0x4ba76c
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.004083b0
push 9
xor eax, eax
mov dword [ebp - 0x878], 0
push str.start_exe
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
call fcn.004083b0
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00420b60
mov edx, dword [ebp - 0x874]
add esp, 8
cmp edx, 8
jb 0x40a6e1
mov ecx, dword [ebp - 0x888]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab9d
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov edx, dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 7
mov word [ebp - 0x888], ax
cmp edx, 8
jb 0x40a73e
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a734
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab9d
push edx
push ecx
call fcn.00467a3f
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
mov dword [ebp - 0x260], 0x4baa64
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a8cd
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], 0
call fcn.004082b0
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x61
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00403c10
mov esi, eax
push str.run_msgloop
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e00
mov edx, dword [ebp - 0x874]
cmp edx, 0x10
jb 0x40a878
mov ecx, dword [ebp - 0x888]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a86e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aba2
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], 0
cmp edx, 0x10
jb 0x40a8cd
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aba2
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop word [eax + eax]
test ebx, ebx
je 0x40a910
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
jne 0x40a910
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40a8e4
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40a8e0
test eax, eax
je 0x40a9a6
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call dword [eax]
test eax, eax
jne 0x40a95f
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x240]
cmp eax, 0x118
ja 0x40a97a
je 0x40a996
cmp eax, 0xf
je 0x40a996
cmp eax, 0xa0
jmp 0x40a97f
cmp eax, 0x200
je 0x40a996
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a8e0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a8e0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40a9c3
push eax
call fcn.00476661
add esp, 4
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
test eax, eax
je 0x40a9f4
push eax
call fcn.00476661
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x870]
call fcn.0040c480
lea ecx, [ebp - 0x290]
call fcn.00440760
call fcn.0043c280
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ab5f
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], al
call fcn.004082b0
push 3
push 0x4ba7a4
lea ecx, [ebp - 0x888]
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], 0
call fcn.004082b0
call fcn.0043c280
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x64
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x888]
push eax
call fcn.00403c10
mov esi, eax
push str.end_msgloop...
push esi
call fcn.00404ba0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404e00
mov edx, dword [ebp - 0x874]
cmp edx, 0x10
jb 0x40ab0e
mov ecx, dword [ebp - 0x888]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aba7
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x874], 0xf
mov byte [ebp - 0x888], 0
cmp edx, 0x10
jb 0x40ab5f
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aba7
push edx
push ecx
call fcn.00467a3f
add esp, 8
mov eax, dword [ebp - 0x228]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40ab73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00421540
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00467d03
mov esp, ebp
pop ebp
ret 0x10
call fcn.004764c9
call fcn.004764c9
call fcn.004764c9
call fcn.004764c9
call fcn.004764c9
int3