Function at 0x41b13f59
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x41b28d84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
and eax, 0xf0000000
mov ecx, 0x50000000
or esi, 0xffffffff
xor edi, edi
mov dword [ebp - 0x174], edx
cmp eax, ecx
ja 0x41b14034
je 0x41b13fdd
cmp eax, edi
je 0x41b13fc9
cmp eax, 0x10000000
je 0x41b141df
cmp eax, 0x20000000
je 0x41b14165
cmp eax, 0x30000000
je 0x41b140e6
cmp eax, 0x40000000
je 0x41b1407b
push 0xa
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.41b028d6
leave
ret 0xc
push 0x50
lea eax, [ebp - 0x54]
push eax
push edx
call sym.WINMM.dll_auxGetDevCapsW
test eax, eax
je 0x41b13ff1
push 2
jmp 0x41b13fcb
mov dword [ebp - 0xa8], 5
xor eax, eax
mov word [ebp - 0xe], ax
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
lea eax, [ebp - 0x4c]
jmp 0x41b14231
cmp eax, 0x80000000
je 0x41b13fc9
cmp eax, 0x90000000
je 0x41b14188
cmp eax, 0xa0000000
je 0x41b1410e
cmp eax, 0xb0000000
je 0x41b140d5
cmp eax, 0xc0000000
jne 0x41b13fc9
lea eax, [ebp - 0x174]
push eax
push edx
call sym.WINMM.dll_midiInGetID
test eax, eax
je 0x41b1407b
push 5
jmp 0x41b13fcb
push 0x4c
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiInGetDevCapsW
test eax, eax
jne 0x41b13fed
mov word [ebp - 0xa], ax
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 dword [ebp - 0xa8], 4
lea eax, [ebp - 0x48]
jmp 0x41b14231
lea eax, [ebp - 0x174]
push eax
push edx
call sym.WINMM.dll_midiOutGetID
test eax, eax
jne 0x41b14074
push 0x54
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x174]
call sym.WINMM.dll_midiOutGetDevCapsW
test eax, eax
jne 0x41b13fed
mov dword [ebp - 0xa8], 3
jmp 0x41b141fd
lea eax, [ebp - 0x178]
push eax
push edx
mov dword [ebp - 0x178], edi
call sym.WINMM.dll_waveInGetID
test eax, eax
jne 0x41b14074
cmp dword [ebp - 0x178], esi
jne 0x41b14159
lea eax, [ebp - 0x17c]
push eax
push edi
push 0x2000
push dword [ebp - 0x174]
call sym.WINMM.dll_waveInMessage
test eax, eax
jne 0x41b14159
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x174], edx
push 0x50
lea eax, [ebp - 0x54]
push eax
push edx
call sym.WINMM.dll_waveInGetDevCapsW
test eax, eax
jne 0x41b13fed
mov dword [ebp - 0xa8], 2
jmp 0x41b13ffb
lea eax, [ebp - 0x178]
push eax
push edx
mov dword [ebp - 0x178], edi
call sym.WINMM.dll_waveOutGetID
test eax, eax
jne 0x41b14074
cmp dword [ebp - 0x178], esi
jne 0x41b141d3
lea eax, [ebp - 0x17c]
push eax
push edi
push 0x2000
push dword [ebp - 0x174]
call sym.WINMM.dll_waveOutMessage
test eax, eax
jne 0x41b141d3
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x174], edx
push 0x54
lea eax, [ebp - 0x58]
push eax
push edx
call sym.WINMM.dll_waveOutGetDevCapsW
test eax, eax
jne 0x41b13fed
mov dword [ebp - 0xa8], 1
xor eax, eax
mov word [ebp - 0x12], ax
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
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x98]
push eax
call fcn.41b029b6
xor eax, eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x158], esi
xor esi, esi
mov dword [ebp - 0x170], 0x118
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], edi
mov word [ebp - 0x148], ax
mov word [ebp - 0x128], ax
cmp dword [0x41b28100], edi
jbe 0x41b142b8
push 4
lea eax, [ebp - 0x170]
push eax
push 5
push esi
call fcn.41b14705
cmp eax, edi
je 0x41b142bf
inc esi
cmp esi, dword [0x41b28100]
jb 0x41b1429a
push 6
jmp 0x41b13fcb
mov dword [ebx], esi
xor eax, eax
jmp 0x41b13fcc