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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov al, byte [ebp + 2]
mov ecx, dword [ebp + 4]
xor ebx, ebx
cmp al, bl
push edi
mov dword [esi], 0x6dc414
mov dword [esi + 0xe], 0xffffffff
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov byte [esi + 0xc], al
mov byte [esi + 0xd], bl
jne 0x5f3be7
mov byte [esi + 0xd], 1
mov byte [esi + 0xc], 1
mov eax, dword [esp + 0x24]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push eax
mov word [esi + 0x12], bx
mov dword [esi], 0x714918
lea edi, [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp dword [edi], 0xffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x20], 0x54
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x3c], ebx
je 0x5f3d12
movzx ecx, word [ebp + 0x10]
add ecx, 0x12
push ecx
call fcn.0069c0de
mov dword [esi + 0x18], eax
mov edx, dword [ebp]
mov dword [eax], edx
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov dx, word [ebp + 0x10]
mov ecx, dword [esp + 0x30]
mov word [eax + 0x10], dx
movzx eax, word [ebp + 0x10]
mov edx, dword [esi + 0x18]
add esp, 4
push eax
push ecx
add edx, 0x12
push edx
call fcn.006a4bd0
mov eax, dword [esi + 0x18]
mov word [esp + 0x18], 1
mov cx, word [eax + 2]
add esp, 0xc
cmp cx, bx
mov word [esp + 0xe], cx
jne 0x5f3ca2
mov cx, 1
mov word [esp + 0xe], cx
mov edx, dword [eax + 4]
movzx ecx, cx
imul ecx, edx
push ebx
push ebx
push ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1a]
add ecx, ecx
push ebx
mov dword [esp + 0x24], ecx
lea ecx, [edx + edx]
push eax
lea edx, [esp + 0x20]
push edx
push ebx
lea ebp, [esi + 0x1c]
push ebp
mov word [esp + 0x38], cx
mov word [esp + 0x3a], 0x10
mov word [esp + 0x3c], bx
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x5f3d21
mov eax, dword [esi + 0x18]
push 4
push ebx
push ebx
push ebx
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
call sub.MSACM32.dll_acmStreamOpen
test eax, eax
je 0x5f3d21
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x5f3d12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
or byte [esi + 0xd], 1
mov eax, esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [ebp]
cmp ecx, ebx
je 0x5f3cfe
movzx eax, word [esp + 0x18]
push ebx
lea ebp, [esi + 0x78]
shl eax, 0xd
push ebp
push eax
push ecx
mov dword [esi + 0x74], eax
mov dword [ebp], ebx
call sub.MSACM32.dll_acmStreamSize
cmp dword [ebp], ebx
je 0x5f3cfe
mov edx, dword [esi + 0x74]
push edx
call fcn.0069c0de
mov ecx, dword [ebp]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x74]
add esp, 4
push ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
call fcn.0069c0de
mov edx, dword [ebp]
add esp, 4
mov dword [esi + 0x3c], eax
push ebx
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebx
call sub.MSACM32.dll_acmStreamPrepareHeader
cmp dword [esi + 0x80], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x7c], ebx
jne 0x5f3da6
mov eax, dword [esi + 0x18]
movzx ecx, word [eax + 0x10]
mov edx, 0xffffffd9
sub edx, ecx
call fcn.005d5fd0
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 0x14
ret 0xc