Function at 0x1011a050
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019213e
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
push str.VIDEO_IMPORT_IMPL
xor ebx, ebx
push str.Video_Import_Request_Proc__Begine______
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x13c], ebx
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
push 0x20
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x1011a0d3
push eax
call fcn.1011bc30
jmp 0x1011a0d5
xor eax, eax
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], bl
push ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
call fcn.1011b8d0
add edi, 0x70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x138]
mov dword [ebp - 0x14c], edi
call fcn.100c0900
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x134]
cmp esi, ebx
je 0x1011a142
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1011a142
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1011a142
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x138]
call fcn.10033560
lea eax, [ebp - 0x138]
push eax
lea esi, [ebp - 0x158]
mov dword [ebp - 4], 3
call fcn.1011b750
mov eax, dword [ebp - 0x140]
add eax, 0x54
mov byte [ebp - 4], 4
mov dword [ebp - 0x144], eax
call fcn.100370f0
push ebx
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x1011a1a7
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1011a20b
mov ecx, dword [ebp - 0x158]
cmp ecx, ebx
je 0x1011a1d7
mov eax, dword [edi]
mov byte [eax + 0xd], bl
mov eax, dword [edi]
mov byte [eax + 0xc], 1
mov eax, dword [edi]
mov dword [eax + 0x10], 1
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
mov edi, dword [ebp - 0x148]
push ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.10032ed0
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x34], esi
jb 0x1011a895
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jmp 0x1011a892
mov eax, 0xf
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ebx, [eax - 0xe]
lea edi, [ebp - 0x48]
call fcn.10040d20
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 8
cmp eax, 0xffffffff
je 0x1011a7e2
push 0xffffffffffffffff
lea ecx, [eax + 1]
lea esi, [ebp - 0x80]
mov edx, edi
call fcn.100143f0
mov edi, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.1000ae80
mov byte [ebp - 4], 8
cmp dword [ebp - 0x6c], 8
jb 0x1011a289
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_MGStringUtil::convertUnicodeToANSI_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___enum_MGStringUtil::eSrcCodePage_]
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xa
push 1
push 0x101a5d28
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.1000c100
mov byte [ebp - 4], 0xb
mov eax, dword [0x101feda4]
cmp eax, ebx
jne 0x1011a2de
call fcn.10006d40
lea edi, [ebp - 0x80]
mov ecx, eax
call fcn.10062690
lea edx, [ebp - 0xb8]
push edx
push eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 0xc
call fcn.1002c560
push esi
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov byte [ebp - 4], 0xd
call fcn.1002c560
add esp, 0x18
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.1000b240
cmp dword [ebp - 0xc0], 0x10
jb 0x1011a33b
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0x10
mov edi, 0xf
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
cmp dword [ebp - 0xdc], esi
jb 0x1011a36f
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0x6c], esi
jb 0x1011a393
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xa4], esi
jb 0x1011a3b4
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0xf8], esi
jb 0x1011a3de
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.10037170
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.1000bd90
push 0x64
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
mov dword [ebp - 0x12c], edi
mov byte [ebp - 4], 0x10
cmp edi, ebx
je 0x1011a46c
mov esi, dword [ebp - 0x140]
sub esp, 8
lea eax, [esi + 0x78]
mov ecx, esp
mov dword [ebp - 0x140], esp
call fcn.1000f280
mov eax, dword [ebp - 0x144]
push 1
push esi
push 0x10119ee0
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edi
call fcn.10083730
mov esi, 0x10
jmp 0x1011a46e
xor eax, eax
push eax
lea edx, [ebp - 0x130]
mov byte [ebp - 4], 0xf
push edx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
call fcn.1002f630
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x130]
call fcn.10083e20
cmp eax, ebx
je 0x1011a5b4
mov edx, dword [ebp - 0x14c]
mov ecx, dword [edx]
mov byte [ecx + 0xc], 1
mov ecx, dword [edx]
mov byte [ecx + 0xd], bl
mov ecx, dword [edx]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov ecx, dword [edx]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x158]
cmp ecx, ebx
je 0x1011a4d0
mov eax, dword [ecx]
push edx
mov edx, dword [eax]
call edx
mov edi, dword [ebp - 0x148]
push ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.10032ed0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x13c], 1
mov byte [ebp - 4], 0xf
call fcn.100089e0
cmp dword [ebp - 0x88], esi
jb 0x1011a513
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
cmp dword [ebp - 0x50], esi
jb 0x1011a540
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
jb 0x1011a563
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x1011a582
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
lea eax, [ebp - 0x158]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 3
call fcn.100089e0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], bl
call fcn.100089e0
jmp 0x1011a912
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0xf
call fcn.100089e0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x88], esi
jb 0x1011a5df
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 0x12
cmp eax, ebx
je 0x1011a600
push eax
call fcn.100e8140
jmp 0x1011a602
xor eax, eax
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
push ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
call fcn.1011b960
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x130]
lea edx, [ebp - 0x2c]
push edx
mov esi, edi
call fcn.100c2b70
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1011a640
lea eax, [ebp - 0x2c]
push eax
push str.Video_Import_Request_Proc__END_______RemotePath___s
lea esi, [ebp - 0x10c]
call fcn.1000c270
add esp, 8
mov esi, 0x10
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], esi
jb 0x1011a664
mov eax, dword [eax]
push str.VIDEO_IMPORT_IMPL
push eax
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::info_char_const___char_const__]
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0xf8], esi
jb 0x1011a694
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x12c]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
cmp esi, ebx
je 0x1011a6c5
mov edx, esi
call fcn.1000ae40
test al, al
je 0x1011a6c5
mov ebx, esi
push edi
lea esi, [ebp - 0x150]
call fcn.10044ae0
xor ebx, ebx
mov byte [ebp - 4], 0x15
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call edx
mov edi, eax
mov byte [ebp - 4], 0x16
mov byte [ebp - 0x144], bl
mov eax, dword [ebp - 0x144]
push eax
call fcn.10006c80
add esp, 4
mov ebx, eax
call fcn.100a9df0
mov esi, dword [ebp - 0x148]
push eax
push esi
lea ecx, [ebp - 0x150]
call fcn.1011b770
mov edi, 0x10
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x6c], edi
jb 0x1011a72c
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x150]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
mov byte [ebp - 4], 0x13
call fcn.100089e0
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 8
call fcn.100089e0
cmp dword [ebp - 0x50], 8
jb 0x1011a76c
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x18], edi
jb 0x1011a78e
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x1011a7ae
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 3
call fcn.100089e0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], bl
call fcn.100089e0
mov eax, esi
jmp 0x1011a914
push str.VIDEO_IMPORT_IMPL
push str.Something_is_wrong_with_the_ImportPath___
call dword [sym.imp.MGCore.dll_public:_static_class_MGDecorateLog____cdecl_MGSingleton_class_MGDecorateLog__0_::getInstance_void_]
mov ecx, eax
call dword [sym.imp.MGCore.dll_public:_void___thiscall_MGDecorateLog::trace_char_const___char_const__]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov byte [ecx + 0xc], 1
mov ecx, dword [eax]
mov byte [ecx + 0xd], bl
mov ecx, dword [eax]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov ecx, dword [eax]
mov esi, 1
mov dword [ecx + 0x10], esi
mov ecx, dword [ebp - 0x158]
cmp ecx, ebx
je 0x1011a82d
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
call eax
mov edi, dword [ebp - 0x148]
push ebx
push edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.10032ed0
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x13c], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x1011a85a
mov ecx, dword [ebp - 0x64]
push ecx
call esi
add esp, 4
xor edx, edx
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
jb 0x1011a879
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x1011a895
mov ecx, dword [ebp - 0x48]
push ecx
call esi
add esp, 4
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x154]
xor edx, edx
mov word [ebp - 0x48], dx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 7
cmp esi, ebx
je 0x1011a8dc
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x1011a8dc
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x1011a8dc
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x134]
cmp esi, ebx
je 0x1011a912
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x1011a912
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x1011a912
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret 4