Function at 0x1018e397
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd8
push ebx
push esi
mov esi, dword [esp + 0xe4]
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [esi]
mov dword [esp + 0xb8], eax
mov eax, dword [esi + reloc.WINMM.dll_midiStreamOut]
push edi
mov edi, dword [esp + 0xec]
mov dword [esi + reloc.WINMM.dll_midiStreamOut], eax
inc eax
test edi, edi
mov dword [esp + 0x48], 1
mov dword [esi + reloc.WINMM.dll_midiStreamOut], eax
mov dword [esp + 0x30], ebx
je 0x1018ffe2
mov al, byte [ebx + 0x38]
test al, al
jne 0x1018ffe2
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x1018ffe2
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.101508c7
add esp, 0x10
test eax, eax
jne 0x1018ffe2
mov edx, dword [esp + 0xf0]
mov al, byte [edx]
xor ecx, ecx
cmp al, 4
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
ja 0x1018e47b
mov eax, dword [edi + 0x38]
push eax
push ebx
call fcn.10148d07
add esp, 8
and byte [edi + 6], 0xfe
mov dword [edi + 0x38], 0
push ebp
push 0
push edi
push esi
call fcn.1018e307
mov eax, dword [edi]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], edx
jne 0x1018ff81
mov ecx, dword [esp + 0x34]
mov al, byte [ecx + 0x38]
test al, al
jne 0x1018ff81
mov ebx, dword [esp + 0xf0]
xor edx, edx
mov dl, byte [ebx + 6]
mov edi, esi
shr edx, 2
and edx, 1
mov dword [esp + 0x58], edx
call fcn.101533f7
mov ebp, eax
test ebp, ebp
je 0x1018ff81
mov ecx, dword [esp + 0x60]
cmp dword [ecx], 1
mov eax, dword [esp + 0xf4]
movzx eax, byte [eax]
jle 0x1018e50e
cmp eax, 6
je 0x1018e4fa
cmp eax, 7
jne 0x1018e50e
push 0x10187ea0
mov edi, esi
call fcn.1014d297
add esp, 4
jmp 0x1018ff81
mov eax, dword [ebx + 0x3c]
test eax, eax
mov dword [esp + 0x28], 0
jne 0x1018e5cc
lea ebx, [ebx]
mov edx, dword [esp + 0x48]
movsx eax, word [edx]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jge 0x1018e5cc
mov eax, ecx
lea ecx, [eax + eax*8]
mov eax, dword [edx + ecx*8 + 0x1c]
test eax, eax
lea ebx, [edx + ecx*8 + 8]
mov dword [esp + 0x14], eax
je 0x1018e5aa
mov ecx, dword [ebx + 0x18]
test ecx, ecx
mov dword [esp + 0x18], ecx
je 0x1018e64a
test byte [ebx + 0x24], 4
jne 0x1018e5aa
mov eax, dword [ebx + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x74], eax
cmp dword [ebp + 0x20], ebx
jg 0x1018e582
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018e5aa
mov ecx, dword [esp + 0x18]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 2
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x3c]
mov ebx, dword [esp + 0xf0]
inc ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x1018e527
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [ebx + 6]
and al, 1
mov byte [esp + 0xa4], al
mov eax, dword [ebx + 0x3c]
test eax, eax
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x50], edx
mov dword [esp + 0x74], ecx
je 0x1018ea14
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x1018e9ea
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ebx
mov ecx, eax
mov eax, dword [eax + 0x3c]
inc edx
test eax, eax
jne 0x1018e60f
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x1018e9ea
cmp edx, eax
jle 0x1018e9ea
push 0x1018a138
mov edi, esi
call fcn.1014d297
add esp, 4
jmp 0x1018ff81
mov edi, dword [esp + 0xf0]
mov ecx, edi
call fcn.1013f6d7
mov edx, dword [esi + reloc.WINMM.dll_midiStreamOut]
mov ecx, dword [esp + 0x58]
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + reloc.WINMM.dll_midiStreamOut], edx
movzx eax, byte [eax + 6]
mov edx, dword [esp + 0x28]
shr eax, 2
and eax, 1
push eax
push ecx
push edx
push edi
push esi
mov dword [esp + 0x2c], eax
call fcn.1015c2b7
add esp, 0x14
test eax, eax
je 0x1018e6b2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1018e6a5
or byte [edi + 6], 4
mov dword [esp + 0x58], 1
mov dword [esp + 0x28], reloc.WINMM.dll_midiStreamOut
jmp 0x1018e9a3
mov eax, dword [esp + 0x48]
cmp word [eax], 1
jne 0x1018e886
mov eax, 0x100
test word [edi + 6], ax
jne 0x1018e886
mov ecx, dword [esp + 0x34]
test word [ecx + 0x34], ax
jne 0x1018e886
mov edi, dword [esi + 0x4c]
inc edi
mov dword [esi + 0x4c], edi
mov eax, edi
mov dword [ebx + 0x1c], eax
mov edx, dword [esi + 0x4c]
inc edx
push 0xffffffffffffffff
mov eax, esi
mov dword [esi + 0x4c], edx
mov dword [esp + 0x58], edx
call fcn.1017ba17
push 1
mov eax, ebp
call fcn.101473a7
mov eax, dword [ebx + 0x2c]
push eax
push 0x2c
mov eax, ebp
call fcn.101473f7
mov edi, eax
mov eax, dword [ebp + 4]
add esp, 0x10
test eax, eax
mov dword [esp + 0x20], edi
je 0x1018e72e
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 1
mov dword [ebx + 0x18], edi
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x18], eax
jg 0x1018e750
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x20]
jne 0x1018e77b
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x1c]
xor ecx, ecx
inc edx
mov dword [ebp + 0x1c], edx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
mov byte [eax], 7
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1018e78d
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov eax, dword [ebx + 0x1c]
mov cl, byte [esi + 0x1e8]
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push edx
push eax
mov byte [esp + 0xb8], 0xa
mov byte [esp + 0xb9], 0
push esi
mov byte [ebx + 0x28], cl
call fcn.1018e397
mov ecx, dword [esp + 0x20]
fld qword [ecx + 0x20]
add esp, 0xc
call fcn.101a95bb
mov edx, dword [ebx + 0x10]
mov dword [edx + 0x1c], eax
or dword [ebx + 0x24], 4
cmp dword [ebp + 0x1c], edi
jbe 0x1018e818
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0xb8]
lea eax, [edi + edi*4]
mov dword [ecx + eax*4 + 8], edx
cmp dword [ebp + 0x1c], edi
jbe 0x1018e818
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0xbc]
lea eax, [edi + edi*4]
mov dword [ecx + eax*4 + 0xc], edx
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x18], eax
jg 0x1018e837
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x20]
jne 0x1018e867
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x54]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [ebx + 0x1c]
push eax
push 4
mov eax, ebp
call fcn.101473f7
add esp, 8
lea eax, [edi - 1]
mov edx, ebp
call fcn.1013e6d7
jmp 0x1018e991
mov ecx, dword [esi + 0x4c]
inc ecx
mov edx, ecx
mov dword [esi + 0x4c], ecx
mov dword [ebx + 0x1c], edx
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x54], edx
mov dword [esp + 0x18], ecx
jg 0x1018e8c4
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1018e8bc
mov edi, 1
jmp 0x1018e8ef
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
xor edi, edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov byte [eax + 1], 0
mov edi, ecx
test byte [ebx + 0x24], 2
lea ecx, [edi + 1]
mov dword [ebx + 0x18], ecx
jne 0x1018e906
mov eax, esi
call fcn.101580e7
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + 0x1e8]
mov dword [esp + 0xb4], eax
xor eax, eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb0]
push eax
push ecx
mov byte [esp + 0xb8], 9
mov byte [esp + 0xb9], 0
push esi
mov byte [ebx + 0x28], dl
call fcn.1018e397
mov edx, dword [esp + 0x20]
fld qword [edx + 0x20]
add esp, 0xc
call fcn.101a95bb
mov ecx, dword [ebx + 0x10]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1018e970
mov edx, ebp
call fcn.1013e6d7
mov edx, dword [ebx + 0x1c]
push edx
push 3
mov eax, ebp
call fcn.101473f7
mov ecx, dword [ebp + 0x1c]
add esp, 8
cmp ecx, edi
jbe 0x1018e991
mov edx, dword [ebp + 4]
lea ecx, [edi + edi*4]
mov dword [edx + ecx*4 + 4], eax
mov edi, dword [esp + 0xf0]
mov byte [esi + 0x13], 0
mov dword [esi + 0x3c], 0
mov eax, dword [esp + 0x34]
mov cl, byte [eax + 0x38]
test cl, cl
jne 0x1018ff81
mov ecx, edi
call fcn.1013f6d7
mov ecx, dword [esi + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [esp + 0xf4]
sub ecx, eax
mov dword [esi + reloc.WINMM.dll_midiStreamOut], ecx
cmp byte [edx], 4
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x48], ecx
jbe 0x1018e5b1
mov eax, dword [edi + 0x38]
mov dword [esp + 0x30], eax
jmp 0x1018e5b1
mov ecx, dword [esp + 0xf4]
push ecx
push ebx
push esi
call fcn.1016c4d7
mov edx, dword [esp + 0xcc]
add esp, 0xc
pop ebp
pop edi
mov dword [esi + reloc.WINMM.dll_midiStreamOut], edx
pop esi
pop ebx
add esp, 0xd8
ret
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
call fcn.1013fc47
test eax, eax
jne 0x1018ea37
mov eax, dword [esp + 0x34]
test byte [eax + 0x34], 4
jne 0x1018ea37
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0xf0]
mov dl, byte [ecx + 6]
and dl, 5
cmp dl, 1
jne 0x1018eb92
mov edi, dword [esp + 0x30]
mov eax, ecx
mov ebx, dword [eax]
call fcn.1013fc47
test eax, eax
jne 0x1018eb92
mov edi, dword [esp + 0xf0]
mov ecx, dword [edi]
mov edx, dword [esp + 0x34]
and byte [edi + 6], 0xfe
push eax
push ecx
push edx
call fcn.101489e7
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0xf0]
or ebx, reloc.WINMM.dll_midiStreamOut
mov eax, dword [esp + 0xf4]
cmp byte [eax], 9
mov dword [esp + 0x20], ebx
jne 0x1018eb06
mov edx, dword [esp + 0x60]
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
jg 0x1018eacb
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018eafb
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x2a
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edi, dword [esp + 0xf0]
mov ebx, dword [esp + 0x20]
mov eax, ebp
call fcn.10147467
fld qword [0x10187d88]
push eax
fstp qword [edi + 0x20]
push edi
push esi
mov dword [esp + 0xf0], eax
call fcn.10153427
mov eax, dword [edi + 8]
add esp, 0xc
test eax, eax
jne 0x1018eb43
test ebx, ebx
jl 0x1018eb43
mov eax, ebx
mov ecx, ebp
call fcn.1013e6f7
mov byte [eax], 0x2b
or byte [edi + 6], 0x40
test byte [edi + 6], 1
je 0x1018ec8f
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0xf0]
mov dword [esp + 0xa8], eax
inc eax
mov dword [esi + 0x48], eax
mov eax, dword [edx]
push eax
push esi
call fcn.10165077
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, ebx
jg 0x1018ebd8
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1018ebd8
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x1018ec0d
mov edi, dword [esp + 0x30]
test edi, edi
je 0x1018ea8d
push edi
push esi
call fcn.10165077
mov ecx, dword [esi + 0x48]
mov dword [edi + 4], ecx
inc dword [esi + 0x48]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
push 0xfffffffffffffff0
push eax
add ecx, 2
push 0x2a
xor eax, eax
mov edi, ebp
call fcn.1014f097
mov edi, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov ebx, eax
add esp, 0x14
mov dword [edi + 0x18], ebx
jmp 0x1018ea97
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0xa8]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x2a
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov dword [esp + 0x10], ebx
mov eax, ebx
mov ebx, dword [ebp + 4]
test ebx, ebx
mov edi, dword [ebp]
je 0x1018ec58
mov cl, byte [edi + 0x38]
test cl, cl
jne 0x1018ec58
test eax, eax
jge 0x1018ec26
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ebx + edx*4 + 1]
mov ecx, dword [ebx + edx*4 + 0x10]
lea ebx, [ebx + edx*4]
call fcn.10147587
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ecx
mov dword [ebx + 0x10], ecx
jne 0x1018ec4f
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], cl
jmp 0x1018ec66
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
jmp 0x1018ec66
mov ecx, dword [esp + 0x2c]
mov eax, 0xfffffff0
call fcn.10147587
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0xac], eax
je 0x1018ec85
mov eax, dword [ebp + 0x1c]
lea edx, [eax + eax*4]
mov byte [ecx + edx*4 - 0x11], 8
mov byte [esp + 0xa5], 3
jmp 0x1018ec99
mov byte [esp + 0xa5], 0
xor ebx, ebx
cmp dword [esp + 0x58], ebx
mov edi, dword [esp + 0x14]
jne 0x1018ed87
cmp edi, ebx
jne 0x1018ed87
mov al, byte [esp + 0xa4]
test al, al
je 0x1018ecc5
mov eax, dword [esp + 0xf0]
mov eax, dword [eax]
jmp 0x1018ecc7
xor eax, eax
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push 0
push 0
push eax
push ebx
push ecx
push edx
push esi
call fcn.10189917
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x1018ff81
fld qword [edi + 0x30]
mov ecx, dword [esp + 0xf0]
fcomp qword [ecx + 0x20]
fnstsw ax
test ah, 5
jp 0x1018ed08
fld qword [edi + 0x30]
fstp qword [ecx + 0x20]
mov al, byte [edi + 0xe]
test al, al
je 0x1018ed16
mov byte [esp + 0xa5], al
test ebx, ebx
je 0x1018ed28
movzx eax, word [edi + 8]
cmp eax, dword [ebx]
jne 0x1018ed28
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x20]
test ecx, ecx
jl 0x1018ed49
test ebx, ebx
jne 0x1018ed49
mov edx, ebp
call fcn.10147677
mov ecx, dword [esp + 0xf0]
mov dword [ecx + 0x18], reloc.WINMM.dll_midiStreamOut
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0xf4]
push edx
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0xfc]
lea edx, [esp + 0xb0]
push edx
push ebx
push 0
push 0
push eax
push ecx
push esi
call fcn.10164807
push edi
call fcn.1014b547
add esp, 0x2c
jmp 0x1018ff01
cmp edi, ebx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x1c], ebx
je 0x1018edde
mov eax, dword [edx]
mov ecx, dword [eax]
cmp ecx, ebx
mov eax, dword [eax + 8]
jle 0x1018edb1
add eax, 0x10
mov word [eax], bx
add eax, 0x14
dec ecx
jne 0x1018eda8
mov ecx, dword [edi]
cmp ecx, ebx
mov eax, dword [edi + 8]
jle 0x1018edc6
add eax, 0x10
mov word [eax], bx
add eax, 0x14
dec ecx
jne 0x1018edbd
fld qword [edx + 0x20]
fcomp qword [0x1018a130]
fnstsw ax
test ah, 0x41
jne 0x1018ede7
fld qword [0x1018a130]
jmp 0x1018ede4
fld qword [0x10187488]
fstp qword [edx + 0x20]
mov eax, ebp
call fcn.10147467
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
xor eax, eax
cmp edi, ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
lea edx, [esp + 0x7c]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xd0], edx
je 0x1018ee59
mov eax, dword [edi]
inc eax
mov dword [esp + 0x88], eax
jmp 0x1018ee60
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x60]
lea edx, [esp + 0xc4]
push edx
mov dword [esp + 0x90], ecx
call fcn.10158427
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0xc8]
push eax
call fcn.10158427
mov edx, dword [esp + 0x7c]
xor edi, edi
add esp, 8
cmp edx, edi
je 0x1018eea6
lea ecx, [esp + 0xc4]
call fcn.101583e7
cmp dword [esp + 0xa0], edi
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x28], edi
jle 0x1018ef1c
lea ebx, [ebx]
mov bl, byte [esp + 0xe0]
mov edx, dword [esp + 0x9c]
or bl, 8
mov byte [esp + 0xe0], bl
mov eax, dword [edx + edi]
mov ebx, dword [eax + 0x10]
lea ecx, [esp + 0xc4]
push ecx
call fcn.10158427
mov al, byte [esp + 0xe4]
mov ecx, dword [esp + 0xa4]
and al, 0xf7
mov byte [esp + 0xe4], al
mov eax, dword [esp + 0x2c]
add esp, 4
inc eax
add edi, 0x10
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x1018eec7
mov edx, dword [esp + 0x34]
mov al, byte [edx + 0x38]
test al, al
jne 0x1018ff81
mov ecx, dword [esp + 0x14]
xor ebx, ebx
cmp ecx, ebx
je 0x1018fbd7
mov eax, dword [esi + 0x48]
mov dword [esp + 0x80], eax
push ecx
inc eax
push esi
mov dword [esi + 0x48], eax
call fcn.10165077
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x1c]
add esp, 8
cmp eax, ecx
mov dword [esp + 0x18], ecx
jg 0x1018ef92
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1018ef8e
mov eax, 1
jmp 0x1018efbd
mov ecx, dword [esp + 0x18]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov byte [eax], 0x2b
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
mov eax, ecx
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
mov dword [esp + 0x18], eax
je 0x1018f014
cmp byte [edi + 0x38], bl
jne 0x1018f014
cmp eax, ebx
jge 0x1018efd8
mov eax, dword [ebp + 0x1c]
dec eax
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [ecx + 0x10], ebx
mov eax, ecx
jne 0x1018f007
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x1018f022
mov edx, dword [esp + 0x78]
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
jmp 0x1018f022
mov ecx, dword [esp + 0x78]
mov eax, 0xfffffff0
call fcn.10147587
mov eax, dword [esi + 0x4c]
inc eax
lea edi, [eax + 1]
mov dword [esp + 0x3c], eax
lea eax, [edi + 1]
mov dword [esp + 0x6c], eax
mov dword [esi + 0x4c], eax
mov eax, ebp
mov dword [esp + 0x5c], edi
call fcn.10147467
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esi + 0x4c], eax
mov dword [esp + 0x54], eax
mov eax, ebp
call fcn.10147467
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add eax, edx
mov dword [esi + 0x4c], eax
mov ecx, dword [ecx]
add ecx, eax
lea edx, [eax + 1]
mov dword [esi + 0x4c], ecx
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x10], eax
jg 0x1018f09e
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f0c3
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ecx
mov dword [ebp + 0x1c], ecx
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x1018f0de
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f107
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x3c]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
mov ecx, dword [edx]
lea edx, [ecx + eax - 1]
push edx
push eax
push ebx
push 0xa
mov eax, ebp
call fcn.10147347
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0x10
cmp ecx, eax
mov dword [esp + 0x10], eax
jg 0x1018f141
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f16e
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x54]
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 + 0x2c]
mov byte [eax], 2
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 edi, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
push ebx
push ebx
push ebx
push edi
push edx
push eax
push esi
call fcn.10189917
add esp, 0x1c
cmp eax, ebx
mov dword [esp + 0x70], eax
je 0x1018ff81
movzx ecx, word [eax + 8]
cmp ecx, dword [edi]
jne 0x1018f1aa
mov dword [esp + 0x10], 0
jmp 0x1018f594
mov al, byte [esp + 0xa4]
test al, al
je 0x1018f1c7
mov edx, dword [esp + 0xf0]
test byte [edx + 6], 1
mov eax, 0x1018a124
je 0x1018f1cc
mov eax, 0x1018a118
push eax
mov eax, esi
call fcn.10152857
mov eax, dword [edi]
mov edx, dword [esp + 0x98]
add esp, 4
mov dword [esp + 0x1c], eax
inc eax
test edx, edx
mov ecx, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ecx
jle 0x1018f217
mov edi, dword [esp + 0x90]
add edi, 0xc
mov edi, edi
cmp dword [edi], eax
jl 0x1018f20d
inc ecx
inc eax
add edi, 0x18
dec edx
jne 0x1018f207
mov dword [esp + 0x50], ecx
mov eax, dword [esi + 0x3c]
cmp ecx, eax
mov edi, dword [esi + 0x40]
mov dword [esp + 0x4c], edi
jg 0x1018f232
lea edx, [edi + ecx]
sub eax, ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], eax
jmp 0x1018f241
mov eax, dword [esi + 0x4c]
lea edi, [eax + 1]
add eax, ecx
mov dword [esp + 0x4c], edi
mov dword [esi + 0x4c], eax
mov edx, esi
call fcn.1013fbf7
mov eax, dword [esp + 0x14]
push 0
push esi
mov edx, edi
call fcn.101491f7
mov eax, dword [esp + 0x88]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, ebx
jg 0x1018f27d
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f2af
mov edi, dword [esp + 0x4c]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add edi, edx
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x37
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x94]
test eax, eax
mov dword [esp + 0x28], 0
jle 0x1018f391
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x90]
lea edi, [ecx + edx]
mov dword [esp + 0x40], edi
xor ebx, ebx
nop
mov ecx, dword [esp + 0x1c]
cmp dword [eax + ebx + 0xc], ecx
jl 0x1018f376
mov edx, dword [eax + ebx + 4]
mov ecx, dword [eax + ebx + 8]
push 0
push edi
push edx
mov edx, dword [eax + ebx]
push ecx
push edx
mov eax, esi
call fcn.1016ae77
mov ecx, eax
add esp, 0x14
cmp edi, ecx
mov dword [esp + 0x44], ecx
je 0x1018f361
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x1018f33d
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x40]
jne 0x1018f361
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
inc dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x90]
inc ecx
inc edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
inc ecx
add ebx, 0x18
cmp ecx, edx
mov dword [esp + 0x28], ecx
jl 0x1018f2e7
mov al, byte [esi + 0x13]
test al, al
jne 0x1018f3a5
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esi + 0x4c], eax
mov dword [esp + 0x1c], eax
jmp 0x1018f3b5
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov edx, dword [esi + ecx*4 + 0x1c]
mov dword [esp + 0x1c], edx
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
jg 0x1018f3c8
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f3ff
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov byte [eax], 0x1f
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x80]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x20], ebx
jg 0x1018f41d
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f44f
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x60
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
jmp 0x1018f453
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x1018f47f
mov bl, byte [esi + 0x13]
cmp bl, 8
jae 0x1018f47f
xor eax, eax
lea ecx, [esi + 0x64]
lea ecx, [ecx]
cmp dword [ecx + 0x10], edx
je 0x1018f4d7
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x1018f467
movzx eax, bl
mov dword [esi + eax*4 + 0x1c], edx
inc byte [esi + 0x13]
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0xec]
push ebx
mov eax, edi
call fcn.1013fb57
mov eax, dword [esi + 0x3c]
add esp, 4
cmp edi, eax
jle 0x1018f4a6
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], ebx
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1014b547
mov ecx, dword [esi + 0x48]
mov al, byte [esi + 0x13]
add esp, 4
test al, al
lea edx, [ecx + 1]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x84], ecx
mov dword [esi + 0x48], edx
jne 0x1018f4dd
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esi + 0x4c], eax
jmp 0x1018f4e9
mov byte [ecx + 8], 1
jmp 0x1018f47f
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x20], ebx
jg 0x1018f508
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f533
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x50]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x2c
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ebx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ebx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
jg 0x1018f551
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f581
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x46
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, esi
mov byte [esp + 0x7d], 1
call fcn.1013fbf7
mov esi, dword [esp + 0xec]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x44], edx
mov edx, esi
call fcn.1013fbf7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1018f5f0
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov ebx, dword [esp + 0x80]
jg 0x1018f5c4
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f5f0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x3e
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
xor ebx, ebx
test ecx, ecx
jle 0x1018f6a4
lea esp, [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1018f670
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f622
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f658
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x40]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
lea edx, [ebx + ecx]
mov byte [eax], 0x1d
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
test ebx, ebx
jne 0x1018f695
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x1018f695
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x20
jmp 0x1018f695
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x7c], 1
lea esi, [ebx + ecx]
mov ecx, dword [eax + 8]
lea edx, [ebx + ebx*4]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0xec]
call fcn.10148ff7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
inc ebx
cmp ebx, ecx
jl 0x1018f607
mov ebx, dword [eax]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f6c2
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1018f6c2
mov eax, 1
xor ebx, ebx
jmp 0x1018f6f4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x68]
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 + 0x58]
mov dword [eax + 0xc], ebx
xor ebx, ebx
mov byte [eax], 0x18
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov edx, dword [esp + 0x78]
push ebp
mov ecx, 0xfffffffa
call fcn.101476b7
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 4
cmp eax, esi
mov dword [esp + 0x24], esi
jg 0x1018f71f
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f749
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 1]
mov byte [eax], 0x19
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0xec]
push eax
call fcn.10148e57
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 4
cmp eax, esi
jg 0x1018f77c
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f7ad
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 + 0x6c]
mov edx, dword [esp + 0x64]
xor ebx, ebx
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x1018f7af
xor ebx, ebx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f7c2
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f7ef
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x78
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 esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f802
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f82f
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x54]
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 + 0x2c]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x24]
cmp eax, ebx
jl 0x1018f848
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x1018f848
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x7c]
push eax
push ecx
call fcn.10166887
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, esi
jg 0x1018f872
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f89f
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x10], ebx
je 0x1018f8f2
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
jg 0x1018f8c3
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f935
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x44]
mov byte [eax], 0x51
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
jmp 0x1018f935
mov edx, dword [esp + 0x70]
push edx
call fcn.1014b547
mov esi, dword [ebp + 4]
add esp, 4
cmp esi, ebx
je 0x1018f935
mov eax, dword [esp + 0x18]
mov edi, dword [ebp]
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10147587
xor ecx, ecx
mov edx, esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov byte [esi], 0x95
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f948
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f975
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x6c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x64]
mov byte [eax], 2
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 esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018f988
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f9b1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x44], esi
jg 0x1018f9c8
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018f9f5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018fa08
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018fa31
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x6c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 3
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 eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x1018fa4a
mov edx, dword [esp + 0x64]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x24], esi
jg 0x1018fa61
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018fa8d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x3c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
add esi, 2
mov byte [eax], 0x78
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1018faa0
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018fac9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x6c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 3
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 + 0xec]
lea eax, [esp + 0x7c]
push eax
mov eax, esi
call fcn.10153bb7
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x78]
push 8
inc edi
push edi
push ecx
push esi
call fcn.1017e097
mov edx, dword [esp + 0x58]
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
push edx
mov edx, dword [esp + 0x48]
push edi
push eax
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [eax]
push edx
push ebx
push ebx
push ecx
push eax
push esi
call fcn.10164807
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 0x3c
cmp eax, esi
jg 0x1018fb35
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018fb5e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x6c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 3
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 eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x1018fb77
mov edx, dword [esp + 0x2c]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x7c]
push eax
push ecx
call fcn.10166667
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 8
cmp eax, esi
jg 0x1018fba7
mov edi, ebp
call fcn.101472c7
xor ebx, ebx
test eax, eax
jne 0x1018fee8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [eax], 3
mov dword [eax + 4], ecx
xor ebx, ebx
jmp 0x1018fee8
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x5c], ebx
call fcn.10141567
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x44], edi
je 0x1018fd78
mov edx, dword [esp + 0xec]
mov esi, dword [edi + 0x40]
mov ecx, dword [edx]
call fcn.10140fa7
mov esi, dword [esp + 0xec]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x3c], ecx
inc ecx
mov dword [esi + 0x48], ecx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x18], eax
push eax
mov eax, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ecx
call fcn.1017ba17
mov edx, dword [edi]
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push ebx
push eax
push ecx
mov eax, esi
call fcn.10149697
mov eax, dword [edi + 8]
add esp, 0x14
cmp eax, ebx
je 0x1018fc9e
mov ecx, ebx
cmp byte [eax + 0x2e], bl
jne 0x1018fc6a
cmp ecx, ebx
je 0x1018fc68
mov edx, dword [eax + 0x24]
cmp edx, dword [ecx + 0x24]
jge 0x1018fc6a
mov ecx, eax
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x1018fc57
cmp ecx, ebx
mov dword [esp + 0x64], ecx
je 0x1018fc9e
movsx eax, word [edi + 0x26]
cmp dword [ecx + 0x24], eax
jge 0x1018fc9e
mov eax, dword [esp + 0xec]
mov edx, dword [ecx + 0x28]
push ecx
push eax
mov dword [esp + 0x70], edx
call fcn.101625b7
add esp, 8
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push 0x27
mov eax, ebp
call fcn.10147347
mov ecx, dword [esp + 0x3c]
add esp, 0x10
cmp ecx, ebx
je 0x1018fcfe
mov esi, dword [ebp + 4]
cmp esi, ebx
mov edi, dword [ebp]
je 0x1018fcf4
cmp byte [edi + 0x38], bl
jne 0x1018fcf4
mov eax, dword [ebp + 0x1c]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov byte [esi + 1], 0xfa
jmp 0x1018fcfe
mov eax, 0xfffffff0
call fcn.10147587
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x24], ecx
jg 0x1018fd1f
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1018fd4c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x3c]
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 + 0x24]
mov byte [eax], 0x20
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x3c]
push eax
push 0x2d
mov eax, ebp
call fcn.101473f7
mov edi, dword [esp + 0xf4]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x4c]
add esp, 8
mov edx, edi
call fcn.10153cd7
jmp 0x1018fe9e
mov eax, dword [esp + 0xf0]
xor edi, edi
call fcn.101414f7
cmp al, bl
mov byte [esp + 0x3b], al
je 0x1018fdd7
mov ecx, dword [esp + 0xf0]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x34]
push ebx
push edx
push eax
call fcn.101489e7
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x5c], edi
je 0x1018fdd7
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x38], bl
jne 0x1018fdd7
cmp byte [esp + 0x3b], 1
mov eax, dword [edi + 8]
setne dl
mov byte [eax + 0xc], dl
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
mov byte [edx], 0x98
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.10166667
movzx cx, byte [esp + 0x43]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
push ebx
push ecx
push ebx
push edi
push edx
push eax
push esi
call fcn.10189917
mov edi, eax
add esp, 0x24
cmp edi, ebx
mov dword [esp + 0x70], edi
jne 0x1018fe20
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.10148d07
add esp, 8
jmp 0x1018ff81
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.10166887
add esp, 8
cmp word [edi + 8], bx
jbe 0x1018fe7f
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x44], ecx
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x24], eax
jg 0x1018fe5a
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x70]
jne 0x1018fe7f
mov eax, dword [esp + 0x24]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x44]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
push edi
call fcn.1014b547
lea edx, [esp + 0x80]
push edx
mov eax, esi
call fcn.10153bb7
mov edi, dword [esp + 0xf4]
add esp, 8
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
push 8
push esi
push eax
push edi
mov dword [esp + 0x40], ebx
call fcn.1017e097
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov eax, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [eax]
push esi
push esi
push ecx
push ebx
push ebx
push ebx
push ebx
push edx
push eax
push edi
call fcn.10164807
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
call fcn.10148d07
add esp, 0x40
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x1018ff01
mov edx, dword [esp + 0x20]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [eax], edx
cmp byte [esp + 0xa5], 3
mov esi, dword [esp + 0xec]
jne 0x1018ff21
push 0x1018a124
mov eax, esi
call fcn.10152857
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1018ff56
push 0x1018a10c
mov eax, esi
call fcn.10152857
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xf8]
push edx
push ebp
push eax
push esi
call fcn.10152a67
add esp, 0x18
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x1018ff72
mov ecx, dword [esp + 0xe4]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov esi, dword [esp + 0xec]
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x4c]
test edi, edi
mov edx, dword [esp + 0xc0]
mov dword [esi + reloc.WINMM.dll_midiStreamOut], edx
jne 0x1018ffb5
mov eax, dword [esp + 0xf4]
cmp byte [eax], 5
jne 0x1018ffb5
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
push ecx
push edx
push esi
call fcn.1015bfb7
add esp, 0xc
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x90]
mov ecx, esi
call fcn.101394e7
mov eax, dword [esp + 0x9c]
mov ecx, esi
call fcn.101394e7
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xd8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xd8
ret