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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
fld qword [edi]
mov eax, dword [ebp + 0x14]
fdiv qword [ebx]
mov ecx, dword [eax]
xor esi, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x50], esi
fstp qword [esp + 0x68]
fldz
fcom qword [edi]
fnstsw ax
test ah, 1
je 0x4122fc
fcomp qword [ebx]
fnstsw ax
test ah, 1
je 0x4122fe
mov ecx, dword [edi + 0xc]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
mov dword [esp + 0x4c], ecx
jle 0x41201b
mov dword [esp + 0x4c], eax
fld qword [ebx]
fcomp qword [edi]
fnstsw ax
test ah, 0x44
mov eax, ebx
jp 0x412040
mov ecx, edi
call fcn.00403560
mov dword [esp + 0x48], eax
cmp eax, esi
jne 0x412084
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x4c]
fld qword [ebx]
lea ecx, [esp + 0x70]
fstp qword [esp + 0x70]
mov dword [esp + 0x78], 0x50
mov dword [esp + 0x7c], edx
call fcn.00403560
mov esi, eax
lea eax, [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x48], esi
call fcn.00403560
mov dword [esp + 0x50], eax
test esi, esi
je 0x4122fe
test eax, eax
je 0x4122fe
push 0x68
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4120a8
mov dword [0x52b0d8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
jne 0x4120da
push esi
mov dword [0x52b0d8], 1
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 4], fcn.00411fc0
mov dword [eax], esi
fld qword [ebx]
fcomp qword [edi]
fnstsw ax
test ah, 0x44
jnp 0x4120f5
mov eax, 1
jmp 0x4120f7
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x20], eax
test eax, eax
jge 0x412120
fadd qword [0x4a6cb8]
fdiv qword [esp + 0x68]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
fnstcw word [esp + 0x50]
xor ecx, ecx
movzx eax, word [esp + 0x50]
or eax, 0xc00
mov dword [esp + 0x58], eax
add esp, 8
fldcw word [esp + 0x50]
fistp qword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esi + 0x24], eax
fldcw word [esp + 0x48]
cmp dword [esi + 0x1c], ecx
je 0x41223a
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
test eax, eax
jge 0x412175
fadd qword [0x4a6cb8]
fmul qword [esp + 0x68]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
fstp qword [esp + 0x58]
fld qword [esp + 0x70]
fstp qword [esp]
call dword [sym.imp.MSVCR90.dll_ceil]
fnstcw word [esp + 0x50]
mov ebx, dword [esp + 0x54]
movzx eax, word [esp + 0x50]
fadd st(0), st(0)
or eax, 0xc00
sub esp, 8
fadd qword [esp + 0x60]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
fldcw word [esp + 0x60]
fistp qword [esp + 0x60]
mov edx, dword [esp + 0x60]
mov dword [esi + 0xc], edx
fldcw word [esp + 0x58]
fld qword [esp + 0x78]
fst qword [esp + 8]
fstp qword [esp]
push ebx
push eax
call dword [sym.imp.libresample.dll_resample_open]
mov ecx, dword [esi + 0x24]
add ebx, ebx
mov dword [esi], eax
add ebx, ebx
add esp, 0x18
mov eax, ebx
call fcn.0040e1b0
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, ebx
call fcn.0040e1b0
cmp dword [esi + 8], 0
mov dword [esi + 4], eax
je 0x412211
test eax, eax
je 0x412211
cmp dword [esi], 0
jne 0x412219
mov dword [esp + 0x5c], 1
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
jmp 0x412242
mov dword [esi], ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
cmp dword [esi + 0x1c], 0
je 0x412252
mov edx, dword [esi + 0xc]
add edx, edx
mov dword [esi + 0x18], edx
jmp 0x41225a
mov eax, dword [esi + 0x20]
add eax, eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
test cl, 4
jne 0x41226f
push eax
push ecx
call fcn.00411f80
add esp, 8
mov ecx, dword [esi + 0x18]
call fcn.0040e1b0
mov dword [esi + 0x10], eax
test eax, eax
je 0x4122be
cmp dword [esp + 0x5c], 0
jne 0x4122be
mov ecx, dword [edi]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx]
mov dword [esi + 0x38], edx
mov eax, dword [ebx + 4]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebx + 8]
mov eax, dword [esp + 0x60]
mov dword [esi + 0x40], ecx
mov edx, dword [ebx + 0xc]
mov dword [esi + 0x44], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x4122ce
push eax
call dword [sym.imp.libresample.dll_resample_close]
add esp, 4
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.MSVCR90.dll_free]
push eax
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call edi
mov eax, dword [esp + 0x6c]
push eax
call edi
push esi
call edi
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret