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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0x74], edi
mov esi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
je 0x10003b9a
cmp dword [esp + 0x78], edi
je 0x10003b9a
mov ecx, dword [esi + 4]
mov ebp, dword [esp + 0x6c]
push edi
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x24], ebp
call dword [sym.imp.WINMM.dll_mmioGetInfo]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x10003b9a
cmp dword [esi + 0xd4], edi
mov edi, dword [esp + 0x70]
je 0x100039b9
mov ebx, dword [esi + 0xd4]
cmp ebx, edi
jb 0x10003982
mov ebx, edi
mov edx, dword [esi + 0xd8]
push ebx
lea eax, [esi + edx + 0xdc]
push eax
push ebp
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x100039ad
lea ecx, [ebx + ebp]
mov dword [esp + 0x18], ecx
sub dword [esi + 0xd4], ebx
add dword [esi + 0xd8], ebx
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x100039d4
test eax, eax
je 0x10003bc3
mov dword [esp + 0x6c], eax
jmp 0x100039d8
mov dword [esp + 0x6c], ecx
cmp dword [esp + 0x10], edi
jae 0x10003b82
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x6c]
mov ebx, edi
sub ebx, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x1c], ebx
jbe 0x10003a04
mov dword [esp + 0x6c], eax
mov dword [esi + 0x3c], 0
jmp 0x10003a09
sub eax, ecx
mov dword [esi + 0x3c], eax
xor ebp, ebp
cmp dword [esp + 0x6c], ebp
jbe 0x10003ab0
mov ebx, dword [esp + 0x3c]
lea esp, [esp]
cmp ebx, dword [esp + 0x40]
jne 0x10003a50
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.WINMM.dll_mmioAdvance]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10003b9a
mov ebx, dword [esp + 0x3c]
cmp ebx, dword [esp + 0x40]
je 0x10003bb0
mov ecx, dword [esi + 0x58]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x6c]
sub ecx, dword [esi + 0x5c]
sub eax, ebx
sub edi, ebp
cmp eax, ecx
jl 0x10003a68
mov eax, ecx
cmp edi, eax
jle 0x10003a6e
mov edi, eax
test edi, edi
jle 0x10003aa8
mov ecx, dword [esp + 0x74]
push edi
lea edx, [ecx + ebp]
push ebx
push edx
call sub.MSVCR80.dll_memcpy
add dword [esi + 0x5c], edi
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
add ebx, edi
add esp, 0xc
add ebp, edi
cmp eax, ecx
mov dword [esp + 0x3c], ebx
ja 0x10003a9b
mov eax, ecx
cmp ebp, dword [esp + 0x6c]
mov dword [esi + 0x60], eax
jb 0x10003a20
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x70]
mov ecx, dword [esi + 0xcc]
push 0
lea eax, [esi + 0x78]
push eax
push ecx
call sub.MSACM32.dll_acmStreamConvert
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10003b9a
mov eax, dword [esp + 0x10]
mov ebp, dword [esi + 0x9c]
add eax, ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jb 0x10003b43
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10003af8
mov edx, dword [esp + 0x78]
push ebx
push edx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x10]
sub eax, edi
push eax
mov dword [esi + 0xd4], eax
mov eax, dword [esp + 0x7c]
add ebx, eax
lea ecx, [esi + 0xdc]
push ebx
push ecx
mov dword [esi + 0xd8], 0
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0xd4]
add dword [esi + 0x64], edx
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x14], edi
ja 0x10003b3e
mov eax, ecx
mov dword [esi + 0x68], eax
jmp 0x10003b78
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x10003b60
mov eax, dword [esp + 0x78]
push ebp
push eax
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add ebx, ebp
mov dword [esp + 0x18], ebx
add dword [esi + 0x64], ebp
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
cmp eax, ecx
ja 0x10003b6f
mov eax, ecx
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x68], eax
je 0x10003ba6
cmp dword [esp + 0x10], edi
jb 0x100039e2
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.WINMM.dll_mmioSetInfo]
test eax, eax
mov dword [esi + 0xc], eax
je 0x10003bc3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0x10
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jmp 0x10003b82
pop edi
mov dword [esi + 0xc], 0x105
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x58
ret 0x10
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10