Function at 0x4ee080
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50198d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
push edi
push ecx
lea ebp, [esi + 0x20]
push 0
mov ecx, ebp
mov dword [esp + 0x24], ebp
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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [esi + 4]
test al, 0x40
mov ecx, 0x522d78
je 0x4ee0cd
mov ecx, 0x522d70
jmp 0x4ee0d6
test al, 0x20
je 0x4ee0d6
mov ecx, 0x522d68
mov edx, dword [esp + 0xb0]
push ecx
push edx
push esi
mov dword [esi], 0
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x4ee105
mov ecx, esi
mov dword [esi], 0
call fcn.004e8fd0
jmp 0x4ee466
mov ecx, dword [esi]
test ecx, ecx
jne 0x4ee117
mov ecx, esi
call fcn.004e8fd0
jmp 0x4ee466
mov eax, dword [esi + 4]
xor edi, edi
test al, 0x10
mov byte [esp + 0x13], 1
mov dword [esi + 0x18], 1
je 0x4ee37f
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push edi
push ecx
call ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x4ee15e
mov ecx, esi
call fcn.004e9300
xor al, al
jmp 0x4ee466
mov ecx, dword [esi]
push 0
push 0
push ecx
call ebx
mov eax, dword [esi + 0x10]
mov ebx, 0x400
add esp, 0xc
cmp eax, ebx
jge 0x4ee180
mov ebx, eax
test ebx, ebx
je 0x4ee424
push 0x5726d4
push ebx
call fcn.004f018f
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x4ee150
mov edx, dword [esi]
push edx
push 1
push ebx
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
sete al
test al, al
mov byte [esp + 0x13], al
je 0x4ee36d
and dword [esi + 4], 0xfffffffa
xor ebp, ebp
cmp dword [0x5643b0], edi
je 0x4ee23c
xor eax, eax
lea ebx, [ebx]
mov ecx, dword [eax + 0x5643b4]
test ecx, ecx
jle 0x4ee1fd
cmp edi, ebx
jge 0x4ee1fd
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x5643b0]
mov dl, byte [edx + edi]
cmp dl, byte [edi + ecx]
mov ecx, dword [eax + 0x5643b4]
jne 0x4ee1fd
add edi, 1
cmp edi, ecx
jl 0x4ee1da
cmp edi, ecx
je 0x4ee215
add ebp, 1
mov eax, ebp
xor edi, edi
shl eax, 4
cmp dword [eax + 0x5643b0], edi
jne 0x4ee1d0
jmp 0x4ee23c
shl ebp, 4
mov eax, dword [ebp + 0x5643bc]
or eax, dword [esi + 4]
cmp edi, 2
mov dword [esi + 4], eax
jne 0x4ee22c
mov dword [esi + 0x18], edi
mov ecx, dword [ebp + 0x5643b8]
push ecx
lea ecx, [esi + 0x3c]
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_const__]
cmp ebx, edi
jle 0x4ee24f
mov edx, dword [esi]
push 0
push edi
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
test edi, edi
jne 0x4ee34c
lea ecx, [esp + 0x20]
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_]
mov eax, dword [esp + 0x14]
push ebx
push eax
push ecx
mov eax, esp
lea ecx, [esp + 0x64]
mov dword [esp + 0xb4], edi
mov dword [esp + 0x24], esp
mov dword [eax], str.UTF_8
call fcn.004e8750
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
mov byte [esp + 0xa8], 1
neg ecx
or ecx, eax
push ecx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
push ebx
lea ecx, [esp + 0x24]
mov ebp, eax
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_]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
mov dword [esp + 0x9c], ebx
push ebp
lea ecx, [esp + 0x60]
mov dword [eax], str.UTF_16
call fcn.004e9f60
push eax
push ebp
lea ecx, [esp + 0x28]
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__::assign_wchar_t_const___unsigned_int_]
push ebp
call sub.MFC80U.DLL_Ordinal_266
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004e86b0
lea ecx, [esp + 0x40]
push ecx
call fcn.004eae70
add esp, 8
push eax
lea ecx, [esi + 0x3c]
mov byte [esp + 0xac], 2
call dword [0x5096b8]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 1
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 + 0x58]
mov byte [esp + 0xa8], 0
call fcn.004e91a0
lea ecx, [esp + 0x20]
mov dword [esp + 0xa8], 0xffffffff
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 + 0x50], 0
jne 0x4ee369
mov edx, dword [esp + 0x14]
cmp byte [edx], 0x3c
jne 0x4ee369
push str.UTF_8
lea ecx, [esi + 0x3c]
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_const__]
mov ebp, dword [esp + 0x14]
push ebp
call sub.MFC80U.DLL_Ordinal_266
mov ebp, dword [esp + 0x20]
add esp, 4
jmp 0x4ee419
test al, 0x20
je 0x4ee424
test al, 0x40
je 0x4ee3a5
push 2
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 0x10
mov dword [esi + 0x10], eax
xor ecx, ecx
cmp dword [0x5643b0], ecx
je 0x4ee424
mov edx, dword [esi + 4]
xor eax, eax
test dword [eax + 0x5643bc], edx
jne 0x4ee3ce
add ecx, 1
mov eax, ecx
shl eax, 4
cmp dword [eax + 0x5643b0], edi
jne 0x4ee3b4
jmp 0x4ee424
shl ecx, 4
mov ebx, ecx
mov edi, dword [ebx + 0x5643b4]
cmp edi, 2
jne 0x4ee3e1
mov dword [esi + 0x18], edi
mov ecx, dword [ebx + 0x5643b8]
push ecx
lea ecx, [esi + 0x3c]
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_const__]
cmp dword [esi + 0x10], 0
je 0x4ee3fb
xor edi, edi
jmp 0x4ee424
mov edx, dword [esi]
mov eax, dword [ebx + 0x5643b0]
push edx
push 1
push edi
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x4ee10b
test byte [esi + 4], 0x40
je 0x4ee432
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x4ee435
mov dword [esi + 0x14], edi
test edi, edi
je 0x4ee462
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x30], esp
push ebp
mov dword [eax], 0x522d60
call fcn.004edea0
add esp, 0x18
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 4