Function at 0x76b192b2
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
test dword [ebp + 0x14], 0xfffffff
mov eax, dword [0x76b30340]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x180], eax
jne 0x76b1b749
push 4
push ebx
call fcn.76b12ab0
test eax, eax
je 0x76b1b74d
mov eax, dword [ebp + 0x14]
or dword [ebx], 0xffffffff
push esi
push edi
and eax, 0xf0000000
mov ecx, 0x50000000
xor edi, edi
cmp eax, ecx
mov esi, 0x80000000
ja 0x76b19fec
je 0x76b1b7c5
cmp eax, edi
jne 0x76b19348
mov eax, dword [ebp - 0x174]
cmp eax, dword [0x76b300dc]
jae 0x76b19fb6
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.76b128c0
leave
ret 0x10
cmp eax, 0x10000000
jne 0x76b19bd6
push 0x54
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_waveOutGetDevCapsW
test eax, eax
jne 0x76b19fe5
mov dword [ebp - 0xa8], 1
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xa4], eax
mov ax, word [ebp - 0x58]
mov word [ebp - 0xa0], ax
mov ax, word [ebp - 0x56]
mov word [ebp - 0x9e], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], eax
mov word [ebp - 0x12], di
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
or eax, 0xffffffff
xor esi, esi
cmp dword [0x76b300dc], edi
mov dword [ebp - 0x170], 0x118
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
mov word [ebp - 0x148], di
mov word [ebp - 0x128], di
jbe 0x76b1b93a
push 4
lea eax, [ebp - 0x170]
push eax
push 5
push esi
call fcn.76b19448
cmp eax, edi
jne 0x76b1b92d
mov edx, dword [ebp - 0x180]
cmp edx, edi
mov dword [ebx], esi
je 0x76b19337
jmp 0x76b1b942
cmp eax, 0x20000000
jne 0x76b1b755
push 0x50
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_waveInGetDevCapsW
test eax, eax
jne 0x76b19fe5
mov dword [ebp - 0xa8], 2
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xa4], eax
mov ax, word [ebp - 0x54]
mov word [ebp - 0xa0], ax
mov ax, word [ebp - 0x52]
mov word [ebp - 0x9e], ax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x9c], eax
mov word [ebp - 0xe], di
lea eax, [ebp - 0x4c]
jmp 0x76b193a8
call fcn.76b14f5c
push 8
push dword [ebp - 0x174]
call fcn.76b14f6f
test eax, eax
je 0x76b1b963
mov eax, dword [ebp - 0x174]
mov eax, dword [eax + 0x14]
mov dword [ebx], eax
call fcn.76b14f4b
jmp 0x76b19337
push 2
jmp 0x76b1b93c
cmp eax, esi
jne 0x76b1b7ef
jmp 0x76b19323
push 0xa
jmp 0x76b1b74f
push 0xb
pop eax
jmp 0x76b1933b
cmp eax, 0x30000000
je 0x76b1b84d
cmp eax, 0x40000000
jne 0x76b1b80f
push 0x4c
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiInGetDevCapsW
test eax, eax
jne 0x76b19fe5
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0xa4], eax
mov ax, word [ebp - 0x50]
mov word [ebp - 0xa0], ax
mov ax, word [ebp - 0x4e]
mov word [ebp - 0x9e], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x9c], eax
mov word [ebp - 0xa], di
mov dword [ebp - 0xa8], 4
lea eax, [ebp - 0x48]
jmp 0x76b193a8
push 0x50
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_auxGetDevCapsW
test eax, eax
jne 0x76b19fe5
xor edi, edi
mov dword [ebp - 0xa8], 5
jmp 0x76b19c04
cmp eax, 0x90000000
je 0x76b1b8cf
cmp eax, 0xa0000000
je 0x76b1b875
cmp eax, 0xb0000000
je 0x76b1b837
cmp eax, 0xc0000000
je 0x76b1b816
push 0xa
jmp 0x76b1b93c
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiInGetID
test eax, eax
je 0x76b1b76b
push 5
jmp 0x76b1b93c
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiOutGetID
test eax, eax
jne 0x76b1b830
push 0x54
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiOutGetDevCapsW
test eax, eax
jne 0x76b19fe5
mov dword [ebp - 0xa8], 3
jmp 0x76b19376
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_waveInGetID
test eax, eax
jne 0x76b1b830
xor edi, edi
cmp dword [ebp - 0x178], 0xffffffff
jne 0x76b1b8be
lea eax, [ebp - 0x17c]
push eax
push edi
push 0x2000
push dword [ebp - 0x174]
call sym.WINMM.dll_waveInMessage
test eax, eax
jne 0x76b1b8be
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x174], eax
jmp 0x76b19be1
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_waveOutGetID
test eax, eax
jne 0x76b1b830
xor edi, edi
cmp dword [ebp - 0x178], 0xffffffff
jne 0x76b1b91c
lea eax, [ebp - 0x17c]
push eax
push edi
push 0x2000
push dword [ebp - 0x174]
call sym.WINMM.dll_waveOutMessage
test eax, eax
jne 0x76b1b91c
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x174], eax
jmp 0x76b19353
inc esi
cmp esi, dword [0x76b300dc]
jb 0x76b19415
push 6
pop eax
jmp 0x76b19339
mov eax, dword [edx]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
lea esi, [ebp - 0x170]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx], eax
jmp 0x76b19337
call fcn.76b14f4b
mov eax, dword [ebp + 0x14]
and eax, esi
neg eax
sbb eax, eax
and eax, 3
inc eax
inc eax
jmp 0x76b19339