Function at 0x4420b671
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0xf0
lea ebp, [esp - 4]
mov eax, dword [0x442bd0c0]
xor eax, ebp
mov dword [ebp + 0xf0], eax
push 0x34
mov eax, 0x4427ec88
call fcn.4427ccc2
mov eax, dword [ebp + 0x100]
mov esi, dword [ebp + 0x104]
mov edi, dword [ebp + 0x108]
push 0x44282d84
push dword [ebp + 0xfc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.MSVCR90.dll__wfopen]
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x4420b6fa
cmp esi, ebx
je 0x4420b6f3
lea eax, [ebp - 0x40]
push eax
call fcn.4420a59d
pop ecx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
xor al, al
jmp 0x4420b7ff
cmp edi, ebx
je 0x4420b705
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
jmp 0x4420b708
mov dword [ebp - 0x1c], ebx
push 9
xor eax, eax
mov word [ebp + 0xc8], ax
pop ecx
lea edi, [ebp + 0xca]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
stosw word es:[edi], ax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
push dword [eax]
push ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR90.dll_ftell]
push ebx
push ebx
push dword [ebp - 0x10]
mov edi, eax
call esi
add esp, 0x1c
xor esi, esi
cmp edi, ebx
je 0x4420b7bb
push edi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x10]
mov ebx, eax
push 1
push edi
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
push edi
push ebx
push esi
call fcn.4420a386
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push edi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.4420a386
mov ecx, dword [ebp - 0x18]
add esp, 0x30
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push dword [ebp - 0x14]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
pop ecx
xor ebx, ebx
push esi
push edi
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp]
push str._s_d_bytes_to__d_wide_chars
push eax
call dword [sym.imp.MSVCR90.dll__swprintf]
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, ebx
je 0x4420b7e7
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_unsigned_short_int_const__]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [ebp - 0x24]
pop ecx
cmp eax, ebx
je 0x4420b7fd
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xf0]
xor ecx, ebp
call fcn.4427cc16
add ebp, 0xf4
leave
ret