Function at 0x495373
Capabilities:
Check if file exists

Disassembly:
push 0xb8
mov eax, 0x5ee309
call fcn.0059bbd7
mov dword [ebp - 0x64], ecx
mov esi, dword [ebp + 8]
push 0x20d
push str.HuabaoInspireVideoWnd::ParseVideoInfo
push str.__s__d___ParseVideoInfo
call fcn.0040a649
xor ebx, ebx
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4953bc
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x495668
cmp dword [esi + 0x14], 8
jb 0x4953d3
mov esi, dword [esi]
sub esp, 0x18
lea ecx, [ebp - 0x6c]
push esi
call fcn.0045fe77
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
js 0x49565d
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0045fec1
mov edi, dword [ebp - 0x74]
mov eax, edi
or eax, dword [ebp - 0x70]
je 0x49565d
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x9c], ebx
sub esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
push 0xd
push dword [ebp - 0x6c]
call fcn.0045fef7
test eax, eax
js 0x49561f
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xbc], ebx
sub esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
push edi
push dword [ebp - 0x6c]
call fcn.0045fef7
test eax, eax
jns 0x495486
mov edi, ebx
cmp dword [ebp - 0xc4], edi
je 0x495601
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x495601
call fcn.004636fe
mov edi, eax
jmp 0x495601
push 0x627e3e
lea ecx, [ebp - 0x28]
call fcn.004045aa
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00404ba6
push str.totalsize
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.00405401
mov edx, eax
mov ecx, edi
call fcn.0043bbcf
push str.bodylen
lea ecx, [ebp - 0x84]
call fcn.00405401
mov edx, eax
mov ecx, edi
call fcn.0043bbcf
push str.headlen
lea ecx, [ebp - 0x84]
call fcn.00405401
mov edx, eax
xor ecx, ecx
call fcn.0043bbcf
push str.pagesize
lea ecx, [ebp - 0x84]
call fcn.00405401
mov ecx, dword [ebp + 0xc]
mov edx, eax
call fcn.0043bbcf
push str.getfilesize
lea ecx, [ebp - 0x84]
call fcn.00405401
mov ecx, dword [ebp + 0x10]
mov edx, eax
call fcn.0043bbcf
lea ecx, [ebp - 0x48]
call fcn.00406b04
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00406b1f
push eax
lea ecx, [ebp - 0x28]
call fcn.00409145
lea ecx, [ebp - 0x60]
call fcn.00404812
push 0x18
call fcn.0059a7c1
mov edi, eax
lea eax, [ebp - 0x28]
pop ecx
push eax
mov ecx, edi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
call fcn.00404698
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push edi
push 0x590
push dword [eax + 8]
call esi
mov eax, dword [ebp - 0x64]
push 0xffffffffffffffff
push dword [eax + 0x1c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x74]
push dword [ebp - 0xc4]
push ecx
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00495672
mov eax, dword [ebp - 0x64]
push ebx
push edi
push 0x591
push dword [eax + 8]
call esi
lea ecx, [ebp - 0x48]
call fcn.004065e4
lea ecx, [ebp - 0x84]
call fcn.00404dbc
lea ecx, [ebp - 0x28]
call fcn.00404812
mov edi, ebx
cmp dword [ebp - 0xc4], edi
je 0x4955fb
push dword [ebp - 0xc4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4955fb
call fcn.004636fe
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xbc], 0
je 0x49561f
push dword [ebp - 0xbc]
call esi
test eax, eax
jne 0x49561f
test edi, edi
js 0x49561f
call fcn.004636fe
cmp dword [ebp - 0xa4], 0
je 0x49563f
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x49563f
call fcn.004636fe
mov ebx, eax
cmp dword [ebp - 0x9c], 0
je 0x49565d
push dword [ebp - 0x9c]
call esi
test eax, eax
jne 0x49565d
test ebx, ebx
js 0x49565d
call fcn.004636fe
cmp dword [ebp - 0x6c], 0
je 0x495668
push dword [ebp - 0x6c]
call esi
xor eax, eax
call fcn.0059bb81
ret 0xc