Function at 0x629b5a44
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 esi
push esi
call fcn.629c8e40
test al, al
je 0x629b5b85
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.629c8e60
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.62924984
push ecx
lea esi, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.629c8be0
mov ecx, esi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x90]
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
lea edi, [ebp - 0x54]
push eax
mov ecx, edi
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____
mov ecx, esi
push edx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea ecx, [ebp - 0x64]
call fcn.62a32544
mov eax, dword [ebp - 0xac]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x62b318c4
movzx eax, word [eax + 0xae]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.__ZN7OpenMPT3mpt9ToUnicodeIRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS0_17CharsetTranscoderEEENS3_IcN3mpt14mpt_l
jmp 0x629b5b4a
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.6292db4c
mov ecx, dword [ebp + 0x10]
mov dword [esp], esi
call method.mpt::mpt_libopenmpt::charbuf_32u_.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__
mov ecx, edi
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__
mov eax, dword [ebp - 0xac]
cmp byte [eax + 0xb0], 0
je 0x629b5bb8
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__
mov eax, dword [ebp - 0xb0]
mov dword [esp + 4], 0x54465349
mov dword [esp], eax
lea ecx, [ebp - 0x3c]
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileReader9ChunkListIN7OpenMPT9RIFFChunkENS4_6detail10FileReaderINS1_24FileCursorTraitsFileDataE
push eax
push eax
lea eax, [ebp - 0x3c]
mov dword [esp + 4], str.Modplug_Tracker
mov dword [esp], eax
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadMagicILj16EN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileC
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0xb0], al
call fcn.62925ea8
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x30], 0
lea esi, [eax + 0x28]
lea eax, [ebp - 0x3c]
mov dword [esp + 4], 0x24
mov dword [esp], eax
mov ecx, esi
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push edi
cmp edx, 0x24
push edi
je 0x629b5c31
lea edi, [ebp - 0x3c]
mov ecx, 9
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x629b5d00
mov dword [esp], 0x24
mov ecx, esi
call fcn.62924a9c
cmp dword [ebp - 0x20], 1
push ecx
jbe 0x629b5c98
lea edi, [ebp - 0x54]
mov dword [esp], esi
mov dword [esp + 4], edi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT13WAVSampleLoopENS4_6detail10FileReaderINS1_24FileCursorTraitsFil
test al, al
je 0x629b5c98
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, edi
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 edi, [ebp - 0x54]
mov dword [esp], esi
mov dword [esp + 4], edi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader10ReadStructIN7OpenMPT13WAVSampleLoopENS4_6detail10FileReaderINS1_24FileCursorTraitsFil
test al, al
je 0x629b5cea
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, edi
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 0x629b5cf6
lea eax, [edx + 1]
mov byte [ebx + 0x2a], al
mov ecx, ebx
call method.OpenMPT::ModSample.SanitizeLoops__
cmp byte [ebx + 0x2a], 0
jne 0x629b5d7b
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 0x629b5d7b
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x44], 0
lea esi, [edx + 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 0x629b5d7b
mov dword [esp], 7
mov ecx, esi
call fcn.62924a9c
push eax
mov al, byte [ebp - 0x54]
test al, al
js 0x629b5d77
inc eax
mov byte [ebx + 0x2a], al
jmp 0x629b5d7b
mov byte [ebx + 0x2a], 0
mov eax, dword [ebp - 0xac]
lea esi, [eax + 0x78]
mov ecx, esi
call fcn.629c8e40
test al, al
je 0x629b5e32
mov dword [esp], esi
call sym.__ZN3mpt14mpt_libopenmpt2IO10FileReader9ReadIntLEIjN7OpenMPT6detail10FileReaderINS1_24FileCursorTraitsFileDataENS1_24FileCurso
mov dword [ebp - 0xb4], eax
cmp eax, 9
jbe 0x629b5db0
mov dword [ebp - 0xb4], 9
mov dword [ebp - 0xb0], 0
mov edx, dword [ebp - 0xb4]
cmp dword [ebp - 0xb0], edx
je 0x629b5e16
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 0x629b5df5
mov dword [esp], 0x18
mov ecx, esi
call fcn.62924a9c
push eax
jmp 0x629b5e01
lea edi, [ebp - 0x54]
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0x50]
inc dword [ebp - 0xb0]
mov dword [ebx + edx*4 + 0x44], eax
jmp 0x629b5dba
mov eax, dword [ebp - 0xb0]
lea edx, [ebx + 0x68]
lea eax, [ebx + eax*4 + 0x44]
cmp eax, edx
je 0x629b5e32
mov dword [eax], 0x10000000
add eax, 4
jmp 0x629b5e23
mov eax, dword [ebp - 0xac]
lea esi, [ebp - 0x90]
lea edi, [eax + 0x50]
mov dword [eax + 0x58], 0
mov ecx, edi
mov dword [esp], esi
mov dword [esp + 4], 0x10
call sym.__ZNK3mpt14mpt_libopenmpt2IO10FileCursorINS1_24FileCursorTraitsFileDataENS1_24FileCursorFilenameTraitsINS0_15BasicPathStringIN
push eax
cmp edx, 0x10
push eax
jne 0x629b5e80
mov dword [esp], 0x10
mov ecx, edi
call fcn.62924a9c
test byte [ebp - 0x90], 0x20
push ecx
je 0x629b5e90
or word [ebx + 0x22], 0x20
jmp 0x629b5e90
mov ecx, 4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x629b5fcf
mov eax, dword [ebp - 0x8c]
cmp ax, 0x100
jbe 0x629b5ea1
mov eax, 0x100
mov word [ebx + 0x1c], ax
mov ax, word [ebp - 0x8a]
cmp ax, 0x100
jbe 0x629b5eb7
mov eax, 0x100
mov word [ebx + 0x1e], ax
mov eax, dword [ebp - 0x88]
cmp ax, 0x40
jbe 0x629b5ecc
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.629c8e18
test al, al
push edx
je 0x629b5fcf
mov dword [esp + 4], 0x20
mov dword [esp], edi
lea ecx, [ebp - 0x6c]
call fcn.62924984
lea ecx, [ebp - 0x6c]
push eax
push eax
call fcn.629c8be0
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.62a32544
mov ecx, edi
call fcn.629c8e48
mov dword [esp + 4], eax
mov dword [esp], edi
lea ecx, [ebp - 0x6c]
add ebx, 0x2b
call fcn.62924984
jmp 0x629b5f71
push ecx
push ecx
lea ecx, [ebp - 0x6c]
call fcn.629c8be0
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.62a32544
jmp 0x629b5fcf
lea ecx, [ebp - 0x80]
call fcn.62925ea8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc