Function at 0x100396a0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x58
push 0xffffffffffffffff
push 0x10046a32
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x1006c318]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp + 0x54], edi
mov eax, dword [ebp + 0x60]
push 0x100598c4
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR80.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp + 0x60], ebx
jne 0x1003972d
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.10007110
push 0x1006126c
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], vtable.FileNotFoundError.0
call sub.MSVCR80.dll__CxxThrowException
push ebx
push 1
lea eax, [ebp + 0x28]
push 0xe
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x10039777
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10007110
push 0x10064684
lea edx, [ebp]
push edx
mov dword [ebp], vtable.FileBroken.0
call sub.MSVCR80.dll__CxxThrowException
cmp word [ebp + 0x28], 0x4d42
je 0x100397bb
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.10007110
push 0x100615d4
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x88], vtable.UnknownFormat.0
call sub.MSVCR80.dll__CxxThrowException
mov esi, dword [ebp + 0x32]
add esi, 0xfffffff2
push 1
push esi
call dword [sym.imp.MSVCR80.dll_calloc]
add esp, 8
test eax, eax
mov dword [edi], eax
jne 0x10039806
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea edx, [ebp + 0x38]
push edx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.10007110
push 0x1005f0e4
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], vtable.InsufficientMemory.0
call sub.MSVCR80.dll__CxxThrowException
push ebx
push 1
push esi
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x1003984b
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea ecx, [ebp + 0x38]
push ecx
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.10039590
push 0x10064684
lea edx, [ebp - 0xcc]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [edi]
movzx eax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
mov dword [edi + 4], eax
mov esi, dword [ecx + 8]
imul esi, eax
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [edi + 8], eax
jne 0x100398b1
push 0x10053524
lea ecx, [ebp + 0x38]
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__]
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.10012720
push 0x1005f0e4
lea ecx, [ebp - 0xf4]
push ecx
call sub.MSVCR80.dll__CxxThrowException
push ebx
push 1
push esi
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x1003993a
push 0x10053524
lea ecx, [ebp - 0xa4]
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__]
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 7
call fcn.10039590
push 0x10064684
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov esi, dword [ebp + 0x54]
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.MSVCR80.dll_free]
push ecx
call edi
mov edx, dword [esi]
push edx
mov dword [esi + 8], 0
call edi
mov eax, dword [ebp + 0x60]
add esp, 8
test eax, eax
mov dword [esi], 0
je 0x10039931
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push 0
push 0
call sub.MSVCR80.dll__CxxThrowException
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x58
mov esp, ebp
pop ebp
ret 4