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

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x38]
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ecx, dword [esi]
mov ebp, dword [esi + 8]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
je 0x10190456
jmp 0x10190447
mov eax, dword [esp + 0x20]
lea esp, [esp]
cmp dword [eax], ecx
je 0x10190456
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1019043c
mov dword [esp + 0x28], 0x1018a264
mov eax, 0x1018a264
lea esp, [esp]
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10190467
push 0
sub eax, 0x1018a264
and eax, 0x3fffffff
push 0x1a
push ecx
lea ebx, [esp + 0x34]
mov dword [esp + 0x38], eax
call fcn.1014f747
mov esi, dword [esi]
add esp, 0xc
mov ecx, 0xc
mov dword [esp + 0x1c], eax
call fcn.10143be7
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x101904c3
xor ecx, ecx
mov edx, edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov ecx, 0x14
call fcn.10143be7
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x101904de
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.10148957
push edi
push esi
call fcn.10148d07
add esp, 0x10
mov dword [esp + 0x10], ebx
jmp 0x10190508
mov eax, dword [edi]
mov edx, dword [edi + 8]
lea ecx, [eax + eax*4]
inc eax
mov dword [edi], eax
lea ecx, [edx + ecx*4]
xor eax, eax
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x10190539
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push eax
push ecx
call fcn.10157e77
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
mov ebx, eax
add esp, 0x10
mov eax, esi
call fcn.10150007
mov dword [esp + 0x10], eax
xor ebx, ebx
jmp 0x1019053d
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
xor edi, edi
cmp word [edx + 0x26], bx
mov dword [esp + 0x24], edi
jle 0x1019066d
mov dword [esp + 0x1c], ebx
mov edi, edi
mov eax, dword [esp + 0x58]
mov eax, dword [eax + edi*4]
cmp eax, ebx
jl 0x10190584
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push eax
push ecx
call fcn.10157e77
add esp, 0x10
jmp 0x10190640
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax]
cmp ecx, ebx
mov dword [esp + 0x28], ecx
je 0x101905bc
cmp byte [ecx], bl
mov eax, ecx
je 0x101905af
lea esp, [esp]
mov dl, byte [eax + 1]
inc eax
cmp dl, bl
jne 0x101905a7
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x14], eax
jmp 0x101905c0
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edi, 0x2d
mov ecx, edi
call fcn.10143be7
mov edx, eax
cmp edx, ebx
je 0x10190636
mov ecx, edi
mov esi, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
inc eax
cmp eax, ebx
mov byte [edx], 0x1a
mov word [edx + 0x1e], 0xffff
jne 0x10190607
or byte [edx + 3], 4
mov dword [edx + 4], ebx
jmp 0x1019062f
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
lea edi, [edx + 0x2c]
mov dword [edx + 4], edi
je 0x10190629
mov esi, dword [esp + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [edx + 4]
mov byte [ecx + eax], bl
mov dword [edx + 0x14], 1
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x44]
mov eax, edx
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, esi
call fcn.10150007
add dword [esp + 0x1c], 0x18
mov ecx, dword [esp + 0x4c]
movsx edx, word [ecx + 0x26]
inc edi
xor ebx, ebx
cmp edi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
jl 0x10190557
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x2c]
push ecx
push esi
call fcn.10152527
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x48]
mov dword [esp + 0x34], eax
add esp, 0x24
inc eax
mov dword [esi + 0x48], eax
mov esi, dword [ebp + 0x1c]
xor eax, eax
cmp ecx, ebx
movsx ecx, word [edx + 0x26]
setne al
lea edx, [ecx + eax + 1]
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x54], edx
jg 0x101906cb
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101906f8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x10]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x2a
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov dl, 8
je 0x1019070b
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
mov byte [esp + 0x30], dl
lea edx, [esp + 0x30]
push edx
push eax
push esi
mov dword [esp + 0x40], ecx
mov byte [esp + 0x3d], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.1018e397
mov ecx, dword [esi + 0x4c]
add esp, 0xc
inc ecx
mov dword [esi + 0x4c], ecx
mov eax, ecx
mov ecx, dword [esp + 0x4c]
movsx edx, word [ecx + 0x26]
mov dword [esp + 0x54], eax
lea eax, [edx + eax + 1]
mov dword [esi + 0x4c], eax
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10190773
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10190773
mov dword [esp + 0x1c], 1
jmp 0x101907a0
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x48
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101907b3
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101907e0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101907f3
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10190825
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x10]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
inc edx
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [esp + 0x4c]
xor esi, esi
cmp word [edi + 0x26], bx
jle 0x10190898
lea ebx, [ebx]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x28], eax
jg 0x10190852
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1019088b
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edx
lea edx, [ecx + esi + 1]
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], edx
lea edx, [ecx + esi + 2]
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [esp + 0x4c]
movsx eax, word [edi + 0x26]
inc esi
cmp esi, eax
jl 0x10190837
mov eax, dword [esp + 0x44]
push edi
call fcn.1014acd7
movsx ecx, word [edi + 0x26]
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add ecx, 2
add esp, 4
cmp eax, esi
mov dword [esp + 0x4c], ecx
jg 0x101908d0
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x101908cc
mov esi, 1
jmp 0x101908f5
mov ecx, dword [esp + 0x4c]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 0x8c
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
mov eax, esi
je 0x1019093e
cmp byte [edi + 0x38], bl
jne 0x1019093e
cmp esi, ebx
jge 0x1019090e
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10190934
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1019093e
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
inc dword [eax + 0xc]
mov edx, dword [esp + 0x60]
cmp edx, 0x63
jne 0x1019094c
mov edx, 2
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x1019095d
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + reloc.WINMM.dll_midiStreamOut]
cmp eax, ebx
jne 0x1019096d
mov eax, ecx
mov byte [eax + 0x18], 1
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10190984
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101909b6
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + 1]
mov byte [eax], 0x5f
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x101909ba
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jl 0x101909cf
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jbe 0x101909cf
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101909e2
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10190a0b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x10]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x2d
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x10190a2a
mov edi, dword [esp + 0x18]
push esi
push edi
call fcn.10140fd7
add esp, 8
mov eax, esi
mov ecx, edi
call fcn.101394e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret