Function at 0x629b6714
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov eax, ecx
mov ebp, esp
push edi
push esi
add eax, 0x8c
push ebx
sub esp, 0xcc
mov dword [ebp - 0xac], ecx
lea ecx, [ebp - 0x80]
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x4d414e49
mov dword [esp], eax
mov dword [ebp - 0xb0], eax
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
lea ecx, [ebp - 0x80]
push edi
push edi
call fcn.629c9c7c
test al, al
je 0x629b6882
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
call fcn.629c9c9c
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x6c]
mov byte [edx], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.62924980
lea ecx, [ebp - 0x6c]
push esi
push esi
call fcn.629c99fc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
lea esi, [ebp - 0x3c]
lea eax, [ebp - 0x90]
mov ecx, esi
mov dword [esp], eax
mov byte [ebp - 0x88], 1
call method.OpenMPT::mpt::StringModeBufRefImpl_char_const_::operator_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______const
push edx
lea edx, [ebp - 0x54]
mov ecx, edx
mov dword [esp], esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea edi, [ebp - 0x6c]
push ecx
mov ecx, esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x64]
call fcn.62a334f4
mov eax, dword [ebp - 0xac]
movzx eax, word [eax + 0xae]
mov dword [esp], edi
mov dword [esp + 4], eax
call method.mpt::mpt_libopenmpt.optional_encoding_from_codepage_unsigned_short_
lea edx, [ebp - 0x54]
cmp byte [ebp - 0x68], 0
jne 0x629b681a
jmp 0x629b686b
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6292cf04
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.6292d53c
mov ecx, dword [ebp + 0x10]
mov dword [esp], edi
call method.mpt::mpt_libopenmpt::charbuf_32u_.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov ecx, edi
push eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x3c]
call method.std::__cxx11::basic_string_char__mpt::mpt_libopenmpt.encoding_char_traits__mpt::mpt_libopenmpt::common_encoding_0__mpt::mpt_libopenmpt::common_encoding___std::allocator_char___::_M_dispose__
lea ecx, [ebp - 0x54]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
jmp 0x629b6882
mov eax, dword [0x62b33ba4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6292cdfc
jmp 0x629b682d
mov eax, dword [ebp - 0xac]
cmp byte [eax + 0xb0], 0
je 0x629b68b5
lea esi, [ebp - 0x54]
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov ecx, esi
call method.mpt::mpt_libopenmpt::charbuf_32u_::operator_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______const
push eax
lea ecx, [ebx + 0x2b]
mov dword [esp], esi
call method.mpt::mpt_libopenmpt::charbuf_22u_.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov ecx, esi
push eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea esi, [ebp - 0x3c]
mov eax, dword [ebp - 0xb0]
mov dword [esp + 4], 0x54465349
mov dword [esp], eax
mov ecx, esi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
push eax
push eax
mov dword [esp + 4], str.Modplug_Tracker
mov dword [esp], esi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadMagicILj16EN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileC
mov ecx, esi
mov byte [ebp - 0xb0], al
call fcn.62925aac
mov eax, dword [ebp - 0xac]
lea edi, [eax + 0x28]
mov dword [eax + 0x30], 0
mov ecx, edi
mov dword [esp], esi
mov dword [esp + 4], 0x24
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 0x24
push eax
je 0x629b6928
mov ecx, 9
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x629b69f7
mov dword [esp], 0x24
mov ecx, edi
call fcn.62924a94
cmp dword [ebp - 0x20], 1
push ecx
lea esi, [ebp - 0x54]
jbe 0x629b698f
mov dword [esp + 4], esi
mov dword [esp], edi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT13WAVSampleLoopENS4_6detail10FileReaderINS1_24FileCursorTraitsFil
test al, al
je 0x629b698f
movzx eax, byte [ebp - 0xb0]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x22]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov ecx, esi
mov eax, dword [ebx]
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
lea eax, [ebx + 0xc]
mov dword [esp], eax
call method.OpenMPT::WAVSampleLoop.ApplyToSample_unsigned_int__unsigned_int__unsigned_int__OpenMPT::FlagSet_OpenMPT::ChannelFlags__unsigned_short___OpenMPT::ChannelFlags__OpenMPT::ChannelFlags__bool__const
sub esp, 0x1c
lea eax, [ebp - 0x54]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT13WAVSampleLoopENS4_6detail10FileReaderINS1_24FileCursorTraitsFil
test al, al
je 0x629b69e1
movzx eax, byte [ebp - 0xb0]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x22]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
mov ecx, esi
mov eax, dword [ebx]
mov dword [esp + 8], eax
lea eax, [ebx + 8]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call method.OpenMPT::WAVSampleLoop.ApplyToSample_unsigned_int__unsigned_int__unsigned_int__OpenMPT::FlagSet_OpenMPT::ChannelFlags__unsigned_short___OpenMPT::ChannelFlags__OpenMPT::ChannelFlags__bool__const
sub esp, 0x1c
mov edx, dword [ebp - 0x30]
xor eax, eax
test dl, dl
js 0x629b69ed
lea eax, [edx + 1]
mov byte [ebx + 0x2a], al
mov ecx, ebx
call method.OpenMPT::ModSample.SanitizeLoops__
cmp byte [ebx + 0x2a], 0
jne 0x629b6a72
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx]
mov dword [esp + 4], 7
mov dword [esp], 0
call dword [eax + 0x20]
push edx
test al, al
push edx
je 0x629b6a72
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xac]
mov dword [eax + 0x44], 0
lea esi, [edi + 0x3c]
lea eax, [ebp - 0x54]
mov dword [esp + 4], 7
mov dword [esp], eax
mov ecx, esi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 7
push eax
jne 0x629b6a72
mov dword [esp], 7
mov ecx, esi
call fcn.62924a94
push eax
mov al, byte [ebp - 0x54]
test al, al
js 0x629b6a6e
inc eax
mov byte [ebx + 0x2a], al
jmp 0x629b6a72
mov byte [ebx + 0x2a], 0
mov eax, dword [ebp - 0xac]
lea esi, [eax + 0x78]
mov ecx, esi
call fcn.629c9c7c
test al, al
je 0x629b6b29
mov dword [esp], esi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntLEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [ebp - 0xb4], eax
cmp eax, 9
jbe 0x629b6aa7
mov dword [ebp - 0xb4], 9
mov dword [ebp - 0xb0], 0
mov edi, dword [ebp - 0xb4]
cmp dword [ebp - 0xb0], edi
je 0x629b6b0d
lea eax, [ebp - 0x54]
mov dword [esp + 4], 0x18
mov dword [esp], eax
mov ecx, esi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 0x18
push eax
jne 0x629b6aec
mov dword [esp], 0x18
mov ecx, esi
call fcn.62924a94
push eax
jmp 0x629b6af8
lea edi, [ebp - 0x54]
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0xb0]
mov dword [ebx + edi*4 + 0x44], eax
jmp 0x629b6ab1
mov eax, dword [ebp - 0xb0]
lea edx, [ebx + 0x68]
lea eax, [ebx + eax*4 + 0x44]
cmp eax, edx
je 0x629b6b29
mov dword [eax], 0x10000000
add eax, 4
jmp 0x629b6b1a
mov eax, dword [ebp - 0xac]
lea esi, [ebp - 0x90]
add eax, 0x50
mov dword [eax + 8], 0
mov dword [esp], esi
mov dword [esp + 4], 0x10
mov ecx, eax
mov edi, eax
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 0x10
push eax
jne 0x629b6b79
mov dword [esp], 0x10
mov ecx, edi
call fcn.62924a94
test byte [ebp - 0x90], 0x20
push ecx
je 0x629b6b89
or word [ebx + 0x22], 0x20
jmp 0x629b6b89
mov ecx, 4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x629b6cc8
mov eax, dword [ebp - 0x8c]
cmp ax, 0x100
jbe 0x629b6b9a
mov eax, 0x100
mov word [ebx + 0x1c], ax
mov ax, word [ebp - 0x8a]
cmp ax, 0x100
jbe 0x629b6bb0
mov eax, 0x100
mov word [ebx + 0x1e], ax
mov eax, dword [ebp - 0x88]
cmp ax, 0x40
jbe 0x629b6bc5
mov eax, 0x40
mov word [ebx + 0x20], ax
mov eax, dword [ebp - 0x84]
mov dword [ebx + 0x26], eax
mov ecx, edi
mov dword [esp], 0x20
call fcn.629c9c58
test al, al
push edx
je 0x629b6cc8
mov dword [esp + 4], 0x20
mov dword [esp], edi
lea ecx, [ebp - 0x6c]
call fcn.62924980
lea ecx, [ebp - 0x6c]
push eax
push eax
call fcn.629c99fc
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
mov dword [esp], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x94], 1
call method.OpenMPT::mpt::StringModeBufRefImpl_char_const_::operator_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______const
lea eax, [ebp - 0x54]
push esi
mov ecx, dword [ebp + 0x10]
mov dword [esp], eax
call method.mpt::mpt_libopenmpt::charbuf_32u_.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea ecx, [ebp - 0x54]
push eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x64]
call fcn.62a334f4
mov ecx, edi
call fcn.629c9c84
mov dword [esp + 4], eax
mov dword [esp], edi
lea ecx, [ebp - 0x6c]
add ebx, 0x2b
call fcn.62924980
jmp 0x629b6c6a
push ecx
push ecx
lea ecx, [ebp - 0x6c]
call fcn.629c99fc
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
mov dword [esp], eax
mov byte [ebp - 0x94], 1
call method.OpenMPT::mpt::StringModeBufRefImpl_char_const_::operator_std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char______const
push eax
lea eax, [ebp - 0x54]
mov ecx, ebx
mov dword [esp], eax
call method.mpt::mpt_libopenmpt::charbuf_22u_.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea ecx, [ebp - 0x54]
push edx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x64]
call fcn.62a334f4
jmp 0x629b6cc8
lea ecx, [ebp - 0x80]
call fcn.62925aac
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc