Function at 0x477912
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x61128d
call fcn.0060b6e8
sub esp, 0x790
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov edi, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
call fcn.00404f47
push eax
lea ecx, [ebp - 0x48]
call fcn.004065d8
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x478122
call fcn.004717e9
test eax, eax
je 0x478122
mov ebx, dword [ecx + 0x1c]
sub ebx, dword [ecx + 0x18]
sar ebx, 2
push ebx
push str.ExecuteAllInstall__file_num:_d
push 0x6c7880
mov dword [ebp - 0x54], ebx
call fcn.0048d855
add esp, 0xc
test ebx, ebx
jle 0x47814e
xor eax, eax
inc eax
mov ebx, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0xbc]
lea eax, [ebx - 1]
push eax
call fcn.00471914
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4780de
mov ecx, edi
call fcn.004713b4
test eax, eax
je 0x4780de
lea ecx, [edi + 0x40]
push ecx
mov ecx, esi
call fcn.004784f2
test eax, eax
jne 0x4779f3
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
push 0
push 0
mov edx, 0x107
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
mov edi, edx
push ebx
push edx
push 0x33
call dword [eax + 4]
push ebx
push str.ExecuteAllInstall__file_node__d__abtest_failed
jmp 0x478103
and dword [ebp - 0x20], 0
mov dword [esi + 0xe8], 1
call fcn.00404f47
push eax
lea ecx, [ebp - 0x28]
call fcn.004065d8
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [edi + 0x44]
sub ecx, 0x10
call fcn.00409008
mov dword [ebp - 0x30], eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea ecx, [esi + 0xa4]
call fcn.0047210b
push eax
push ebx
push str.ExecuteAllInstall__file_node__d__CheckInstallCondition_ret:_d
push 0x6c7880
mov dword [ebp - 0x1c], eax
call fcn.0048d855
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x477a99
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
mov edi, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ecx]
push esi
push dword [ebp - 0x20]
push ebx
push edi
push 0x33
call dword [eax + 4]
mov ecx, dword [ebp - 0x30]
call fcn.00404ea9
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
jmp 0x478110
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x50], 0
je 0x477be5
cmp dword [0x6c7804], 0
jne 0x477be5
push str.install_resRecommdPopBackground.png
mov edx, 0x6c7824
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
mov byte [ebp - 4], 3
mov dword [esp], str.DownLoadRecommendPopBackgroundPng
push 0x6c7880
call fcn.0048d855
pop ecx
pop ecx
push str.http:__config.i.duba.net_aldconfig_resource.png
lea ecx, [ebp - 0x4c]
call fcn.00406173
push 0x1f4
push 0
push 0
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00472cdc
mov byte [ebp - 4], 3
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00404ea9
test esi, esi
jne 0x477d0b
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477d0b
mov ebx, dword [ebp - 0x14]
push esi
push 1
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
call dword [eax + 0xc]
lea ecx, [ebp - 0x798]
call fcn.00494f6e
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x26c]
call fcn.00406123
push 0x6c7828
lea ecx, [ebp - 0x268]
call fcn.00406123
push ecx
push ecx
lea ecx, [ebp - 0x794]
call fcn.00479593
mov edx, dword [ebx + 4]
lea ecx, [ebx + 4]
mov esi, eax
xor eax, eax
push esi
inc eax
push eax
call dword [edx + 0xc]
xor eax, eax
inc eax
cmp esi, eax
je 0x477bb5
mov ebx, dword [ebp - 0x18]
push ebx
push str.ExecuteAllInstall__file_node__d__popDlg_failed
push 0x6c7880
call fcn.0048d855
add esp, 0xc
lea ecx, [ebp - 0x798]
call fcn.00495075
jmp 0x477d1e
mov esi, dword [ebp - 0x14]
mov ecx, esi
push eax
mov dword [0x6c7808], eax
call fcn.00477003
lea ecx, [ebp - 0x798]
call fcn.00495075
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00475bc3
call fcn.00404f47
push eax
lea ecx, [ebp - 0x34]
call fcn.004065d8
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x10]
call fcn.0047889f
mov eax, dword [ebp - 0x10]
add eax, 0xc
mov dword [ebp - 0x24], eax
push dword [eax]
push ebx
push str.ExecuteAllInstall__file_node__d__path:_s
push 0x6c7880
call fcn.0048d855
add esp, 0x10
push dword [ebp - 0x10]
call fcn.004793f6
mov ebx, dword [ebp - 0x34]
test eax, eax
je 0x477d4b
push 3
lea eax, [ebp - 0x25c]
push ebx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], eax
call fcn.004066f6
mov byte [ebp - 4], 7
lea eax, [ebp - 0x158]
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x15c]
push 3
mov dword [ebp - 0x15c], eax
push dword [edi]
call fcn.004066f6
push ecx
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x260]
inc eax
mov ecx, dword [ebp - 0x15c]
push eax
push 0
call fcn.0046e42e
add esp, 0xc
neg eax
sbb al, al
inc al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x15c], eax
je 0x477cba
push dword [ebp - 0x15c]
call fcn.005efad3
pop ecx
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x260], eax
je 0x477cd8
push dword [ebp - 0x260]
call fcn.005efad3
pop ecx
cmp byte [ebp - 0x20], 0
je 0x4780ab
push dword [edi]
mov edi, dword [ebp - 0x18]
push edi
push str.ExecuteAllInstall__file_node__d__run_app:_s
push 0x6c7880
mov dword [ebp - 0x20], 0x133
call fcn.0048d855
add esp, 0x10
mov edx, 0x133
jmp 0x478053
push ebx
push str.ExecuteAllInstall__file_node__d__DownLoadRecommendPopBackgroundPng_failed
push 0x6c7880
call fcn.0048d855
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x30]
call fcn.00404ea9
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
jmp 0x478110
call fcn.00404f47
push eax
lea ecx, [ebp - 0x3c]
call fcn.004065d8
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.00476f56
test eax, eax
jne 0x477dbd
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], eax
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x24]
push 3
push dword [eax]
call fcn.004066f6
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x260]
call fcn.004060f8
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x260], eax
je 0x477dbd
push dword [ebp - 0x260]
call fcn.005efad3
pop ecx
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0xd8]
push 3
push esi
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xdc], eax
call fcn.00408f48
mov byte [ebp - 4], 0xb
push dword [ebp - 0xdc]
mov ecx, dword [ebp - 0x24]
call fcn.00405d0b
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 9
cmp dword [ebp - 0xdc], eax
je 0x477e0a
push dword [ebp - 0xdc]
call fcn.005efad3
pop ecx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], eax
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x10]
push 3
push dword [eax + 4]
call fcn.004066f6
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
push dword [ebp - 0x260]
call fcn.00406173
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x260], eax
je 0x477e59
push dword [ebp - 0x260]
call fcn.005efad3
pop ecx
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0046fbfd
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x477ec7
mov eax, dword [0x6c77f4]
mov edx, 0x131
mov ebx, dword [ebp - 0x18]
push 0
mov dword [ecx + 0x44], eax
add ecx, 4
push 0
push ebx
push edx
mov eax, dword [ecx]
push 0x33
mov dword [ebp - 0x1c], edx
call dword [eax + 4]
push esi
push ebx
push str.ExecuteAllInstall__file_node__d__check_md5_failed
push 0x6c7880
call fcn.0048d855
mov ecx, dword [ebp - 0x40]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [edi - 0x10]
jmp 0x477d2c
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00476720
push eax
push edi
push str.ExecuteAllInstall__file_node__d___ExecuteSingleInstall_Errorcode:_d
push 0x6c7880
mov dword [ebp - 0x20], eax
call fcn.0048d855
add esp, 0x10
cmp dword [ebp - 0x20], 0
jne 0x47800f
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x48], 0
je 0x477f2b
cmp dword [edx + 0x60], 0
je 0x477f2b
call fcn.00476a71
test eax, eax
jle 0x477f2b
lea eax, [ebp - 0x48]
push eax
push edx
call fcn.00479412
mov edx, dword [ebp - 0x38]
test eax, eax
push 1
pop eax
cmovne edx, eax
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 0x38], 0
je 0x477fe9
cmp dword [edx + 0x48], 0
jne 0x477fe9
push 0x69c964
lea ecx, [edx + 8]
call fcn.0046ddec
test eax, eax
jne 0x477fe9
and dword [ebp - 0x38], eax
lea ecx, [ebp - 0x15c]
lea eax, [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x24]
push 3
push dword [eax]
call fcn.004066f6
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x50]
push dword [ebp - 0x15c]
call fcn.00406173
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x15c], eax
je 0x477fa5
push dword [ebp - 0x15c]
call fcn.005efad3
pop ecx
push ecx
mov edi, esp
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
push eax
call fcn.004067cf
pop ecx
push dword [ebp - 0x48]
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x14]
call fcn.005e8f3b
pop ecx
lea edx, [edi + 0xdc]
mov ecx, eax
call fcn.00470ce3
pop ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x50]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x6c]
call fcn.0047902f
test eax, eax
je 0x47800f
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
call fcn.00489a39
mov ecx, eax
call fcn.0048a1cf
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x34], 0
jne 0x478032
push esi
call fcn.00478868
push esi
push edi
push str.ExecuteAllInstall__file_node__d__delete_file
push 0x6c7880
call fcn.0048d855
add esp, 0x10
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 6
call fcn.00404ea9
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
test edx, edx
je 0x4780ab
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
push 0
push 0
push edi
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
push edx
push 0x33
mov dword [ebp - 0x1c], edx
call dword [eax + 4]
push dword [ebp - 0x20]
push edi
push str.ExecuteAllInstall__file_node__d__error_code:_d
push 0x6c7880
call fcn.0048d855
add esp, 0x10
lea ecx, [ebx - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x30]
call fcn.00404ea9
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov ebx, dword [ebp - 0x18]
jmp 0x477d43
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
mov edi, dword [ebp - 0x18]
xor edx, edx
push edx
push edx
push edi
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
push edx
push 0x33
call dword [eax + 4]
push edi
push str.ExecuteAllInstall__file_node__d__succeed
push 0x6c7880
call fcn.0048d855
add esp, 0xc
inc dword [ebp - 0x44]
jmp 0x478084
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
push 0
push 0
mov edx, 0xfd
mov dword [esi + 0x44], eax
mov eax, dword [ecx]
mov edi, edx
push ebx
push edx
push 0x33
call dword [eax + 4]
push ebx
push str.ExecuteAllInstall__file_node__d__failed
push 0x6c7880
call fcn.0048d855
add esp, 0xc
inc ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebx - 1]
cmp eax, dword [ebp - 0x54]
jl 0x47798f
jmp 0x47814e
mov eax, dword [0x6c77f4]
lea ecx, [esi + 4]
push ebx
push ebx
push ebx
mov dword [esi + 0x44], eax
mov edi, 0x132
mov eax, dword [ecx]
push edi
push 0x33
call dword [eax + 4]
push str.ExecuteAllInstall__tryno_info_invalid
push 0x6c7880
call fcn.0048d855
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
push edi
push esi
push str.ExecuteAllInstall__nCount:_d__nRet:_d
push 0x6c7880
call fcn.0048d855
mov ecx, dword [ebp - 0x48]
xor eax, eax
add esp, 0x10
test esi, esi
cmovg edi, eax
add ecx, 0xfffffff0
call fcn.00404ea9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret