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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x78]
sub esp, 0xcc
mov ebx, ecx
mov dword [esp], esi
call method.std::_MakeUniq_OpenMPT::CSoundFile_::__single_object_std::make_unique_OpenMPT.CSoundFile___
mov eax, dword [ebp - 0x78]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x78], 0
mov dword [ebx + 0x18], eax
test edi, edi
je 0x629c0b7c
mov ecx, edi
call fcn.62982a4c
mov dword [esp + 4], 0x13d0b0
mov dword [esp], edi
call sym.operator_delete_void__unsigned_int_
mov ecx, esi
call method.std::unique_ptr_OpenMPT::CSoundFile__std::default_delete_OpenMPT::CSoundFile___.unique_ptr____clone_.isra.0_
mov word [ebx + 0x1c], 0
call method.OpenMPT::mpt.global_prng__
mov dword [esp], 0x90
mov edi, eax
call sym.operator_new_unsigned_int_
mov dword [esp + 4], esi
mov dword [esp], edi
mov ecx, esi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xffffffff
call sym.__ZNSt24uniform_int_distributionIjEclIN7OpenMPT3mpt16thread_safe_prngISt20discard_block_engineISt26subtract_with_carry_engineI
push ecx
mov dword [ebp - 0x8c], eax
push ecx
mov ecx, esi
mov dword [esp + 4], esi
mov dword [esp], edi
call sym.__ZNSt24uniform_int_distributionIjEclIN7OpenMPT3mpt16thread_safe_prngISt20discard_block_engineISt26subtract_with_carry_engineI
push edx
mov dword [ebp - 0x88], eax
push edx
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
lea esi, [ebp - 0x8c]
mov edx, dword [esi]
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], edx
lea edi, [ebp - 0x84]
je 0x629c0c17
mov dword [eax], edx
add eax, 4
mov dword [ebp - 0x80], eax
jmp 0x629c0c2a
lea edx, [ebp - 0x78]
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, edi
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 esi, 4
cmp esi, edi
jne 0x629c0bfa
lea eax, [ebp - 0x78]
jmp 0x629c0c53
mov dword [eax], 0x8b8b8b8b
lea edi, [ebp - 0x18]
add eax, 4
cmp eax, edi
jne 0x629c0c53
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
sub eax, dword [ebp - 0xa0]
sar eax, 2
mov dword [ebp - 0xac], eax
inc eax
mov dword [ebp - 0xa8], eax
mov edi, eax
cmp eax, 0x18
jae 0x629c0c94
mov edi, 0x18
xor ecx, ecx
mov esi, 0x18
xor edx, edx
mov eax, ecx
div esi
mov dword [ebp - 0xb0], edx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xb4], eax
lea eax, [ecx + 0xa]
div esi
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xb8], eax
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
lea eax, [ecx - 1]
div esi
mov eax, dword [ebp + edx*4 - 0x78]
mov edx, dword [ebp - 0xb4]
xor eax, dword [edx]
xor eax, dword [ebp - 0xbc]
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x19660d
test ecx, ecx
jne 0x629c0cfe
mov edx, dword [ebp - 0xac]
add edx, eax
jmp 0x629c0d28
mov edx, dword [ebp - 0xb0]
cmp dword [ebp - 0xac], ecx
lea esi, [edx + eax]
mov dword [ebp - 0xa4], esi
jb 0x629c0d2e
mov edx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xb0]
add esi, dword [edx + ecx*4 - 4]
lea edx, [esi + eax]
mov dword [ebp - 0xa4], edx
add eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xb8]
mov esi, 0x18
mov dword [edx], eax
lea eax, [ecx + 0xd]
xor edx, edx
div esi
mov eax, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xa4]
add dword [ebp + edx*4 - 0x78], eax
mov eax, dword [ebp - 0xb4]
inc ecx
mov dword [eax], esi
cmp edi, ecx
jne 0x629c0c96
cmp dword [ebp - 0xa8], 0xffffffe8
sbb eax, eax
and eax, 0x18
lea eax, [edi + eax + 1]
mov dword [ebp - 0xac], eax
lea eax, [edi + 1]
cmp dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], eax
je 0x629c0e0e
mov ecx, 0x18
mov eax, edi
xor edx, edx
div ecx
mov esi, edx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xa8], eax
lea eax, [edi + 0xa]
div ecx
lea eax, [ebp + edx*4 - 0x78]
xor edx, edx
mov dword [ebp - 0xa4], eax
lea eax, [edi - 1]
div ecx
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
add eax, dword [ebp + edx*4 - 0x78]
mov edx, dword [ebp - 0xa8]
add eax, dword [edx]
mov edx, eax
shr eax, 0x1b
xor eax, edx
imul eax, eax, 0x5d588b65
mov edx, eax
sub edx, esi
mov esi, edx
mov edx, dword [ebp - 0xa4]
xor eax, dword [edx]
mov dword [edx], eax
lea eax, [edi + 0xd]
xor edx, edx
mov edi, dword [ebp - 0xb0]
div ecx
mov eax, dword [ebp - 0xa8]
xor dword [ebp + edx*4 - 0x78], esi
mov dword [eax], esi
jmp 0x629c0d7f
xor ecx, ecx
mov eax, dword [ebp + ecx*8 - 0x74]
mov esi, dword [ebp + ecx*8 - 0x78]
mov edx, eax
mov eax, 0
xor edi, edi
add eax, esi
adc edx, edi
mov edi, dword [ebp - 0x9c]
mov dword [edi + ecx*8], eax
movzx eax, dx
mov dword [edi + ecx*8 + 4], eax
inc ecx
cmp ecx, 0xc
jne 0x629c0e10
mov eax, dword [edi + 0x58]
mov dword [edi + 0x64], 0
or eax, dword [edi + 0x5c]
mov dword [edi + 0x68], 0
sete al
movzx eax, al
cmp dword [ebp - 0xa0], 0
mov dword [edi + 0x60], eax
mov dword [edi + 0x70], 0
je 0x629c0e76
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [ebp - 0x9c]
mov dword [esp], 4
lea edi, [eax + 0x78]
mov ecx, edi
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 - 0x9c]
call method.std::discard_block_engine_std::subtract_with_carry_engine_unsigned_long_long__48u__5u__12u___389u__11u_.operator____
mov esi, dword [ebp - 0x9c]
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], edi
mov dword [esp], esi
call sym.__ZSt10__do_visitILb0ELb1EZNK7OpenMPT7DithersISt7variantIJNS0_18MultiChannelDitherINS0_11Dither_NoneEEENS3_INS0_17Dither_Simpl
cmp eax, 4
jne 0x629c0ef8
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax + 0x8c]
cmp al, 0xff
jne 0x629c0ee8
mov dword [esp], str.Unexpected_index
call method.std.__throw_bad_variant_access_char_const_
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [eax*4 + 0x62b35278]
jmp 0x629c0f15
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], esi
mov dword [esp], eax
mov ecx, edi
mov dword [ebp - 0x78], 4
call sym.__ZNSt7variantIJN7OpenMPT18MultiChannelDitherINS0_11Dither_NoneEEENS1_INS0_17Dither_SimpleImplILi1ELb0ELb1EEEEENS1_INS0_14Dith
push edx
push edx
mov edi, dword [ebx + 0x20]
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x78], 0
mov dword [ebx + 0x20], eax
test edi, edi
je 0x629c0f6e
lea ecx, [edi + 0x78]
call sym.__ZNSt8__detail9__variant16_Variant_storageILb0EJN7OpenMPT18MultiChannelDitherINS2_11Dither_NoneEEENS3_INS2_17Dither_SimpleImp
mov dword [esp + 4], 0x90
mov dword [esp], edi
call sym.operator_delete_void__unsigned_int_
jmp 0x629c0f6e
lea ecx, [ebp - 0x78]
call method.std::unique_ptr_OpenMPT::DithersWrapperOpenMPT__std::default_delete_OpenMPT::DithersWrapperOpenMPT___.unique_ptr____clone_.isra.0_
mov eax, dword [ebx]
mov dword [esp + 4], eax
lea eax, [ebp - 0x78]
mov dword [esp], eax
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 [ebx + 4]
mov dword [ebp - 0x78], 0
mov dword [ebx + 4], edx
test eax, eax
je 0x629c0fa0
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 [ebx + 0x18]
mov edx, dword [ebx + 4]
mov dword [eax + 0x13d0a8], edx
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebx + 8], 0
mov edi, dword [eax + 8]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x30], 0x3f800000
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0
mov byte [ebx + 0x40], 1
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], edi
je 0x629c104b
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x78]
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, ebx
push eax
lea eax, [edi + 0x28]
mov dword [esp + 4], eax
lea eax, [ebp - 0x78]
mov dword [esp + 8], 0
mov dword [esp], eax
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
mov ecx, esi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov dword [esp], edi
call method.std._Rb_tree_increment_std::_Rb_tree_node_base_const_
mov edi, eax
jmp 0x629c0ff1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4