Function at 0x4545f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5068a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x4c], esi
xor ebx, ebx
mov dword [esp + 0x280], ebx
lea eax, [esp + 0x10]
push eax
mov dword [esi], vtable.Network::CQMNetworkMgr.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
call fcn.004f6120
add esp, 4
mov byte [esp + 0x280], 1
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x4546f4
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
je 0x45467d
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
push str.QMNetworkMgr.dll
lea ecx, [esp + 0x14]
call dword [0x509758]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x45469b
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x4546e0
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4546b2
lea eax, [esp + 0x14]
push eax
call ebp
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4546d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_QMNetworkMgr.dll_from_Exe_directory_failed__error_u.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0x10
jmp 0x4546f4
push str.Load_QMNetworkMgr.dll_from_Exe_directory_success.
jmp 0x4546e5
push str.Cant_find_QMNetworkMgr.dll_in_Exe_directory.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x280], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esi + 0xc], ebx
jne 0x45492e
push 0x1c
lea ecx, [esp + 0x14]
push ecx
push fcn.00454b80
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x45482c
push 0x208
lea edx, [esp + 0x72]
push ebx
push edx
mov word [esp + 0x78], bx
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x104
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x6c]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x45482c
mov word [eax + 2], bx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.QMNetworkMgr.dll
lea ecx, [esp + 0x30]
mov byte [esp + 0x284], 2
call dword [0x509758]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4547c2
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
je 0x454807
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4547d9
lea eax, [esp + 0x30]
push eax
call ebp
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x454800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_QMNetworkMgr.dll_from_module_directory_failed__error_u.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0x10
jmp 0x45481b
push str.Load_QMNetworkMgr.dll_from_module_directory_success.
jmp 0x45480c
push str.Cant_find_QMNetworkMgr.dll_in_install_directory.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esi + 0xc], ebx
jne 0x45492e
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x284], 3
call fcn.004f66a0
add esp, 4
test eax, eax
jne 0x45486e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x4549af
push 0x5c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_]
push str.QMNetworkMgr.dll
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x298], 4
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x284], 5
call dword [0x5096b8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x280], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x280], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x4548e2
lea eax, [esp + 0x30]
push eax
call ebp
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x454909
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Load_QMNetworkMgr.dll_from_qqpcmgr_install_directory_failed__error_u.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0x10
jmp 0x45491d
push str.Load_QMNetworkMgr.dll_from_install_directory_success.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x280], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x45493c
push str.load_QMNetworkMgr.dll_failed___
jmp 0x4549a0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateQMNetworkMgr
push eax
call edi
mov edx, dword [esi + 0xc]
push str.GetVersion
push edx
mov ebp, eax
call edi
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
push str.DestroyQMNetworkMgr
push eax
call edi
cmp ebp, ebx
mov dword [esi + 8], eax
je 0x45498e
cmp eax, ebx
je 0x45498e
call ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x48]
cmp eax, ebx
jne 0x454987
mov dword [esi + 0x10], 1
jmp 0x4549af
call eax
mov dword [esi + 0x10], eax
jmp 0x4549af
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], ebx
push str.error__can_find_CreateQMNetworkMgr_function_in_QMNetworkMgr.dll.
push 2
push str..QMNetworkMgr.cpp
call fcn.004f3a00
add esp, 0xc
mov ecx, dword [esp + 0x278]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret