Function at 0x416370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4361b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0xffffffffffffffff
push str.PlatformLoadPlugin
mov edi, ecx
call dword [sym.imp.crt.dll_Ordinal_25]
mov ecx, dword [ebp + 8]
and ecx, eax
add esp, 0xc
mov dword [ebp + 8], ecx
test ecx, 0x4000
je 0x41641f
test dword [edi + 0x78], 0x4000
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x41641f
mov eax, dword [edi + 0x7c]
test eax, 0x4000
jne 0x41641f
or eax, 0x4000
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.urlsender.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416418
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x4000
and dword [edi + 0x7c], 0xffffbfff
mov eax, 0x200
test dword [ebp + 8], eax
je 0x41649a
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x41649a
mov eax, dword [edi + 0x7c]
test eax, 0x200
jne 0x41649a
or eax, 0x200
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.vip.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416493
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x200
and dword [edi + 0x7c], 0xfffffdff
mov eax, 0x8000
test dword [ebp + 8], eax
je 0x416515
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x416515
mov eax, dword [edi + 0x7c]
test eax, 0x8000
jne 0x416515
or eax, 0x8000
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.gsc.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41650e
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x8000
and dword [edi + 0x7c], 0xffff7fff
test byte [ebp + 8], 0x10
je 0x4165d3
cmp dword [edi + 0x8c], 0
jne 0x4165d3
mov ecx, dword [0x42bbe0]
mov edx, dword [0x42bbe4]
lea eax, [ebp - 0x210]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x42bbe8]
mov dword [eax + 4], edx
mov edx, dword [0x42bbec]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push str.StormNCStormNC_R.dll
mov eax, 0x10
mov dword [ebp - 0x210], 0
call fcn.00416c40
mov ebx, dword [ebp - 0x210]
test ebx, ebx
je 0x4165c9
cmp dword [ebx + 0x18], 0
je 0x4165c9
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea esi, [edi + 0x94]
push esi
push 0x42c130
push eax
call edx
mov esi, dword [esi]
test esi, esi
je 0x4165b3
mov eax, dword [edi + 0x90]
test eax, eax
je 0x4165b3
mov ecx, dword [esi]
mov edx, dword [ecx + 0x18]
push eax
push esi
call edx
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax]
lea ecx, [edi + 0x98]
push ecx
push 0x42c140
push ebx
call edx
mov dword [edi + 0x8c], 1
test byte [ebp + 8], 0x20
je 0x416640
test byte [edi + 0x78], 0x20
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x416640
mov eax, dword [edi + 0x7c]
test al, 0x20
jne 0x416640
or eax, 0x20
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.ListDownload.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41663c
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x20
and dword [edi + 0x7c], 0xffffffdf
mov ebx, 8
test byte [ebp + 8], bl
je 0x4166ae
test byte [edi + 0x78], bl
jne 0x4166ae
mov eax, dword [edi + 0x7c]
test bl, al
jne 0x4166ae
mov ecx, dword [0x42bba0]
mov edx, dword [0x42bba4]
or eax, ebx
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x42bba8]
mov dword [eax + 4], edx
mov edx, dword [0x42bbac]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, str.binSKMD.dll
mov ecx, edi
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4166aa
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], ebx
and dword [edi + 0x7c], 0xfffffff7
mov eax, 0x10000
test dword [ebp + 8], eax
je 0x416729
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x416729
mov eax, dword [edi + 0x7c]
test eax, 0x10000
jne 0x416729
or eax, 0x10000
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.MovieStormDownLoad.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416722
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x10000
and dword [edi + 0x7c], 0xfffeffff
test byte [ebp + 8], 2
je 0x416796
test byte [edi + 0x78], 2
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x416796
mov eax, dword [edi + 0x7c]
test al, 2
jne 0x416796
or eax, 2
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.binTips.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416792
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 2
and dword [edi + 0x7c], 0xfffffffd
test byte [ebp + 8], 4
je 0x416803
test byte [edi + 0x78], 4
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x416803
mov eax, dword [edi + 0x7c]
test al, 4
jne 0x416803
or eax, 4
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.binNewsClient.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4167ff
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 4
and dword [edi + 0x7c], 0xfffffffb
test byte [ebp + 8], 1
je 0x416870
test byte [edi + 0x78], 1
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x416870
mov eax, dword [edi + 0x7c]
test al, 1
jne 0x416870
or eax, 1
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.LogPlatform.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41686c
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 1
and dword [edi + 0x7c], 0xfffffffe
mov eax, 0x400
test dword [ebp + 8], eax
je 0x4168eb
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x4168eb
mov eax, dword [edi + 0x7c]
test eax, 0x400
jne 0x4168eb
or eax, 0x400
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.binlmd.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4168e4
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x400
and dword [edi + 0x7c], 0xfffffbff
test byte [ebp + 8], 0x80
je 0x416960
test byte [edi + 0x78], 0x80
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x416960
mov eax, dword [edi + 0x7c]
test al, al
js 0x416960
or eax, 0x80
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.binUpload.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416959
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x80
and dword [edi + 0x7c], 0xffffff7f
test byte [ebp + 8], 0x40
je 0x416ab3
test byte [edi + 0x78], 0x40
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
jne 0x4169d1
mov eax, dword [edi + 0x7c]
test al, 0x40
jne 0x4169d1
or eax, 0x40
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.Update.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4169cd
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x40
and dword [edi + 0x7c], 0xffffffbf
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, dword [0x437fb0]
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str.Update.dll
push eax
call dword [sym.imp.crt.dll_Ordinal_33]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x28
lea ecx, [ebp - 0x20c]
push ecx
call ebx
mov esi, dword [sym.imp.crt.dll_Ordinal_58]
test eax, eax
jne 0x416a3d
push 0
push 0
push 0
push 1
push str.DAILY.NEWUPDATE_MODULE_UPDATEDLLNOTEXIST
call esi
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.BaofengUpdate.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
jne 0x416a78
push eax
push eax
push eax
push 1
push str.DAILY.NEWUPDATE_MODULE_UPDATEEXENOTEXIST
call esi
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.http.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
jne 0x416ab3
push eax
push eax
push eax
push 1
push str.DAILY.NEWUPDATE_MODULE_UPDATEHTTPNOTEXIST
call esi
add esp, 0x14
mov eax, 0x800
test dword [ebp + 8], eax
je 0x416b2e
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x416b2e
mov eax, dword [edi + 0x7c]
test eax, 0x800
jne 0x416b2e
or eax, 0x800
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.pfarr.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416b27
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x800
and dword [edi + 0x7c], 0xfffff7ff
mov eax, 0x2000
test dword [ebp + 8], eax
je 0x416ba9
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x416ba9
mov eax, dword [edi + 0x7c]
test eax, 0x2000
jne 0x416ba9
or eax, 0x2000
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.udm.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416ba2
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x2000
and dword [edi + 0x7c], 0xffffdfff
mov eax, 0x20000
test dword [ebp + 8], eax
je 0x416c24
mov ecx, dword [0x429bf8]
mov edx, dword [0x429bfc]
mov esi, dword [0x429c00]
mov ebx, dword [0x429c04]
test dword [edi + 0x78], eax
jne 0x416c24
mov eax, dword [edi + 0x7c]
test eax, 0x20000
jne 0x416c24
or eax, 0x20000
sub esp, 0x10
mov dword [edi + 0x7c], eax
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov edx, str.binLogSW.dll
mov ecx, edi
mov dword [eax + 0xc], ebx
call fcn.00416d60
mov dword [ebp - 0x210], eax
test eax, eax
je 0x416c1d
lea esi, [edi + 0x68]
lea ecx, [ebp - 0x210]
call fcn.004170c0
or dword [edi + 0x78], 0x20000
and dword [edi + 0x7c], 0xfffdffff
call dword [sym.imp.crt.dll_Ordinal_99]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042391e
mov esp, ebp
pop ebp
ret 4