Function at 0x45476c
Capabilities:
Read file on windows

Disassembly:
push 0xa0
mov eax, 0x4d001d
call fcn.004cbc99
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x60], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
inc edi
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], edi
je 0x454a19
cmp dword [ebp + 0x18], ebx
je 0x454a19
push ebx
push ebx
push 3
push ebx
push edi
push accept
mov ecx, esi
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
jne 0x4547e3
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
jmp 0x454a26
xor esi, esi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
call edi
test eax, eax
je 0x454984
cmp dword [ebp - 0x58], 4
jne 0x454984
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 5]
cmp ecx, 0xfffa
ja 0x454984
cmp dword [ebp - 0x5c], eax
jae 0x454851
push esi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVCR80.dll_free]
push dword [ebp - 0x5c]
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x50]
pop ecx
mov dword [esi], eax
push ebx
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffffc
push eax
lea eax, [esi + 4]
push eax
push dword [ebp - 0x54]
call edi
test eax, eax
je 0x454984
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 4]
cmp dword [ebp - 0x58], ecx
jne 0x454984
movzx ecx, word [esi + 0x38]
cmp ecx, eax
jae 0x454984
movzx edi, word [esi + 0x3a]
cmp edi, eax
jae 0x454984
movzx ecx, word [esi + 0x3c]
cmp ecx, eax
jae 0x454984
movzx ecx, word [esi + 0x3e]
cmp ecx, eax
ja 0x454984
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0x30], eax
jne 0x4547f8
lea ecx, [ebp - 0x48]
add edi, esi
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_]
push 0x100
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 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__::reserve_unsigned_int_]
mov ax, word [edi]
xor ax, word [0x5285c8]
jmp 0x454900
push eax
lea ecx, [ebp - 0x48]
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_]
inc ebx
mov eax, ebx
and eax, 0x3f
mov ax, word [eax*2 + 0x5285c8]
xor ax, word [edi + ebx*2]
movzx eax, ax
test ax, ax
jne 0x4548e4
mov ecx, dword [ebp - 0x78]
call sym.QQProtectUpd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
test eax, eax
je 0x454933
mov ecx, dword [ebp - 0x78]
call sym.QQProtectUpd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jbe 0x454970
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x64], eax
jb 0x454943
lea ecx, [ebp - 0x74]
call fcn.004540b4
push dword [ebp - 0x50]
lea ecx, [ebp - 0xac]
push esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.004546c3
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
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_]
xor ebx, ebx
jmp 0x4547f8
push esi
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.00454002
jmp 0x4549c9
lea ecx, [ebp - 0x84]
call fcn.00453bf4
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x84]
call fcn.00453c30
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
add eax, ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00454002
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x84]
call fcn.00453c5a
test al, al
je 0x4549a9
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 1
call fcn.004540e7
jmp 0x454a29
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x60], edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x4c]
call fcn.004cbd1c
ret