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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x4da720]
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 [0x4de710], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x865]
call fcn.004062e0
push 0
push 0
push 0x4b1bac
call fcn.00405cc0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046a630
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 0x409f90
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 0x409ff9
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409fd0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4de718
call fcn.00470654
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
call fcn.0041f2d0
add esp, 4
mov ecx, eax
push 0x11
push str.multi_wechat.log
call fcn.004080f0
mov dword [ebp - 0x854], 0
xor ecx, ecx
mov dword [ebp - 0x850], 0
push 0x4b176c
movups xmm0, xmmword [eax]
push 0x6400000
push 1
movups xmmword [ebp - 0x864], xmm0
push ecx
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x854], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x864]
cmp dword [ebp - 0x850], 8
cmovae eax, dword [ebp - 0x864]
push eax
call fcn.00437f40
mov edx, dword [ebp - 0x850]
cmp edx, 8
jb 0x40a0bb
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab63
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov edx, dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 7
mov word [ebp - 0x864], ax
cmp edx, 8
jb 0x40a118
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a10e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab63
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov ecx, dword [0x4ded74]
test ecx, ecx
jne 0x40a176
push 0x4d9030
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4ded74], 0
jne 0x40a165
push 4
call fcn.0045ef1f
add esp, 4
test eax, eax
je 0x40a153
mov ecx, eax
mov dword [eax], 0
call fcn.00438dc0
jmp 0x40a155
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4ded74], eax
push 0x4d9030
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4ded74]
push 0
push 0x4b1bac
push 2
call fcn.00438e40
test eax, eax
jne 0x40a258
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a258
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], al
call fcn.00408280
push 3
push 0x4b1c38
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00408280
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x47
lea eax, [ebp - 0x864]
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 - 0x864]
call fcn.00404580
call fcn.0041ef60
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 0x40a27e
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.0046a630
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.0043b240
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 0x40a2d0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x224]
call fcn.00408380
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x290]
call fcn.0043bac0
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x40a343
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a339
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab68
push edx
push ecx
call fcn.0045ef4f
add esp, 8
test bl, bl
je 0x40a41c
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a9e3
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], al
call fcn.00408280
push 3
push 0x4b1c38
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00408280
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x53
lea eax, [ebp - 0x864]
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 - 0x864]
call fcn.00404580
jmp 0x40a9e3
lea eax, [ebp - 0x228]
push eax
call fcn.00405ed0
add esp, 4
test al, al
je 0x40a4f9
push 0x4b1a6c
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 0x40a9e3
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 0x40a480
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.00408380
mov eax, dword [ebp - 0x214]
add eax, eax
mov dword [ebp - 0x858], 1
cmp dword [ebp - 0x210], 8
push 0
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push 0x1388
push 1
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x858]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x224]
call fcn.004045d0
jmp 0x40a9e3
push 0x5bc
lea eax, [ebp - 0x84c]
push 0
push eax
call fcn.0046a630
add esp, 0xc
lea ecx, [ebp - 0x84c]
call fcn.0040be30
lea ecx, [ebp - 0x84c]
call fcn.004109a0
test al, al
jne 0x40a5fe
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a9d8
push 0x6f
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcmain.cc
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], eax
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], al
call fcn.00408280
push 3
push 0x4b1c38
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00408280
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x5c
lea eax, [ebp - 0x864]
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 - 0x864]
call fcn.00404580
jmp 0x40a9d8
xor eax, eax
mov dword [ebp - 0x214], 0
push eax
push 0x4b176c
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
call fcn.00408380
push 9
xor eax, eax
mov dword [ebp - 0x854], 0
push str.start_exe
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x850], 7
mov word [ebp - 0x864], ax
call fcn.00408380
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.0041f870
mov edx, dword [ebp - 0x850]
add esp, 8
cmp edx, 8
jb 0x40a6b1
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab6d
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov edx, dword [ebp - 0x210]
xor eax, eax
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 7
mov word [ebp - 0x864], ax
cmp edx, 8
jb 0x40a70e
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a704
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab6d
push edx
push ecx
call fcn.0045ef4f
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], 0x4b1a64
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a89d
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.00408280
push 3
push 0x4b1c38
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
call fcn.00408280
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x61
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
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 - 0x850]
cmp edx, 0x10
jb 0x40a848
mov ecx, dword [ebp - 0x864]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a83e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab72
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
cmp edx, 0x10
jb 0x40a89d
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a893
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab72
push edx
push ecx
call fcn.0045ef4f
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 0x40a8e0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
jne 0x40a8e0
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40a8b4
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 0x40a8b0
test eax, eax
je 0x40a976
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call dword [eax]
test eax, eax
jne 0x40a92f
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 0x40a94a
je 0x40a966
cmp eax, 0xf
je 0x40a966
cmp eax, 0xa0
jmp 0x40a94f
cmp eax, 0x200
je 0x40a966
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a8b0
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a8b0
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40a993
push eax
call fcn.0046dc41
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 0x40a9c4
push eax
call fcn.0046dc41
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x84c]
call fcn.0040c430
lea ecx, [ebp - 0x290]
call fcn.0043b3c0
call fcn.00437e50
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40ab2f
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.00408280
push 3
push 0x4b1c38
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
call fcn.00408280
call fcn.00437e50
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x64
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
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 - 0x850]
cmp edx, 0x10
jb 0x40aade
mov ecx, dword [ebp - 0x864]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aad4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab77
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
cmp edx, 0x10
jb 0x40ab2f
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab77
push edx
push ecx
call fcn.0045ef4f
add esp, 8
mov eax, dword [ebp - 0x228]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40ab43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00420250
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0045f213
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046daa9
call fcn.0046daa9
call fcn.0046daa9
call fcn.0046daa9
call fcn.0046daa9
int3