Function at 0x478057
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x6118ae
call fcn.0060bcd8
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 0x478867
call fcn.00471a87
test eax, eax
je 0x478867
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.0048de14
add esp, 0xc
test ebx, ebx
jle 0x478893
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.00471bb0
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x478823
mov ecx, edi
call fcn.00471616
test eax, eax
je 0x478823
lea ecx, [edi + 0x48]
push ecx
mov ecx, esi
call fcn.00478c37
test eax, eax
jne 0x478138
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 0x478848
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.004728fd
push eax
push ebx
push str.ExecuteAllInstall__file_node__d__CheckInstallCondition_ret:_d
push 0x6c8880
mov dword [ebp - 0x1c], eax
call fcn.0048de14
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x4781de
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 0x478855
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x58], 0
je 0x47832a
cmp dword [0x6c8804], 0
jne 0x47832a
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.0048de14
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.004733ee
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 0x478450
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478450
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.0049552a
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.00479cd8
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 0x4782fa
mov ebx, dword [ebp - 0x18]
push ebx
push str.ExecuteAllInstall__file_node__d__popDlg_failed
push 0x6c8880
call fcn.0048de14
add esp, 0xc
lea ecx, [ebp - 0x798]
call fcn.00495631
jmp 0x478463
mov esi, dword [ebp - 0x14]
mov ecx, esi
push eax
mov dword [0x6c8808], eax
call fcn.00477673
lea ecx, [ebp - 0x798]
call fcn.00495631
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.004762dd
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.00478fe4
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.0048de14
add esp, 0x10
push dword [ebp - 0x10]
call fcn.00479b3b
mov ebx, dword [ebp - 0x34]
test eax, eax
je 0x478490
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.0046e601
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 0x4783ff
push dword [ebp - 0x15c]
call fcn.005f0063
pop ecx
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x260], eax
je 0x47841d
push dword [ebp - 0x260]
call fcn.005f0063
pop ecx
cmp byte [ebp - 0x20], 0
je 0x4787f0
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.0048de14
add esp, 0x10
mov edx, 0x133
jmp 0x478798
push ebx
push str.ExecuteAllInstall__file_node__d__DownLoadRecommendPopBackgroundPng_failed
push 0x6c8880
call fcn.0048de14
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 0x478855
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.004775c6
test eax, eax
jne 0x478502
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 0x478502
push dword [ebp - 0x260]
call fcn.005f0063
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 0x47854f
push dword [ebp - 0xdc]
call fcn.005f0063
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 0x47859e
push dword [ebp - 0x260]
call fcn.005f0063
pop ecx
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0046fdd0
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x47860c
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.0048de14
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 0x478471
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00476d90
push eax
push edi
push str.ExecuteAllInstall__file_node__d___ExecuteSingleInstall_Errorcode:_d
push 0x6c8880
mov dword [ebp - 0x20], eax
call fcn.0048de14
add esp, 0x10
cmp dword [ebp - 0x20], 0
jne 0x478754
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x50], 0
je 0x478670
cmp dword [edx + 0x68], 0
je 0x478670
call fcn.004770e1
test eax, eax
jle 0x478670
lea eax, [ebp - 0x48]
push eax
push edx
call fcn.00479b57
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 0x47872e
cmp dword [edx + 0x50], 0
jne 0x47872e
push 0x69da64
lea ecx, [edx + 0x10]
call fcn.0046dfbf
test eax, eax
jne 0x47872e
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 0x4786ea
push dword [ebp - 0x15c]
call fcn.005f0063
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.005e94cb
pop ecx
lea edx, [edi + 0xdc]
mov ecx, eax
call fcn.00470f29
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.00479774
test eax, eax
je 0x478754
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 3
push eax
call fcn.00489fe3
mov ecx, eax
call fcn.0048a78d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3c], 0
jne 0x478777
push esi
call fcn.00478fad
push esi
push edi
push str.ExecuteAllInstall__file_node__d__delete_file
push 0x6c8880
call fcn.0048de14
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 0x4787f0
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.0048de14
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 0x478488
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.0048de14
add esp, 0xc
inc dword [ebp - 0x44]
jmp 0x4787c9
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.0048de14
add esp, 0xc
inc ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebx - 1]
cmp eax, dword [ebp - 0x54]
jl 0x4780d4
jmp 0x478893
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.0048de14
pop ecx
pop ecx
mov esi, dword [ebp - 0x44]
push edi
push esi
push str.ExecuteAllInstall__nCount:_d__nRet:_d
push 0x6c8880
call fcn.0048de14
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