Function at 0x41df50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x445b04
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp + 8], ebx
jne 0x41dff7
mov cl, byte [ebp + 0xb]
push eax
mov byte [ebp - 0x20], cl
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xec]
push edx
mov byte [ebp - 4], 1
call fcn.00404050
lea eax, [ebp - 0xec]
push 0x43d568
push eax
mov dword [ebp - 0xec], vtable.FileNotFound.0
call sub.MSVCRT.dll__CxxThrowException
push ebx
push 1
lea ecx, [ebp - 0x44]
push 0xe
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x41e062
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.00404050
lea ecx, [ebp - 0x60]
push 0x43f458
push ecx
mov dword [ebp - 0x60], vtable.FileBroken.0
call sub.MSVCRT.dll__CxxThrowException
cmp word [ebp - 0x44], 0x4d42
je 0x41e0c7
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 3
call fcn.00404050
lea ecx, [ebp - 0xb4]
push 0x43d3e0
push ecx
mov dword [ebp - 0xb4], vtable.UnknownFormat.0
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x3a]
push 1
lea esi, [edx - 0xe]
push esi
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x41e134
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [ebp - 0x7c]
push 0x43be10
push edx
mov dword [ebp - 0x7c], vtable.InsufficientMemory.0
call sub.MSVCRT.dll__CxxThrowException
push ebx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x41e1a4
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x98]
call fcn.00404050
lea edx, [ebp - 0x98]
push 0x43f458
push edx
mov dword [ebp - 0x98], vtable.FileBroken.0
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [edi]
xor eax, eax
mov ax, word [ecx + 0xe]
imul eax, dword [ecx + 4]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [edi + 4], eax
mov esi, dword [ecx + 8]
imul esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x41e260
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x20]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41e231
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, ecx
mov esi, 0x446fe0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0xd0]
push 0x43be10
push ecx
mov dword [ebp - 0xd0], vtable.InsufficientMemory.0
call sub.MSVCRT.dll__CxxThrowException
push ebx
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x41e312
mov dl, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x446fe0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x446fe0
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x108]
push eax
mov byte [ebp - 4], 7
call fcn.00404050
lea ecx, [ebp - 0x108]
push 0x43f458
push ecx
mov dword [ebp - 0x108], vtable.FileBroken.0
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x24]
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov edx, dword [esi + 8]
push edx
call edi
mov eax, dword [esi]
mov dword [esi + 8], 0
push eax
call edi
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
mov dword [esi], 0
je 0x41e309
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0
push 0
call sub.MSVCRT.dll__CxxThrowException
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4