Function at 0x478086
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6118fe
call fcn.0060bd28
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 0x478896
call fcn.00471ab5
test eax, eax
je 0x478896
mov ebx, dword [ecx + 0x1c]
sub ebx, dword [ecx + 0x18]
sar ebx, 2
push ebx
push str.ExecuteAllInstall__file_num:_d
push 0x6c8880
mov dword [ebp - 0x54], ebx
call fcn.0048de60
add esp, 0xc
test ebx, ebx
jle 0x4788c2
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.00471bde
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x478852
mov ecx, edi
call fcn.00471644
test eax, eax
je 0x478852
lea ecx, [edi + 0x48]
push ecx
mov ecx, esi
call fcn.00478c66
test eax, eax
jne 0x478167
mov eax, dword [0x6c87f4]
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 0x478877
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 + 0x4c]
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.0047292b
push eax
push ebx
push str.ExecuteAllInstall__file_node__d__CheckInstallCondition_ret:_d
push 0x6c8880
mov dword [ebp - 0x1c], eax
call fcn.0048de60
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x47820d
mov eax, dword [0x6c87f4]
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 0x478884
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x58], 0
je 0x478359
cmp dword [0x6c8804], 0
jne 0x478359
push str.install_resRecommdPopBackground.png
mov edx, 0x6c8824
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
mov byte [ebp - 4], 3
mov dword [esp], str.DownLoadRecommendPopBackgroundPng
push 0x6c8880
call fcn.0048de60
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.0047341c
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 0x47847f
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47847f
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.00495574
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x26c]
call fcn.00406123
push 0x6c8828
lea ecx, [ebp - 0x268]
call fcn.00406123
push ecx
push ecx
lea ecx, [ebp - 0x794]
call fcn.00479d07
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 0x478329
mov ebx, dword [ebp - 0x18]
push ebx
push str.ExecuteAllInstall__file_node__d__popDlg_failed
push 0x6c8880
call fcn.0048de60
add esp, 0xc
lea ecx, [ebp - 0x798]
call fcn.0049567b
jmp 0x478492
mov esi, dword [ebp - 0x14]
mov ecx, esi
push eax
mov dword [0x6c8808], eax
call fcn.004776a2
lea ecx, [ebp - 0x798]
call fcn.0049567b
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.0047630c
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.00479013
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x24], eax
push dword [eax]
push ebx
push str.ExecuteAllInstall__file_node__d__path:_s
push 0x6c8880
call fcn.0048de60
add esp, 0x10
push dword [ebp - 0x10]
call fcn.00479b6a
mov ebx, dword [ebp - 0x34]
test eax, eax
je 0x4784bf
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.0046e62f
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 0x47842e
push dword [ebp - 0x15c]
call fcn.005f0033
pop ecx
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x260], eax
je 0x47844c
push dword [ebp - 0x260]
call fcn.005f0033
pop ecx
cmp byte [ebp - 0x20], 0
je 0x47881f
push dword [edi]
mov edi, dword [ebp - 0x18]
push edi
push str.ExecuteAllInstall__file_node__d__run_app:_s
push 0x6c8880
mov dword [ebp - 0x20], 0x133
call fcn.0048de60
add esp, 0x10
mov edx, 0x133
jmp 0x4787c7
push ebx
push str.ExecuteAllInstall__file_node__d__DownLoadRecommendPopBackgroundPng_failed
push 0x6c8880
call fcn.0048de60
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 0x478884
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.004775f5
test eax, eax
jne 0x478531
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 0x478531
push dword [ebp - 0x260]
call fcn.005f0033
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 0x47857e
push dword [ebp - 0xdc]
call fcn.005f0033
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 + 0xc]
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 0x4785cd
push dword [ebp - 0x260]
call fcn.005f0033
pop ecx
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0046fdfe
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x47863b
mov eax, dword [0x6c87f4]
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 0x6c8880
call fcn.0048de60
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 0x4784a0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00476dbf
push eax
push edi
push str.ExecuteAllInstall__file_node__d___ExecuteSingleInstall_Errorcode:_d
push 0x6c8880
mov dword [ebp - 0x20], eax
call fcn.0048de60
add esp, 0x10
cmp dword [ebp - 0x20], 0
jne 0x478783
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x50], 0
je 0x47869f
cmp dword [edx + 0x68], 0
je 0x47869f
call fcn.00477110
test eax, eax
jle 0x47869f
lea eax, [ebp - 0x48]
push eax
push edx
call fcn.00479b86
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 0x47875d
cmp dword [edx + 0x50], 0
jne 0x47875d
push 0x69da74
lea ecx, [edx + 0x10]
call fcn.0046dfed
test eax, eax
jne 0x47875d
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 0x478719
push dword [ebp - 0x15c]
call fcn.005f0033
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.005e9520
pop ecx
lea edx, [edi + 0xdc]
mov ecx, eax
call fcn.00470f57
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 + 0x74]
call fcn.004797a3
test eax, eax
je 0x478783
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
call fcn.0048a030
mov ecx, eax
call fcn.0048a7da
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3c], 0
jne 0x4787a6
push esi
call fcn.00478fdc
push esi
push edi
push str.ExecuteAllInstall__file_node__d__delete_file
push 0x6c8880
call fcn.0048de60
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 0x47881f
mov eax, dword [0x6c87f4]
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 0x6c8880
call fcn.0048de60
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 0x4784b7
mov eax, dword [0x6c87f4]
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 0x6c8880
call fcn.0048de60
add esp, 0xc
inc dword [ebp - 0x44]
jmp 0x4787f8
mov eax, dword [0x6c87f4]
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 0x6c8880
call fcn.0048de60
add esp, 0xc
inc ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebx - 1]
cmp eax, dword [ebp - 0x54]
jl 0x478103
jmp 0x4788c2
mov eax, dword [0x6c87f4]
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 0x6c8880
call fcn.0048de60
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
push edi
push esi
push str.ExecuteAllInstall__nCount:_d__nRet:_d
push 0x6c8880
call fcn.0048de60
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