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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x4da734]
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 [0x4de720], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x865]
call fcn.00405de0
push 0
push 0
push 0x4b1a28
call fcn.00405900
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0046a460
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 0x409b20
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 0x409b89
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b60
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
push 0x104
push 0x4de728
call fcn.00470484
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
call fcn.0041ee50
add esp, 4
mov ecx, eax
push 0x11
push str.multi_wechat.log
call fcn.00407c80
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.004378b0
mov edx, dword [ebp - 0x850]
cmp edx, 8
jb 0x409c4b
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409c41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6c3
push edx
push ecx
call fcn.0045ed5f
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 0x409ca8
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409c9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6c3
push edx
push ecx
call fcn.0045ed5f
add esp, 8
mov ecx, dword [0x4ded84]
test ecx, ecx
jne 0x409d06
push 0x4d9030
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4ded84], 0
jne 0x409cf5
push 4
call fcn.0045ed2f
add esp, 4
test eax, eax
je 0x409ce3
mov ecx, eax
mov dword [eax], 0
call fcn.00438730
jmp 0x409ce5
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x228]
lock or dword [ecx], edx
mov dword [0x4ded84], eax
push 0x4d9030
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x4ded84]
push 0
push 0x4b1a28
push 2
call fcn.004387b0
test eax, eax
jne 0x409de8
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x409de8
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.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00407e10
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x47
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403be0
mov esi, eax
push str.stat_init_fail
push esi
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404dd0
lea ecx, [ebp - 0x224]
call fcn.00404550
lea ecx, [ebp - 0x864]
call fcn.00404550
call fcn.0041eae0
push 0x30
lea eax, [ebp - 0x290]
mov dword [ebp - 0x228], 0
push 0
push eax
call fcn.0046a460
add esp, 0xc
lea ecx, [ebp - 0x290]
call fcn.0043b050
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e37
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x224]
call fcn.00407f10
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x290]
call fcn.0043b8d0
mov edx, dword [ebp - 0x210]
test eax, eax
sete bl
cmp edx, 8
jb 0x409eaa
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409ea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6c8
push edx
push ecx
call fcn.0045ed5f
add esp, 8
test bl, bl
je 0x409f83
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a543
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.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00407e10
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x4f
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403be0
mov esi, eax
push str.cmdline_parse_fail
push esi
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404dd0
lea ecx, [ebp - 0x224]
call fcn.00404550
lea ecx, [ebp - 0x864]
call fcn.00404550
jmp 0x40a543
lea eax, [ebp - 0x228]
push eax
call fcn.004059d0
add esp, 4
test al, al
je 0x40a05b
push 0x4b1984
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 0x40a543
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409fe2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x224]
call fcn.00407f10
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.004045a0
jmp 0x40a543
push 0x5bc
lea eax, [ebp - 0x84c]
push 0
push eax
call fcn.0046a460
add esp, 0xc
lea ecx, [ebp - 0x84c]
call fcn.0040b990
lea ecx, [ebp - 0x84c]
call fcn.00410500
test al, al
jne 0x40a160
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a538
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.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0xf
mov byte [ebp - 0x224], 0
call fcn.00407e10
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x58
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00403be0
mov esi, eax
push str.main_wnd_init_fail
push esi
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404dd0
lea ecx, [ebp - 0x224]
call fcn.00404550
lea ecx, [ebp - 0x864]
call fcn.00404550
jmp 0x40a538
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.00407f10
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.00407f10
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.0041f3f0
mov edx, dword [ebp - 0x850]
add esp, 8
cmp edx, 8
jb 0x40a213
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a209
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6cd
push edx
push ecx
call fcn.0045ed5f
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 0x40a270
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a266
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6cd
push edx
push ecx
call fcn.0045ed5f
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], 0x4b197c
movups xmmword [ebp - 0x25c], xmm0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a3ff
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.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
call fcn.00407e10
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x5d
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00403be0
mov esi, eax
push str.run_msgloop
push esi
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404dd0
mov edx, dword [ebp - 0x850]
cmp edx, 0x10
jb 0x40a3aa
mov ecx, dword [ebp - 0x864]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6d2
push edx
push ecx
call fcn.0045ed5f
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 0x40a3ff
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6d2
push edx
push ecx
call fcn.0045ed5f
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax]
test ebx, ebx
je 0x40a440
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x244]
push eax
call edi
test eax, eax
jne 0x40a440
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40a414
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 0x40a410
test eax, eax
je 0x40a4d6
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call dword [eax]
test eax, eax
jne 0x40a48f
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 0x40a4aa
je 0x40a4c6
cmp eax, 0xf
je 0x40a4c6
cmp eax, 0xa0
jmp 0x40a4af
cmp eax, 0x200
je 0x40a4c6
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a410
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x40a410
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40a4f3
push eax
call fcn.0046da71
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 0x40a524
push eax
call fcn.0046da71
add esp, 4
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x84c]
call fcn.0040bf90
lea ecx, [ebp - 0x290]
call fcn.0043b1d0
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40a68f
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.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0xf
mov byte [ebp - 0x864], 0
call fcn.00407e10
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0x9c]
push 0x60
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.00403be0
mov esi, eax
push str.end_msgloop...
push esi
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x9c]
call fcn.00404dd0
mov edx, dword [ebp - 0x850]
cmp edx, 0x10
jb 0x40a63e
mov ecx, dword [ebp - 0x864]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a634
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6d7
push edx
push ecx
call fcn.0045ed5f
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 0x40a68f
mov ecx, dword [ebp - 0x224]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a685
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a6d7
push edx
push ecx
call fcn.0045ed5f
add esp, 8
mov eax, dword [ebp - 0x228]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40a6a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0041fdd0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0045f015
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
int3