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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, ecx
push ebx
lea ebx, [ebp - 0x78]
sub esp, 0xec
mov dword [esp], ebx
call method.std::_MakeUniq_OpenMPT::CSoundFile_::__single_object_std::make_unique_OpenMPT.CSoundFile___
mov eax, dword [ebp - 0x78]
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x78], 0
mov dword [edi + 0x18], eax
test esi, esi
je 0x70152be8
mov ecx, esi
call fcn.70115dec
mov dword [esp + 4], 0x13d0b0
mov dword [esp], esi
call sym.operator_delete_void__unsigned_int_
mov ecx, ebx
xor ebx, ebx
call method.std::unique_ptr_OpenMPT::CSoundFile__std::default_delete_OpenMPT::CSoundFile___.unique_ptr____clone_.isra.0_
mov word [edi + 0x1c], 0
call method.OpenMPT::mpt.global_prng__
mov dword [esp], 0x90
mov esi, eax
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x78], 0
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x74], 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [esp], esi
mov dword [esp + 4], ecx
call sym.__ZNSt24uniform_int_distributionIjEclIN7OpenMPT3mpt16thread_safe_prngISt20discard_block_engineISt26subtract_with_carry_engineI
mov dword [ebp + ebx*4 - 0xa8], eax
push edx
inc ebx
push edx
cmp ebx, 0xc
jne 0x70152c1e
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
lea ebx, [ebp - 0xa8]
mov edx, dword [ebx]
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0xac]
mov dword [ebp - 0x78], edx
lea esi, [ebp - 0x78]
je 0x70152c83
mov dword [eax], edx
add eax, 4
mov dword [ebp - 0xb0], eax
jmp 0x70152c97
mov dword [esp + 4], esi
mov dword [esp], eax
lea ecx, [ebp - 0xb4]
call method.void_std::vector_unsigned_int__std::allocator_unsigned_int___._M_realloc_insert_unsigned_int____gnu_cxx::__normal_iterator_unsigned_int__std::vector_unsigned_int__std::allocator_unsigned_int_______unsigned_int_
push eax
push eax
add ebx, 4
cmp ebx, esi
jne 0x70152c60
jmp 0x70152cbd
mov dword [ebx], 0x8b8b8b8b
lea eax, [ebp - 0x18]
add ebx, 4
cmp ebx, eax
jne 0x70152cbd
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xb0]
sub eax, dword [ebp - 0xc0]
sar eax, 2
mov dword [ebp - 0xcc], eax
inc eax
mov dword [ebp - 0xc8], eax
mov esi, eax
cmp eax, 0x18
jae 0x70152d01
mov esi, 0x18
xor ecx, ecx
mov ebx, 0x18
xor edx, edx
mov eax, ecx
div ebx
mov dword [ebp - 0xd0], edx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xd4], eax
lea eax, [ecx + 0xa]
div ebx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xd8], eax
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
lea eax, [ecx - 1]
div ebx
mov eax, dword [ebp + edx*4 - 0x78]
mov edx, dword [ebp - 0xd4]
xor eax, dword [edx]
xor eax, dword [ebp - 0xdc]
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x19660d
test ecx, ecx
jne 0x70152d6b
mov edx, dword [ebp - 0xcc]
add edx, eax
jmp 0x70152d94
mov edx, dword [ebp - 0xd0]
add edx, eax
cmp dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc4], edx
jb 0x70152d9a
mov edx, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xd0]
add ebx, dword [edx + ecx*4 - 4]
lea edx, [ebx + eax]
mov dword [ebp - 0xc4], edx
add eax, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xd8]
mov ebx, 0x18
mov dword [edx], eax
lea eax, [ecx + 0xd]
xor edx, edx
div ebx
mov eax, dword [ebp - 0xc4]
inc ecx
add dword [ebp + edx*4 - 0x78], eax
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xc4]
cmp esi, ecx
mov dword [eax], edx
jne 0x70152d03
cmp dword [ebp - 0xc8], 0xffffffe8
sbb eax, eax
and eax, 0x18
lea eax, [esi + eax + 1]
mov dword [ebp - 0xcc], eax
lea eax, [esi + 1]
cmp dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], eax
je 0x70152e7a
mov ebx, 0x18
mov eax, esi
xor edx, edx
div ebx
mov ecx, edx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xc8], eax
lea eax, [esi + 0xa]
div ebx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xc4], eax
lea eax, [esi - 1]
div ebx
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
add eax, dword [ebp + edx*4 - 0x78]
mov edx, dword [ebp - 0xc8]
add eax, dword [edx]
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x5d588b65
mov edx, eax
sub edx, ecx
mov ecx, edx
mov edx, dword [ebp - 0xc4]
xor eax, dword [edx]
mov dword [edx], eax
lea eax, [esi + 0xd]
xor edx, edx
mov esi, dword [ebp - 0xd0]
div ebx
mov eax, dword [ebp - 0xc8]
xor dword [ebp + edx*4 - 0x78], ecx
mov dword [eax], ecx
jmp 0x70152deb
xor esi, esi
mov eax, dword [ebp + esi*8 - 0x74]
mov ecx, dword [ebp + esi*8 - 0x78]
mov edx, eax
mov eax, 0
xor ebx, ebx
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp - 0xbc]
mov dword [ecx + esi*8], eax
movzx eax, dx
mov dword [ecx + esi*8 + 4], eax
inc esi
cmp esi, 0xc
jne 0x70152e7c
mov eax, dword [ecx + 0x58]
mov dword [ecx + 0x64], 0
or eax, dword [ecx + 0x5c]
mov dword [ecx + 0x68], 0
sete al
movzx eax, al
cmp dword [ebp - 0xc0], 0
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x70], 0
je 0x70152ee2
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [ebp - 0xbc]
mov dword [esp], 4
lea ebx, [eax + 0x78]
mov ecx, ebx
call method.std::vector_OpenMPT::Dither_SimpleImpl_1__false__true___std::allocator_OpenMPT::Dither_SimpleImpl_1__false__true_____.vector_unsigned_int__std::allocator_OpenMPT::Dither_SimpleImpl_1__false__true____const___clone_.isra.0_
push ecx
mov ecx, dword [ebp - 0xbc]
call method.std::discard_block_engine_std::subtract_with_carry_engine_unsigned_long_long__48u__5u__12u___389u__11u_.operator____
mov esi, dword [ebp - 0xbc]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov byte [esi + 0x8c], 1
mov dword [esi + 0x84], eax
lea esi, [ebp - 0x78]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.__ZSt10__do_visitILb0ELb1EZNK7OpenMPT7DithersISt7variantIJNS0_18MultiChannelDitherINS0_11Dither_NoneEEENS3_INS0_17Dither_Simpl
cmp eax, 4
jne 0x70152f67
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax + 0x8c]
cmp al, 0xff
jne 0x70152f54
mov dword [esp], str.Unexpected_index
call method.std.__throw_bad_variant_access_char_const_
lea edx, [ebp - 0x78]
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [eax*4 + 0x702cacf8]
jmp 0x70152f87
lea eax, [ebp - 0x78]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xbc]
mov dword [esp], eax
mov dword [ebp - 0x78], 4
call sym.__ZNSt7variantIJN7OpenMPT18MultiChannelDitherINS0_11Dither_NoneEEENS1_INS0_17Dither_SimpleImplILi1ELb0ELb1EEEEENS1_INS0_14Dith
push edx
push edx
mov ebx, dword [edi + 0x20]
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x78], 0
mov dword [edi + 0x20], eax
test ebx, ebx
je 0x70152fe2
lea ecx, [ebx + 0x78]
call sym.__ZNSt8__detail9__variant16_Variant_storageILb0EJN7OpenMPT18MultiChannelDitherINS2_11Dither_NoneEEENS3_INS2_17Dither_SimpleImp
mov dword [esp + 4], 0x90
mov dword [esp], ebx
call sym.operator_delete_void__unsigned_int_
jmp 0x70152fe2
mov ecx, esi
call method.std::unique_ptr_OpenMPT::DithersWrapperOpenMPT__std::default_delete_OpenMPT::DithersWrapperOpenMPT___.unique_ptr____clone_.isra.0_
mov eax, dword [edi]
mov dword [esp + 4], eax
mov dword [esp], esi
call method.std::_MakeUniq_openmpt::log_forwarder_::__single_object_std::make_unique_openmpt::log_forwarder__openmpt.log_interface__openmpt::log_interface_
mov edx, dword [ebp - 0x78]
mov eax, dword [edi + 4]
mov dword [ebp - 0x78], 0
mov dword [edi + 4], edx
test eax, eax
je 0x70153010
call method.std::default_delete_openmpt::log_forwarder_.operator___openmpt::log_forwarder__const__clone_.isra.0_
lea ecx, [ebp - 0x78]
call method.std::unique_ptr_openmpt::log_forwarder__std::default_delete_openmpt::log_forwarder___.unique_ptr____clone_.isra.0_
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 4]
mov dword [eax + 0x13d0a8], edx
mov eax, dword [ebp + 8]
add eax, 4
mov dword [edi + 8], 0
mov ebx, dword [eax + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x30], 0x3f800000
mov dword [edi + 0x34], 0
mov dword [edi + 0x3c], 0
mov byte [edi + 0x40], 1
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], ebx
je 0x701530b9
lea eax, [ebx + 0x10]
mov ecx, esi
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov ecx, edi
push eax
lea eax, [ebx + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call method.openmpt::module_impl.ctl_set_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__bool_
sub esp, 0xc
lea ecx, [ebp - 0x78]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov dword [esp], ebx
call method.std._Rb_tree_increment_std::_Rb_tree_node_base_const_
mov ebx, eax
jmp 0x70153061
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4