Function at 0x405f20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2185
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x4e83f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046c7a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.multi_wechat_prodcut_info.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x406109
push 0x76
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcindependent.cc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
call fcn.00408180
mov byte [ebp - 4], 1
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x360]
push 0x1c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004046f0
mov esi, eax
push str.product_info_data_file_path:
push esi
mov byte [ebp - 4], 2
call fcn.00405680
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00403a80
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x360]
call fcn.004057a0
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4060ad
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4060a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066eb
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x406109
mov ecx, dword [ebp - 0x24c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4060ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066f0
push edx
push ecx
call fcn.004395b0
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4061fe
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4066cf
push 0x76
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcindependent.cc
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 3
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
call fcn.00408180
mov byte [ebp - 4], 4
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x360]
push 0x1e
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004046f0
mov esi, eax
push str.product_info_data_is_not_exist
push esi
mov byte [ebp - 4], 5
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x360]
call fcn.004057a0
lea ecx, [ebp - 0x27c]
call fcn.004050d0
lea ecx, [ebp - 0x24c]
call fcn.004050d0
jmp 0x4066cf
xor eax, eax
mov dword [ebp - 0x258], 0
push eax
push 0x4be580
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x254], 2
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
call fcn.00403770
push 0x11
xor eax, eax
mov dword [ebp - 4], 6
push str.copy_multi_wechat
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00403770
xor eax, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
lea edx, [ecx + 2]
mov word [ebp - 0x298], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x298]
call fcn.00403770
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x258]
mov byte [ebp - 0x219], bl
call fcn.00406730
test al, al
je 0x40648d
push 0x4be630
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x4064c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.0043cc60
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x406487
push 0x53
mov dword [ebp - 0x26c], ecx
mov byte [ebp - 0x27c], cl
lea ecx, [ebp - 0x27c]
push str.d:_buildlib_commonpublicincludeindependent_productindependent_product_helper.h
mov dword [ebp - 0x268], 0xf
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 9
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
call fcn.00408180
mov byte [ebp - 4], 0xa
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x360]
push 0x25
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004046f0
mov esi, eax
push str.get_function
push esi
mov byte [ebp - 4], 0xb
call fcn.00405680
push 0x4be630
push esi
call fcn.00405680
push str._failed__err:
push esi
call fcn.00405680
add esp, 0x18
mov ecx, esi
push ebx
call fcn.004054e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x360]
call fcn.004057a0
mov edx, dword [ebp - 0x250]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x40642e
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406424
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066f5
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x406487
mov ecx, dword [ebp - 0x27c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40647d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066fa
push edx
push ecx
call fcn.004395b0
add esp, 8
mov bl, byte [ebp - 0x219]
mov edx, dword [ebp - 0x284]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x40651b
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406511
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066ff
jmp 0x406511
cmp dword [ebp - 0x238], 8
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x234]
cmovae edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x220], 8
push edx
cmovae ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x284], 8
push ecx
cmovae eax, dword [ebp - 0x298]
push eax
call esi
mov bl, al
jmp 0x40648d
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x40657c
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406572
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406704
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4065e0
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4065d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406709
push edx
push ecx
call fcn.004395b0
add esp, 8
test bl, bl
jne 0x4066c4
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4066cf
push 0x76
push str.d:jenkins.jenkinsworkspacepay_groupmulti_wechatmulti_wechat_clientclientclientmulti_wechat_srcindependent.cc
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 0xf
mov byte [ebp - 0x2c8], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0xf
mov byte [ebp - 0x2b0], bl
call fcn.00408180
mov byte [ebp - 4], 0xd
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0x3f8]
push 0x24
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.004046f0
mov esi, eax
push str.install_multi_wechat_independent_product_failed
push esi
mov byte [ebp - 4], 0xe
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3f8]
call fcn.004057a0
lea ecx, [ebp - 0x2b0]
call fcn.004050d0
lea ecx, [ebp - 0x2c8]
call fcn.004050d0
jmp 0x4066cf
mov ecx, dword [ebp - 0x280]
call fcn.00405bf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004395be
mov esp, ebp
pop ebp
ret
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
int3