Function at 0x415670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
push 0xffffffffffffffff
push str.PlatformLoadPlugin
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 0x41571c
test dword [edi + 0x70], 0x4000
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x41571c
mov eax, dword [edi + 0x74]
test eax, 0x4000
jne 0x41571c
or eax, 0x4000
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415715
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x4000
and dword [edi + 0x74], 0xffffbfff
mov eax, 0x200
test dword [ebp + 8], eax
je 0x415797
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
test dword [edi + 0x70], eax
jne 0x415797
mov eax, dword [edi + 0x74]
test eax, 0x200
jne 0x415797
or eax, 0x200
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415790
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x200
and dword [edi + 0x74], 0xfffffdff
mov eax, 0x8000
test dword [ebp + 8], eax
je 0x415812
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
test dword [edi + 0x70], eax
jne 0x415812
mov eax, dword [edi + 0x74]
test eax, 0x8000
jne 0x415812
or eax, 0x8000
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x41580b
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x8000
and dword [edi + 0x74], 0xffff7fff
mov ebx, 0x10
test byte [ebp + 8], bl
je 0x4158cd
xor esi, esi
test byte [edi + 0x70], bl
jne 0x4158cd
mov eax, dword [edi + 0x74]
test bl, al
jne 0x4158cd
mov ecx, dword [0x42a9a8]
mov edx, dword [0x42a9ac]
or eax, ebx
sub esp, 0x10
mov dword [edi + 0x74], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x42a9b0]
mov dword [eax + 4], edx
mov edx, dword [0x42a9b4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, str.StormNCStormNC_R.dll
mov ecx, edi
call fcn.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415890
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], ebx
mov esi, dword [ebp - 0x210]
and dword [edi + 0x74], 0xffffffef
test esi, esi
je 0x4158cd
cmp dword [esi + 0x18], 0
je 0x4158cd
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx]
lea esi, [edi + 0x88]
push esi
push 0x42adf0
push eax
call edx
mov eax, dword [esi]
test eax, eax
je 0x4158cd
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4158cd
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
test byte [ebp + 8], 0x20
je 0x41593a
test byte [edi + 0x70], 0x20
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x41593a
mov eax, dword [edi + 0x74]
test al, 0x20
jne 0x41593a
or eax, 0x20
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415936
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x20
and dword [edi + 0x74], 0xffffffdf
mov ebx, 8
test byte [ebp + 8], bl
je 0x4159a8
test byte [edi + 0x70], bl
jne 0x4159a8
mov eax, dword [edi + 0x74]
test bl, al
jne 0x4159a8
mov ecx, dword [0x42a978]
mov edx, dword [0x42a97c]
or eax, ebx
sub esp, 0x10
mov dword [edi + 0x74], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x42a980]
mov dword [eax + 4], edx
mov edx, dword [0x42a984]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, str.binSKMD.dll
mov ecx, edi
call fcn.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x4159a4
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], ebx
and dword [edi + 0x74], 0xfffffff7
test byte [ebp + 8], 2
je 0x415a15
test byte [edi + 0x70], 2
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x415a15
mov eax, dword [edi + 0x74]
test al, 2
jne 0x415a15
or eax, 2
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415a11
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 2
and dword [edi + 0x74], 0xfffffffd
test byte [ebp + 8], 4
je 0x415a82
test byte [edi + 0x70], 4
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x415a82
mov eax, dword [edi + 0x74]
test al, 4
jne 0x415a82
or eax, 4
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415a7e
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 4
and dword [edi + 0x74], 0xfffffffb
test byte [ebp + 8], 1
je 0x415aef
test byte [edi + 0x70], 1
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x415aef
mov eax, dword [edi + 0x74]
test al, 1
jne 0x415aef
or eax, 1
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415aeb
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 1
and dword [edi + 0x74], 0xfffffffe
mov eax, 0x400
test dword [ebp + 8], eax
je 0x415b6a
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
test dword [edi + 0x70], eax
jne 0x415b6a
mov eax, dword [edi + 0x74]
test eax, 0x400
jne 0x415b6a
or eax, 0x400
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415b63
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x400
and dword [edi + 0x74], 0xfffffbff
test byte [ebp + 8], 0x80
je 0x415bdf
test byte [edi + 0x70], 0x80
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x415bdf
mov eax, dword [edi + 0x74]
test al, al
js 0x415bdf
or eax, 0x80
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415bd8
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x80
and dword [edi + 0x74], 0xffffff7f
test byte [ebp + 8], 0x40
je 0x415d32
test byte [edi + 0x70], 0x40
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
jne 0x415c50
mov eax, dword [edi + 0x74]
test al, 0x40
jne 0x415c50
or eax, 0x40
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415c4c
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x40
and dword [edi + 0x74], 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 [0x436f8c]
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 0x415cbc
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 0x415cf7
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 0x415d32
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 0x415dad
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
test dword [edi + 0x70], eax
jne 0x415dad
mov eax, dword [edi + 0x74]
test eax, 0x800
jne 0x415dad
or eax, 0x800
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415da6
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x800
and dword [edi + 0x74], 0xfffff7ff
mov eax, 0x2000
test dword [ebp + 8], eax
je 0x415e28
mov ecx, dword [0x428bc8]
mov edx, dword [0x428bcc]
mov esi, dword [0x428bd0]
mov ebx, dword [0x428bd4]
test dword [edi + 0x70], eax
jne 0x415e28
mov eax, dword [edi + 0x74]
test eax, 0x2000
jne 0x415e28
or eax, 0x2000
sub esp, 0x10
mov dword [edi + 0x74], 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.00415ef0
mov dword [ebp - 0x210], eax
test eax, eax
je 0x415e21
lea esi, [edi + 0x60]
lea ecx, [ebp - 0x210]
call fcn.00416250
or dword [edi + 0x70], 0x2000
and dword [edi + 0x74], 0xffffdfff
call dword [sym.imp.crt.dll_Ordinal_99]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004223ce
mov esp, ebp
pop ebp
ret 4