Function at 0x4b349e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [reloc.WINMM.dll_midiOutReset]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 4
push 0x1000
push 0x830
push 0
push edi
mov dword [ebp - reloc.WINMM.dll_midiOutReset], eax
call dword [0x1000c024]
mov esi, eax
mov dword [ebp - reloc.WINMM.dll_midiOutReset], esi
test esi, esi
je 0x4b372b
push 0x40
lea ecx, [ebp - 0xcc]
push 0
push ecx
mov dword [ebp - reloc.WINMM.dll_midiOutReset], 0
call fcn.004ba85e
mov ebx, dword [reloc.WINMM.dll_midiOutReset]
add esp, 0xc
lea eax, reloc.WINMM.dll_midiOutReset
push eax
push 0x40
lea ecx, [ebp - 0xcc]
push ecx
push esi
mov edx, 0x5a4d
push edi
mov word [ebp - 0xcc], dx
mov dword [ebp - 0x90], 0x40
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0x40
jne 0x4b372b
push 0xf8
lea edx, reloc.WINMM.dll_midiOutReset
push 0
push edx
add esi, 0x40
call fcn.004ba85e
add esp, 0xc
lea ecx, reloc.WINMM.dll_midiOutReset
push ecx
mov edx, 1
push 0xf8
mov word [ebp - 0x1be], dx
lea edx, reloc.WINMM.dll_midiOutReset
push edx
push esi
mov eax, 0x10b
push edi
mov dword [ebp - reloc.WINMM.dll_midiOutReset], 0x4550
mov dword [ebp - reloc.WINMM.dll_midiOutReset], 0x200000e0
mov word [ebp - 0x1ac], ax
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0xf8
jne 0x4b372b
mov ecx, dword [reloc.WINMM.dll_midiOutReset]
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [reloc.WINMM.dll_midiOutReset]
mov dword [ebp - 0x48], eax
lea eax, reloc.WINMM.dll_midiOutReset
push eax
add esi, 0xf8
push 0x28
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x48]
mov edx, esi
sub edx, dword [ebp - reloc.WINMM.dll_midiOutReset]
push ecx
push esi
add edx, 0x28
push edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], 0x6d0
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0x28
jne 0x4b372b
push 0x40
lea edx, [ebp - 0x8c]
push 0
push edx
add esi, 0x28
call fcn.004ba85e
add esp, 0xc
mov eax, 0x40
lea ecx, reloc.WINMM.dll_midiOutReset
push ecx
push eax
lea edx, [ebp - 0x8c]
push edx
push esi
push edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x727444
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x6d0
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0x40
jne 0x4b372b
mov ecx, dword [reloc.WINMM.dll_midiOutReset]
mov edx, dword [reloc.WINMM.dll_midiOutReset]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
lea ecx, reloc.WINMM.dll_midiOutReset
push ecx
mov dword [ebp - 0x1c], eax
push 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [reloc.WINMM.dll_midiOutReset]
lea edx, [ebp - 0x20]
push edx
add esi, 0x40
mov dword [ebp - 0x18], eax
mov eax, dword [reloc.WINMM.dll_midiOutReset]
push esi
push edi
mov dword [ebp - 0x20], 0x690
mov dword [ebp - 0xc], eax
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0x18
jne 0x4b372b
mov ecx, dword [ebp - reloc.WINMM.dll_midiOutReset]
lea eax, reloc.WINMM.dll_midiOutReset
push eax
push 0x678
push ecx
add esi, 0x18
push esi
push edi
call ebx
test eax, eax
je 0x4b372b
cmp dword [ebp - reloc.WINMM.dll_midiOutReset], 0x678
jne 0x4b372b
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b52ed
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004b52ed
mov esp, ebp
pop ebp
ret 4