Function at 0x6ae460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e44ce
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x84
mov eax, dword [0x75aa5c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0
je 0x6ae4bd
push 1
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x78], eax
jmp 0x6ae4c4
mov dword [ebp - 0x78], 0
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 8], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x6ae4e1
cmp dword [ebp + 0xc], 0
jne 0x6ae4eb
mov eax, 0x3e9
jmp 0x6ae832
lea ecx, [ebp - 0x34]
call fcn.0042b810
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x71ca4c
lea ecx, [ebp - 0x34]
push ecx
call fcn.004a4380
add esp, 0x10
lea ecx, [ebp - 0x38]
call fcn.004db640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405360
push eax
call fcn.005a7ce0
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00405360
push eax
lea ecx, [ebp - 0x38]
call fcn.004db6a0
lea ecx, [ebp - 0x38]
call fcn.004db780
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x6ae566
lea ecx, [ebp - 0x38]
call fcn.004db780
push eax
call fcn.006bfd5d
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x74]
cmp dword [edx + 8], 0
jne 0x6ae5cd
push 0xc
call fcn.005a7c1e
add esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x6c], 0
je 0x6ae5ad
mov ecx, dword [ebp - 0x6c]
call fcn.006be240
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
jmp 0x6ae5b7
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x34]
call fcn.00405360
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be2f0
push str.begin_IMMEDIATE_transaction_
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
mov dword [ebp - 0x3c], 1
push str.CREATE_TABLE_File_Type___t_t_t_t_t_tType_ID___________INTEGER_____not_null__t_t_t_t_t_tTypeName__________TEXT________not_null__t_t_t_t_t_tRequestInterval___INTEGER_____not_null__t_t_t_t_t_tVersion___________INTEGER___not_null__t_t_t_t_t_tLastUpdateTime____INTEGER___not_null__t_t_t_t_t_tPRIMARY_KEY_____Type_ID__t_t_t_t_t_t__
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
call fcn.006be480
push str.CREATE_TABLE_File_Info___t_t_t_t_t_tfile_id________INTEGER_____not_null__t_t_t_t_t_tType_ID________INTEGER_____not_null__t_t_t_t_t_tFileName_______TEXT__t_t_t_t_t_tfileSize_______INTEGER_____not_null__t_t_t_t_t_tMaxSegSize_____INTEGER_____not_null__t_t_t_t_t_texternsion_____TEXT________not_null__t_t_t_t_t_tchecksum_______TEXT__t_t_t_t_t_tstatus_________INTEGER_____not_null__t_t_t_t_t_tdownloadtime___INTEGER__t_t_t_t_t_tfileVersion____INTEGER_____not_null__t_t_t_t_t_tPRIMARY_KEY__file_id_Type_ID__t_t_t_t_t_t__
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
push str.CREATE_TABLE_AdFile_Info___t_t_t_t_t_t__file_id________INTEGER____not_null__t_t_t_t_t_t__starttime______INTEGER___not_null__t_t_t_t_t_t__endtime________INTEGER___not_null__t_t_t_t_t_t__duration_______INTEGER_____not_null__t_t_t_t_t_t__channels_______TEXT________not_null__t_t_t_t_t_t__PlayedCount____INTEGER_____not_null__t_t_t_t_t_t__adVersion______TEXT________not_null__t_t_t_t_t_t__usageType______INTEGER_____not_null__t_t_t_t_t_t__AppType________INTEGER_____not_null__t_t_t_t_t_t__TimesRules_____TEXT________not_null__t_t_t_t_t_t__ClickURL_______TEXT___t_t_t_t_t_t__cpm___INTEGER___t_t_t_t_t_t__adTemplateID___INTEGER___t_t_t_t_t_t__preDuration____INTEGER___t_t_t_t_t_t__affiliateID____TEXT___t_t_t_t_t_t__cmd___INTEGER___t_t_t_t_t_t__age____TEXT___t_t_t_t_t_t__gender___INTEGER___t_t_t_t_t_t__stopOnClick___INTEGER___t_t_t_t_t_t__UnInterrupt___INTEGER___t_t_t_t_t_t__PRIMARY_KEY_____file_id__t_t_t_t_t_t____
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
push str.CREATE_TABLE_file_content___t_t_t_t_t_t___file_id________INTEGER_____not_null__t_t_t_t_t_t___segment_id_____INTEGER_____not_null__t_t_t_t_t_t___segment________BLOB________not_null__t_t_t_t_t_t___SIZE___________INTEGER_____not_null__t_t_t_t_t_t___Type_ID________INTEGER_____not_null__t_t_t_t_t_t___PRIMARY_KEY____file_id__segment_id__Type_ID__t_t_t_t_t_t_____
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
call fcn.006be480
push str.CREATE_TABLE_file_url__file_id__INTEGER_____not_null_Url______TEXT________not_null_UrlType__INTEGER_____not_null__
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
push str.CREATE_TABLE_ad_Group__file_id________INTEGER______not_null_GroupID________INTEGER______not_null__
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
push str.CREATE_TABLE_ad_Language_file_id__INTEGER__not_null__langauge__TEXT__not_null__
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
call fcn.006be480
push str.CREATE_TABLE_ad_Playcount_file_id_INTEGER__not_null__playedtime_INTEGER_not_null__PRIMARY_KEY___file_id_playedtime____
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
push str.CREATE_TABLE_AdTemplate_id_INTEGER__not_null__version_INTEGER_not_null_content__BLOB_not_null__Type_ID_INTEGER_not_null_PRIMARY_KEY___id_Type_ID____
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
push str.INSERT_INTO_File_Type_VALUES_1_ChannelPicture_86400_0_0__
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
call fcn.006be480
push str.INSERT_INTO_File_Type_VALUES_2_ChannelLogo_86400_0_0__
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
push str.INSERT_INTO_File_Type_VALUES_3_Advertisement_86400_0_0__
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
push str.INSERT_INTO_File_Type_VALUES_4_OtherFile_86400_0_0__
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 8]
call fcn.006be480
push str.INSERT_INTO_File_Type_VALUES_5_AdTemplate_86400_0_0__
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
lea ecx, [ebp - 0x58]
call fcn.0042b810
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 4
push 6
push str.INSERT_INTO_File_Type_VALUES__d_Overlay_86400_0_0__
lea ecx, [ebp - 0x58]
push ecx
call fcn.004a4380
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00405360
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
push 8
push str.PRAGMA_user_version___lu__
lea ecx, [ebp - 0x58]
push ecx
call fcn.004a4380
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00405360
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
call fcn.006be480
mov dword [ebp - 0x3c], 2
push str.commit_transaction_
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 8]
call fcn.006be480
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00405300
jmp 0x6ae7f0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x6ae80e
lea ecx, [ebp - 0x34]
call fcn.00405360
push eax
call fcn.005ab180
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004db660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405300
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005a6f18
mov esp, ebp
pop ebp
ret 0xc