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

Disassembly:
sub esp, 0x164
push ebx
mov ebx, ecx
cmp dword [ebx + 8], 0
mov dword [esp + 0x30], ebx
je 0x10013896
mov edx, dword [ebx + 0x14]
push edi
xor eax, eax
mov ecx, 0x46
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x18]
push 2
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x60], pe_nt_image_headers32
mov dword [esp + 0x6c], eax
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x10013895
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edx
lea ecx, [eax*8]
mov dword [esp + 0x4c], edx
sub ecx, eax
lea edx, [eax + ecx*8]
push ebp
add edx, edx
push esi
add edx, edx
push edx
mov esi, eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x10013893
test esi, esi
mov dword [ebp], 0
jle 0x100136d0
mov ecx, esi
lea esp, [esp]
mov dword [eax], 0xe4
add eax, 0xe4
sub ecx, 1
jne 0x100136c0
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x68]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0xe4
mov dword [esp + 0x60], ebp
call dword [sym.imp.WINMM.dll_mixerGetLineControlsW]
test eax, eax
jne 0x10013889
test esi, esi
jle 0x10013889
lea edi, [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
lea esp, [esp]
mov eax, dword [edi - 4]
cmp eax, 0x70010001
ja 0x10013766
je 0x10013759
cmp eax, 0x20010002
je 0x1001374b
cmp eax, 0x70010000
jne 0x10013874
mov eax, dword [esp + 0x178]
mov dword [esp + 0x10], eax
jmp 0x1001378e
xor ecx, ecx
cmp dword [esp + 0x178], ecx
sete cl
jmp 0x1001378a
mov edx, dword [esp + 0x178]
mov dword [esp + 0x10], edx
jmp 0x1001378e
sub eax, 0x71010000
je 0x10013783
sub eax, 1
jne 0x10013874
mov eax, dword [esp + 0x178]
mov dword [esp + 0x10], eax
jmp 0x1001378e
mov ecx, dword [esp + 0x178]
mov dword [esp + 0x10], ecx
mov eax, dword [edi - 8]
mov ebx, dword [esp + 0x58]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov eax, dword [edi]
test al, 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], 0x18
je 0x100137c6
mov ebx, 1
test al, 2
je 0x10013812
mov ebp, dword [edi + 4]
mov ecx, ebx
imul ecx, ebp
add ecx, ecx
add ecx, ecx
push ecx
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10013870
test ebp, ebp
jle 0x1001383d
mov edx, esi
mov dword [esp + 0x1c], ebp
test ebx, ebx
jle 0x10013806
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
add edx, 4
sub dword [esp + 0x1c], 1
jne 0x100137f4
jmp 0x1001383d
lea edx, [ebx*4]
push edx
xor ebp, ebp
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10013870
test ebx, ebx
jle 0x1001383d
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
push 0
lea eax, [esp + 0x28]
push eax
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 4
mov dword [esp + 0x44], esi
call dword [sym.imp.WINMM.dll_mixerSetControlDetails]
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ebp, dword [esp + 0x20]
add edi, 0xe4
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], edi
jne 0x10013720
push ebp
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x164
ret 4