Function at 0x4a8cc9
Capabilities:
Read file on windows

Disassembly:
push 0xa0
mov eax, 0x590ecf
call fcn.00584fd1
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 0x4a8f76
cmp dword [ebp + 0x18], ebx
je 0x4a8f76
push ebx
push ebx
push 3
push ebx
push edi
push bind
mov ecx, esi
call sym.txupd.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 0x4a8d40
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 0x4a8f83
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 0x4a8ee1
cmp dword [ebp - 0x58], 4
jne 0x4a8ee1
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 5]
cmp ecx, 0xfffa
ja 0x4a8ee1
cmp dword [ebp - 0x5c], eax
jae 0x4a8dae
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 0x4a8ee1
mov eax, dword [ebp - 0x50]
lea ecx, [eax - 4]
cmp dword [ebp - 0x58], ecx
jne 0x4a8ee1
movzx ecx, word [esi + 0x38]
cmp ecx, eax
jae 0x4a8ee1
movzx edi, word [esi + 0x3a]
cmp edi, eax
jae 0x4a8ee1
movzx ecx, word [esi + 0x3c]
cmp ecx, eax
jae 0x4a8ee1
movzx ecx, word [esi + 0x3e]
cmp ecx, eax
ja 0x4a8ee1
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0x30], eax
jne 0x4a8d55
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 pe_nt_image_headers32
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 [0x60fa08]
jmp 0x4a8e5d
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 + 0x60fa08]
xor ax, word [edi + ebx*2]
movzx eax, ax
test ax, ax
jne 0x4a8e41
mov ecx, dword [ebp - 0x78]
call sym.txupd.exe_public:_int___thiscall_CTXStringW::GetLength_void_const
test eax, eax
je 0x4a8e90
mov ecx, dword [ebp - 0x78]
call sym.txupd.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 0x4a8ecd
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x64], eax
jb 0x4a8ea0
lea ecx, [ebp - 0x74]
call fcn.004a819e
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.004a8b90
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 0x4a8d55
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.004a800f
jmp 0x4a8f26
lea ecx, [ebp - 0x84]
call fcn.004a76ef
push eax
lea ecx, [ebp - 0x2c]
call dword [0x5a3454]
lea ecx, [ebp - 0x84]
call fcn.004a772b
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.004a800f
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x84]
call fcn.004a7755
test al, al
je 0x4a8f06
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.004a82bb
jmp 0x4a8f86
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.00585054
ret