Function at 0x10130807
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x101b9540]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 4
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov eax, dword [ebp + 0x14]
push 0x1000
add eax, 0x1b8
push eax
push 0
push ebx
call dword [fcn.101672fc]
mov esi, eax
xor eax, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x10130ad4
mov ecx, 0x10
lea edi, reloc.WINMM.dll_midiStreamOut
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
mov edi, 0x40
push edi
lea edx, reloc.WINMM.dll_midiStreamOut
push edx
push esi
push ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x1a4], 0x5a4d
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edi
call dword [fcn.101673cc]
test eax, eax
je 0x10130ad2
cmp dword [esp + 0x10], edi
jne 0x10130ad2
add esi, edi
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [fcn.101673cc]
lea eax, [esp + 0x10]
push eax
push 0xf8
lea ecx, [esp + 0x60]
push ecx
push esi
push ebx
mov dword [esp + 0x6c], 0x4550
mov word [esp + 0x80], 0xe0
mov word [esp + 0x82], 0x2000
mov word [esp + 0x72], 1
mov word [esp + 0x84], 0x10b
call edi
test eax, eax
je 0x10130ad2
cmp dword [esp + 0x10], 0xf8
jne 0x10130ad2
mov eax, dword [0x1017e8fc]
mov ecx, dword [0x1017e900]
xor edx, edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
add eax, 0x58
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
add esi, 0xf8
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
lea eax, [esp + 0x10]
push eax
mov edx, esi
sub edx, ecx
push 0x28
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
push esi
add edx, 0x28
push ebx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
call edi
test eax, eax
je 0x10130ad2
cmp dword [esp + 0x10], 0x28
jne 0x10130ad2
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [fcn.101673cc]
mov ecx, 0x40
add eax, 0x58
lea edx, [esp + 0x10]
push edx
push ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
add esi, 0x28
push esi
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x727444
mov dword [esp + 0x34], ecx
call edi
test eax, eax
je 0x10130ad2
cmp dword [esp + 0x10], 0x40
jne 0x10130ad2
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
add edx, 0x18
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov ecx, dword [eax]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov edx, dword [eax + 4]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
mov ecx, dword [eax + 8]
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x18
mov dword [esp + reloc.WINMM.dll_midiStreamOut], ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
push ecx
add esi, 0x40
push esi
push ebx
mov dword [esp + reloc.WINMM.dll_midiStreamOut], edx
call edi
test eax, eax
je 0x10130ad2
cmp dword [esp + 0x10], 0x18
jne 0x10130ad2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
add esi, 0x18
push esi
push ebx
call edi
test eax, eax
je 0x10130ad2
mov edx, dword [ebp + 0x14]
cmp dword [esp + 0x10], edx
jne 0x10130ad2
mov eax, 1
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
call fcn.101a6cf4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
call fcn.101a6cf4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10