Function at 0x405d48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9c0
push ebx
push esi
push edi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x98], eax
mov eax, 0x482fc4
call fcn.0046288c
mov dword [ebp - 0x78], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0046d84c
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 8
push 0x48248c
lea eax, [ebp - 4]
call fcn.00404d08
push eax
call fcn.00464334
add esp, 8
mov dword [ebp - 0xc4], eax
test eax, eax
jne 0x405dfd
mov word [ebp - 0x84], 0x14
mov edx, str.failed1
lea eax, [ebp - 8]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046d8cc
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
jmp 0x407bf0
mov eax, dword [ebp + 8]
sub eax, 0x2c
mov dword [ebp - 0xa8], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 0x2c
mov edx, dword [ebp - 0x98]
add edx, 0x13d4
push edx
call fcn.00464574
add esp, 0x10
mov ecx, dword [ebp - 0xa8]
sub ecx, 0xb4
mov dword [ebp - 0xa8], ecx
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 0xb4
mov eax, dword [ebp - 0x98]
add eax, 0x1320
push eax
call fcn.00464574
add esp, 0x10
mov edx, dword [ebp - 0xa8]
sub edx, 4
mov dword [ebp - 0xa8], edx
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea ecx, [ebp - 0xac]
push ecx
call fcn.00464574
add esp, 0x10
mov eax, dword [ebp - 0xac]
sub dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xac]
inc edx
push edx
call fcn.00461cb8
pop ecx
mov dword [ebp - 0xbc], eax
mov dl, 1
mov eax, dword [0x44df7c]
call fcn.00407bfc
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x1400], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push dword [ebp - 0xac]
push dword [ebp - 0xbc]
call fcn.00464574
add esp, 0x10
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xac]
mov byte [eax + edx], 0
mov word [ebp - 0x84], 0x20
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xbc]
call fcn.0046d814
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1400]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
dec dword [ebp - 0x78]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046d8cc
push dword [ebp - 0xbc]
call fcn.00461ae4
pop ecx
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x137c], 1
jne 0x40609c
mov eax, dword [ebp - 0xa8]
sub eax, 4
mov dword [ebp - 0xa8], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea edx, [ebp - 0xac]
push edx
call fcn.00464574
add esp, 0x10
mov ecx, dword [ebp - 0xac]
sub dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xac]
inc eax
push eax
call fcn.00461cb8
pop ecx
mov dword [ebp - 0xbc], eax
mov dl, 1
mov eax, dword [0x44df7c]
call fcn.00407bfc
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x1404], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push dword [ebp - 0xac]
push dword [ebp - 0xbc]
call fcn.00464574
add esp, 0x10
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xac]
mov byte [ecx + eax], 0
mov word [ebp - 0x84], 0x2c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xbc]
call fcn.0046d814
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1404]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
dec dword [ebp - 0x78]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046d8cc
push dword [ebp - 0xbc]
call fcn.00461ae4
pop ecx
push 0
push dword [ebp - 0x9c]
push dword [ebp - 0xc4]
call fcn.00464614
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00464574
add esp, 0x10
cmp dword [ebp - 0xa8], 0
je 0x406222
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x1456], 1
lea edx, [ebp - 0x50c]
push edx
push 0x3e8
call sub.KERNEL32.DLL_GetTempPathA
push str.plzj.wav
lea ecx, [ebp - 0x50c]
push ecx
call fcn.00462560
add esp, 8
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1374]
push dword [ebp - 0xc4]
lea edx, [ebp - 0x50c]
push edx
push dword [ebp - 0x98]
call fcn.00407c50
add esp, 0x10
inc eax
jne 0x406171
mov word [ebp - 0x84], 0x38
mov edx, 0x4824a0
lea eax, [ebp - 0x14]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1456], 0
mov dword [ebp - 0x104], str.waveaudio
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x100], eax
lea edx, [ebp - 0x10c]
push edx
push 0x2200
push 0x803
push 0
call sub.WINMM.DLL_mciSendCommandA
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x4061e8
mov word [ebp - 0x84], 0x44
mov edx, 0x4824b7
lea eax, [ebp - 0x18]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1456], 0
jmp 0x406202
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x108]
mov dword [eax + 0x1458], edx
xor ecx, ecx
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x98]
sub eax, dword [edx + 0x13f0]
mov dword [ebp - 0xa8], eax
jmp 0x40623e
mov ecx, dword [ebp - 0x9c]
add ecx, 4
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x1456], 0
push dword [ebp - 0xc4]
call fcn.00463fcc
pop ecx
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa8]
mov dword [edx + 0x131c], ecx
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x146c]
mov edx, 0x64
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x146c]
mov edx, 0x14
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1474]
mov edx, 0xa
call fcn.0041e300
lea eax, [ebp - 0xc5]
call fcn.00401764
xor edx, edx
call fcn.004090f8
mov dl, byte [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1474]
call fcn.0041e32c
mov word [ebp - 0x84], 0x50
mov edx, 0x4824c8
lea eax, [ebp - 0x1c]
call fcn.0046d814
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1474]
call fcn.0041e288
dec dword [ebp - 0x78]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1474]
mov edx, 0xff
call fcn.0041e060
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423404
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.0041e94c
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1478]
xor ecx, ecx
mov edx, dword [ebp - 0xa8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x98]
add edx, 0x1480
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 0x28
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x520]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x50d], 0
mov word [ebp - 0x84], 0x5c
lea edx, [ebp - 0x520]
lea eax, [ebp - 0x20]
call fcn.0046d814
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1444
call fcn.0046d8fc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046d8cc
lea edx, [ebp - 0x520]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x50d], 0
mov word [ebp - 0x84], 0x68
lea edx, [ebp - 0x520]
lea eax, [ebp - 0x24]
call fcn.0046d814
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1448
call fcn.0046d8fc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1454], 1
mov word [ebp - 0x84], 0x74
mov edx, 0x4824cd
lea eax, [ebp - 0x28]
call fcn.0046d814
inc dword [ebp - 0x78]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x98]
add eax, 0x1444
call fcn.0046d99c
test al, al
jne 0x4064ab
mov edx, 0x4824ce
lea eax, [ebp - 0x2c]
call fcn.0046d814
inc dword [ebp - 0x78]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x98]
add eax, 0x1448
call fcn.0046d99c
test al, al
setne cl
and ecx, 1
push ecx
dec dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0046d8cc
pop ecx
test ecx, ecx
jne 0x4064ab
xor eax, eax
jmp 0x4064b0
mov eax, 1
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046d8cc
pop ecx
test cl, cl
je 0x4064d5
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x1454], 0
jmp 0x4064e1
push dword [ebp - 0x98]
call fcn.00408644
pop ecx
lea edx, [ebp - 0x584]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1478]
mov ecx, 0x28
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x55c], 0
mov word [ebp - 0x84], 0x80
lea edx, [ebp - 0x584]
lea eax, [ebp - 0x30]
call fcn.0046d814
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1430
call fcn.0046d8fc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0046d8cc
mov edx, dword [ebp - 0x98]
add edx, 0x1428
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x98]
add edx, 0x142c
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x98]
add edx, 0x1434
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x584]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x570], 0
mov word [ebp - 0x84], 0x8c
lea edx, [ebp - 0x584]
lea eax, [ebp - 0x34]
call fcn.0046d814
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1438
call fcn.0046d8fc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0046d8cc
mov edx, dword [ebp - 0x98]
add edx, 0x143c
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0xb5]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 1
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0xb5]
dec eax
jne 0x40665f
mov eax, dword [ebp - 0x98]
add eax, 0x1440
xor edx, edx
call fcn.004090f8
lea edx, [ebp - 0xb5]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 1
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0xb5]
dec eax
jne 0x406697
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 1
call fcn.004090f8
lea edx, [ebp - 0xb5]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 1
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0xb5]
dec eax
jne 0x4066cf
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 2
call fcn.004090f8
lea edx, [ebp - 0xb5]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 1
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0xb5]
dec eax
jne 0x406707
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 3
call fcn.004090f8
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1484]
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x14ac], eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1488]
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x14a8], eax
xor ecx, ecx
mov dword [ebp - 0xac], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x1348], 1
jne 0x406776
mov edx, dword [0x48a544]
mov eax, dword [edx]
call fcn.0042ed70
mov dword [ebp - 0xb0], eax
mov edx, dword [0x48a544]
mov eax, dword [edx]
call fcn.0042ed64
mov dword [ebp - 0xb4], eax
jmp 0x4067c6
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14ac]
mov eax, dword [ebp - 0x98]
call fcn.0042acc0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x14a8]
mov eax, dword [ebp - 0x98]
call fcn.0042acf0
mov eax, dword [ebp - 0x98]
call fcn.0043937c
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x98]
call fcn.004393c0
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x14ac]
cmp ecx, dword [ebp - 0xb0]
jg 0x406857
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0xb0]
sub edx, dword [eax + 0x14ac]
sar edx, 1
jns 0x4067f3
adc edx, 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
call fcn.0043910c
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14ac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.00439150
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.00420f84
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14ac]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4068b9
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.0043910c
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov edx, dword [ebp - 0xb0]
call fcn.00439150
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov eax, dword [eax + 0x128]
call fcn.00420f84
mov dword [ebp - 0xd0], eax
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x14a8]
cmp eax, dword [ebp - 0xb4]
jg 0x406951
mov edx, dword [ebp - 0x98]
push dword [edx + 0x14a8]
mov edx, dword [ebp - 0xb4]
pop eax
sub edx, eax
sar edx, 1
jns 0x4068ed
adc edx, 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
call fcn.0043912c
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14a8]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.00439170
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.00420f84
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14a8]
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4069b3
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.00439170
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov edx, dword [ebp - 0xb4]
call fcn.00439170
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov eax, dword [eax + 0x128]
call fcn.00420f84
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [ebp - 0xac], 1
jne 0x4069da
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x133c], 1
jne 0x4069da
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x14c8], 1
jmp 0x4069e7
mov edx, dword [ebp - 0x98]
mov byte [edx + 0x14c8], 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2ec]
mov dl, 1
call fcn.004198ac
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2dc]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x308]
mov dl, 1
call fcn.004198ac
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2f8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2ec]
xor edx, edx
call fcn.00419858
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00448ef8
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x308]
xor edx, edx
call fcn.00419858
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.00448ef8
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x318], 0
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x32c], 0
jne 0x406d41
mov word [ebp - 0x84], 0x98
lea eax, [ebp - 0x3c]
call fcn.0040171c
push eax
inc dword [ebp - 0x78]
mov edx, 0x48a920
lea eax, [ebp - 0x38]
call fcn.0046d814
inc dword [ebp - 0x78]
pop edx
call fcn.0046da44
lea ecx, [ebp - 0x3c]
push dword [ecx]
lea eax, [ebp - 0x40]
call fcn.0040171c
mov edx, eax
inc dword [ebp - 0x78]
pop eax
call fcn.00459bf0
lea eax, [ebp - 0x40]
call fcn.00404d08
push eax
push 0x48a920
call fcn.004625e8
add esp, 8
dec dword [ebp - 0x78]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0046d8cc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0046d8cc
dec dword [ebp - 0x78]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0046d8cc
push 0x48a920
call fcn.00462618
pop ecx
mov dword [ebp - 0xac], eax
cmp eax, 0xf
jl 0x406d41
push 0x48a920
lea edx, [ebp - 0x584]
push edx
call fcn.004625e8
add esp, 8
mov byte [ebp - 0x579], 0
push str.playfromto_
lea ecx, [ebp - 0x584]
push ecx
call fcn.0046259c
add esp, 8
test eax, eax
jne 0x406d41
mov dword [ebp - 0xa0], 0xb
jmp 0x406bac
mov eax, dword [ebp - 0xa0]
mov dl, byte [eax + 0x48a920]
mov ecx, dword [ebp - 0xa0]
mov byte [ebp + ecx - 0x58f], dl
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
cmp eax, dword [ebp - 0xac]
jge 0x406bcc
mov edx, dword [ebp - 0xa0]
movsx ecx, byte [edx + 0x48a920]
cmp ecx, 0x2c
jne 0x406b8d
mov eax, dword [ebp - 0xa0]
mov byte [ebp + eax - 0x58f], 0
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0xac]
jge 0x406d41
inc dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
jmp 0x406c25
mov eax, dword [ebp - 0xa4]
mov dl, byte [eax + 0x48a920]
mov ecx, dword [ebp - 0xa4]
sub ecx, dword [ebp - 0xa0]
mov byte [ebp + ecx - 0x5e8], dl
inc dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa4]
cmp eax, dword [ebp - 0xac]
jge 0x406c45
mov edx, dword [ebp - 0xa4]
movsx ecx, byte [edx + 0x48a920]
cmp ecx, 0x29
jne 0x406c00
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0xa0]
mov byte [ebp + eax - 0x5e8], 0
mov word [ebp - 0x84], 0xa4
mov word [ebp - 0x84], 0xb0
lea edx, [ebp - 0x584]
lea eax, [ebp - 0x44]
call fcn.0046d814
inc dword [ebp - 0x78]
call fcn.0046dacc
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x31c], eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0046d8cc
mov word [ebp - 0x84], 0xbc
lea edx, [ebp - 0x5e8]
lea eax, [ebp - 0x48]
call fcn.0046d814
inc dword [ebp - 0x78]
call fcn.0046dacc
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x320], eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x31c], 0
jl 0x406d28
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x320]
mov ecx, dword [ebp - 0x98]
cmp edx, dword [ecx + 0x31c]
jle 0x406d28
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x320]
mov ecx, dword [ebp - 0x98]
cmp edx, dword [ecx + 0x148c]
jge 0x406d28
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x318], 1
mov word [ebp - 0x84], 8
jmp 0x406d41
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x148c]
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x14b0], ecx
mov edx, dword [ebp - 0x98]
cmp byte [edx + 0x318], 1
jne 0x406e38
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x1484]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1460]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1488]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1460]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
mov edx, dword [ebp - 0x98]
push dword [edx + 0x1460]
mov eax, dword [ebp - 0x98]
add eax, 0x13d4
push eax
mov edx, dword [ebp - 0x98]
add edx, 0x1320
push edx
mov ecx, dword [ebp - 0x98]
push dword [ecx + 0x1478]
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1400]
mov edx, dword [ebp - 0x98]
add edx, 0x1480
push edx
mov ecx, dword [ebp - 0x98]
push dword [ecx + 0x31c]
push dword [ebp - 0x98]
call fcn.00408924
add esp, 0x24
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x31c]
inc edx
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x14b4], edx
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax + 0x14b8], edx
jmp 0x40707f
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x14a4], 1
jne 0x406f16
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0xac]
mov eax, dword [ebp - 0x98]
fstp dword [eax + 0x1414]
lea edx, [ebp - 0xac]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0xac]
mov eax, dword [ebp - 0x98]
fstp dword [eax + 0x1418]
lea edx, [ebp - 0xac]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x1478]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1410]
mov ecx, dword [ebp - 0xac]
call fcn.00451100
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1410]
xor edx, edx
call fcn.0045104c
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x1410]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1424]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1370], 0
jne 0x406fca
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x1478]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x147c]
mov ecx, dword [ebp - 0xac]
call fcn.00451100
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x147c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x147c]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x145c]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x147c]
call fcn.004513d0
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x145c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1460]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x407045
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1370], 1
jl 0x407045
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1488]
mov edx, dword [ebp - 0x98]
push dword [edx + 0x1484]
mov ecx, dword [ebp - 0x98]
push dword [ecx + 0x1370]
push dword [ebp - 0xac]
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1478]
mov edx, dword [ebp - 0x98]
push dword [edx + 0x1460]
push dword [ebp - 0x98]
call fcn.0040424c
add esp, 0x1c
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x14b4], 1
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax + 0x14b8], edx
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
mov dl, 1
mov eax, dword [0x41c954]
call fcn.0041de8c
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x1470], eax
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x1454], 0
jne 0x4071ec
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1470]
mov edx, 0x14
call fcn.0041e300
lea eax, [ebp - 0xd9]
call fcn.00401764
xor edx, edx
call fcn.004090f8
mov dl, byte [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e32c
mov word [ebp - 0x84], 0xc8
mov edx, 0x4824db
lea eax, [ebp - 0x4c]
call fcn.0046d814
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
call fcn.0041e288
dec dword [ebp - 0x78]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
mov edx, 0xff
call fcn.0041e060
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423404
add eax, 0xc
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1470]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 8]
mov word [ebp - 0x84], 0xd4
mov edx, 0x4824e0
lea eax, [ebp - 0x50]
call fcn.0046d814
inc dword [ebp - 0x78]
push dword [eax]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1460]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x40719d
adc eax, 0
add eax, 0xffffffec
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
mov edx, dword [eax]
call dword [edx + 0x2c]
sar eax, 1
jns 0x4071b9
adc eax, 0
add eax, 0xffffff6a
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423404
pop edx
pop ecx
call fcn.0046d80c
dec dword [ebp - 0x78]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0046d8cc
jmp 0x407313
mov word [ebp - 0x84], 0xe0
mov edx, 0x4824f4
lea eax, [ebp - 0x54]
call fcn.0046d814
inc dword [ebp - 0x78]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x98]
add eax, 0x1430
call fcn.0046d9b4
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0046d8cc
pop ecx
test cl, cl
je 0x407313
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x1434]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
call fcn.0041e300
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1438]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e288
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x143c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e060
mov edx, dword [ebp - 0x98]
mov dl, byte [edx + 0x1440]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e32c
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1460]
call fcn.00423404
add eax, 0xc
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1470]
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x98]
push dword [edx + 0x1430]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1460]
call fcn.00423404
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x142c]
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1428]
call fcn.0046d80c
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14a4], 1
jne 0x40736a
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1424]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1468]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1424]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1468]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x98]
cmp byte [edx + 0x14c8], 0
jne 0x4074f6
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1460]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x2d0]
call fcn.0043356c
xor ecx, ecx
xor edx, edx
call fcn.0041eb28
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14a4], 1
jne 0x40754b
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1468]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x63c], eax
fild dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x98]
fadd dword [ecx + 0x1418]
call fcn.00466954
push eax
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1468]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x640], eax
fild dword [ebp - 0x640]
mov ecx, dword [ebp - 0x98]
fadd dword [ecx + 0x1414]
call fcn.00466954
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1418]
call fcn.00466954
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1414]
call fcn.00466954
push eax
lea edx, [ebp - 0x608]
push edx
call fcn.00402010
add esp, 0x14
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1468]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1468]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x5f8]
push ecx
call fcn.00402010
add esp, 0x14
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.0043356c
push eax
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1468]
call fcn.00423404
pop ecx
pop edx
call fcn.0041eaa0
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1424]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x2d0]
call fcn.0043356c
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1418]
call fcn.00466954
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1414]
call fcn.00466954
mov edx, eax
pop ecx
pop eax
call fcn.0041eb28
jmp 0x40754b
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x2d0]
push dword [ecx + 0x3c]
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x2d0]
push dword [edx + 0x38]
push 0
push 0
lea ecx, [ebp - 0x618]
push ecx
call fcn.00402010
add esp, 0x14
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.0043356c
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x1460]
pop edx
call fcn.0041ed64
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x146c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x146c]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebx, eax
push ebx
lea ecx, [ebp - 0x638]
push ecx
call fcn.00402010
add esp, 0x14
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x146c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x146c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x628]
push ecx
call fcn.00402010
add esp, 0x14
push eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1460]
call fcn.00423404
push eax
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x146c]
call fcn.00423404
pop ecx
pop edx
call fcn.0041eaa0
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax + 0x1314], edx
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x14a4], 1
jne 0x407683
lea edx, [ebp - 0xac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0xac]
mov eax, dword [ebp - 0x98]
fstp dword [eax + 0x141c]
lea edx, [ebp - 0xac]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1478]
mov ecx, 4
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0xac]
mov eax, dword [ebp - 0x98]
fstp dword [eax + 0x1420]
push 8
lea edx, [ebp - 0xec]
push edx
call sub.WINMM.DLL_timeGetDevCaps
test eax, eax
jne 0x4077f5
push 1
call sub.WINMM.DLL_timeBeginPeriod
cmp eax, 0x61
jne 0x4076da
mov word [ebp - 0x84], 0xec
mov edx, 0x4824f5
lea eax, [ebp - 0x58]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0046d8cc
jmp 0x407825
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1494]
mov ecx, 0x28
cdq
idiv ecx
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x14bc], eax
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14bc], 0
jne 0x407719
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x14bc], 1
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x14bc]
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x14c0], edx
push 1
push dword [ebp - 0x98]
push 0x401508
push 1
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1494]
call sub.WINMM.DLL_timeSetEvent
mov dword [0x48a918], eax
test eax, eax
jne 0x40778a
mov word [ebp - 0x84], 0xf8
mov edx, 0x482504
lea eax, [ebp - 0x5c]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0046d8cc
push 1
push dword [ebp - 0x98]
push 0x4015a0
push 1
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1494]
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x14bc]
cdq
idiv ecx
push eax
call sub.WINMM.DLL_timeSetEvent
mov dword [0x48a91c], eax
test eax, eax
jne 0x407825
mov word [ebp - 0x84], 0x104
mov edx, 0x482514
lea eax, [ebp - 0x60]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0046d8cc
jmp 0x407825
mov word [ebp - 0x84], 0x110
mov edx, 0x482524
lea eax, [ebp - 0x64]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1455], 1
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax + 0x1408], edx
mov ecx, dword [ebp - 0x98]
cmp byte [ecx + 0x1456], 1
jne 0x407901
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x318], 1
jne 0x407881
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x1494]
mov eax, dword [ebp - 0x98]
imul ecx, dword [eax + 0x31c]
mov dword [ebp - 0xf4], ecx
lea edx, [ebp - 0xf8]
push edx
push 4
push 0x806
mov ecx, dword [ebp - 0x98]
push dword [ecx + 0x1458]
call sub.WINMM.DLL_mciSendCommandA
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x407901
mov word [ebp - 0x84], 0x11c
mov edx, 0x482533
lea eax, [ebp - 0x68]
call fcn.0046d814
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.00434888
dec dword [ebp - 0x78]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0046d8cc
push 0
push 2
push 0x804
mov ecx, dword [ebp - 0x98]
push dword [ecx + 0x1458]
call sub.WINMM.DLL_mciSendCommandA
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x1456], 0
mov edx, dword [ebp - 0x98]
mov byte [edx + 0x1319], 0
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x134c], 0
jne 0x40793f
xor edx, edx
mov eax, dword [ebp - 0x98]
call fcn.004398d0
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2ec]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x1350], 0
jne 0x407961
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x300]
xor edx, edx
call fcn.004198ac
mov ecx, dword [0x48a544]
mov eax, dword [ecx]
call fcn.0042ed70
mov edx, eax
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
sub edx, dword [eax + 0x38]
add edx, 0xffffffce
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
call fcn.0043910c
mov edx, dword [0x48a544]
mov eax, dword [edx]
call fcn.0042ed64
mov edx, eax
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
sub edx, dword [eax + 0x3c]
add edx, 0xffffff9c
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
call fcn.0043912c
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1350], 1
jne 0x4079f5
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x1354], 1
jne 0x4079f5
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x300]
mov dl, 1
call fcn.00419858
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
call fcn.0042def0
jmp 0x407a1f
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1350], 0
jne 0x407a1f
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
cmp byte [eax + 0x47], 1
jne 0x407a1f
mov edx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [edx]
call fcn.0042dd38
mov edx, dword [ebp - 0x98]
cmp byte [edx + 0x318], 1
jne 0x407b81
xor ecx, ecx
mov dword [ebp - 0xa0], ecx
jmp 0x407b00
mov word [ebp - 0x84], 0x128
lea eax, [ebp - 0x6c]
call fcn.0040171c
mov ecx, eax
inc dword [ebp - 0x78]
mov edx, dword [ebp - 0xa0]
add edx, edx
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1400]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x6c]
call fcn.0046dacc
mov edx, dword [ebp - 0x98]
cmp eax, dword [edx + 0x31c]
jg 0x407adb
lea eax, [ebp - 0x70]
call fcn.0040171c
mov ecx, eax
inc dword [ebp - 0x78]
mov edx, dword [ebp - 0xa0]
inc edx
add edx, edx
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1400]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0x70]
call fcn.0046dacc
mov edx, dword [ebp - 0x98]
cmp eax, dword [edx + 0x31c]
setg cl
and ecx, 1
push ecx
dec dword [ebp - 0x78]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0046d8cc
pop ecx
test ecx, ecx
jne 0x407adf
xor eax, eax
jmp 0x407ae4
mov eax, 1
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0046d8cc
pop ecx
test cl, cl
jne 0x407b25
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1400]
mov edx, dword [eax]
call dword [edx + 0x14]
sar eax, 1
jns 0x407b18
adc eax, 0
dec eax
cmp eax, dword [ebp - 0xa0]
jg 0x407a3f
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov edx, dword [ebp - 0xa0]
mov dword [eax + 0x344], edx
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2e8]
mov edx, dword [ebp - 0xa0]
call fcn.00447fc0
mov ecx, dword [sym.Project1.exe__PlayForm]
mov eax, dword [ecx + 0x1400]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sar edx, 1
jns 0x407b6c
adc edx, 0
dec edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e8]
call fcn.00447ff0
jmp 0x407bd3
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
xor eax, eax
mov dword [ecx + 0x344], eax
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2e8]
xor edx, edx
call fcn.00447fc0
mov ecx, dword [sym.Project1.exe__PlayForm]
mov eax, dword [ecx + 0x1400]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sar edx, 1
jns 0x407bc0
adc edx, 0
dec edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e8]
call fcn.00447ff0
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046d8cc
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4