Function at 0x405d5c
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, 0x482fb0
call fcn.004628cc
mov dword [ebp - 0x78], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0046d8a8
inc dword [ebp - 0x78]
mov word [ebp - 0x84], 8
push 0x48248c
lea eax, [ebp - 4]
call fcn.00404d1c
push eax
call fcn.0046437c
add esp, 8
mov dword [ebp - 0xc4], eax
test eax, eax
jne 0x405e11
mov word [ebp - 0x84], 0x14
mov edx, str.failed1
lea eax, [ebp - 8]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046d928
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
jmp 0x407c04
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.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 0x2c
mov edx, dword [ebp - 0x98]
add edx, 0x13d4
push edx
call fcn.004645bc
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.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 0xb4
mov eax, dword [ebp - 0x98]
add eax, 0x1320
push eax
call fcn.004645bc
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.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea ecx, [ebp - 0xac]
push ecx
call fcn.004645bc
add esp, 0x10
mov eax, dword [ebp - 0xac]
sub dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xac]
inc edx
push edx
call fcn.00461cf8
pop ecx
mov dword [ebp - 0xbc], eax
mov dl, 1
mov eax, dword [0x44dfb8]
call fcn.00407c10
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x1400], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push dword [ebp - 0xac]
push dword [ebp - 0xbc]
call fcn.004645bc
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.0046d870
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.0046d928
push dword [ebp - 0xbc]
call fcn.00461b20
pop ecx
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x137c], 1
jne 0x4060b0
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.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea edx, [ebp - 0xac]
push edx
call fcn.004645bc
add esp, 0x10
mov ecx, dword [ebp - 0xac]
sub dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xac]
inc eax
push eax
call fcn.00461cf8
pop ecx
mov dword [ebp - 0xbc], eax
mov dl, 1
mov eax, dword [0x44dfb8]
call fcn.00407c10
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x1404], eax
push 0
push dword [ebp - 0xa8]
push dword [ebp - 0xc4]
call fcn.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push dword [ebp - 0xac]
push dword [ebp - 0xbc]
call fcn.004645bc
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.0046d870
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.0046d928
push dword [ebp - 0xbc]
call fcn.00461b20
pop ecx
push 0
push dword [ebp - 0x9c]
push dword [ebp - 0xc4]
call fcn.0046465c
add esp, 0xc
push dword [ebp - 0xc4]
push 1
push 4
lea ecx, [ebp - 0xa8]
push ecx
call fcn.004645bc
add esp, 0x10
cmp dword [ebp - 0xa8], 0
je 0x406236
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.004625a0
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.00407c64
add esp, 0x10
inc eax
jne 0x406185
mov word [ebp - 0x84], 0x38
mov edx, 0x4824a0
lea eax, [ebp - 0x14]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046d928
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 0x4061fc
mov word [ebp - 0x84], 0x44
mov edx, 0x4824b7
lea eax, [ebp - 0x18]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1456], 0
jmp 0x406216
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 0x406252
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.00464010
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.0041e33c
lea eax, [ebp - 0xc5]
call fcn.00401764
xor edx, edx
call fcn.0040912c
mov dl, byte [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1474]
call fcn.0041e368
mov word [ebp - 0x84], 0x50
mov edx, 0x4824c8
lea eax, [ebp - 0x1c]
call fcn.0046d870
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1474]
call fcn.0041e2c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1474]
mov edx, 0xff
call fcn.0041e09c
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423440
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.0041e988
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.0046d870
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1444
call fcn.0046d958
dec dword [ebp - 0x78]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046d928
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.0046d870
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1448
call fcn.0046d958
dec dword [ebp - 0x78]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x1454], 1
mov word [ebp - 0x84], 0x74
mov edx, 0x4824cd
lea eax, [ebp - 0x28]
call fcn.0046d870
inc dword [ebp - 0x78]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x98]
add eax, 0x1444
call fcn.0046d9f8
test al, al
jne 0x4064bf
mov edx, 0x4824ce
lea eax, [ebp - 0x2c]
call fcn.0046d870
inc dword [ebp - 0x78]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x98]
add eax, 0x1448
call fcn.0046d9f8
test al, al
setne cl
and ecx, 1
push ecx
dec dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0046d928
pop ecx
test ecx, ecx
jne 0x4064bf
xor eax, eax
jmp 0x4064c4
mov eax, 1
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046d928
pop ecx
test cl, cl
je 0x4064e9
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x1454], 0
jmp 0x4064f5
push dword [ebp - 0x98]
call fcn.00408658
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.0046d870
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1430
call fcn.0046d958
dec dword [ebp - 0x78]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0046d928
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.0046d870
mov edx, eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
add eax, 0x1438
call fcn.0046d958
dec dword [ebp - 0x78]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0046d928
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 0x406673
mov eax, dword [ebp - 0x98]
add eax, 0x1440
xor edx, edx
call fcn.0040912c
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 0x4066ab
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 1
call fcn.0040912c
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 0x4066e3
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 2
call fcn.0040912c
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 0x40671b
mov eax, dword [ebp - 0x98]
add eax, 0x1440
mov dl, 3
call fcn.0040912c
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 0x40678a
mov edx, dword [0x48a55c]
mov eax, dword [edx]
call fcn.0042edac
mov dword [ebp - 0xb0], eax
mov edx, dword [0x48a55c]
mov eax, dword [edx]
call fcn.0042eda0
mov dword [ebp - 0xb4], eax
jmp 0x4067da
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14ac]
mov eax, dword [ebp - 0x98]
call fcn.0042acfc
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 0x14a8]
mov eax, dword [ebp - 0x98]
call fcn.0042ad2c
mov eax, dword [ebp - 0x98]
call fcn.004393b8
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x98]
call fcn.004393fc
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x14ac]
cmp ecx, dword [ebp - 0xb0]
jg 0x40686b
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0xb0]
sub edx, dword [eax + 0x14ac]
sar edx, 1
jns 0x406807
adc edx, 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
call fcn.00439148
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14ac]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.0043918c
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.00420fc0
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 0x4068cd
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.00439148
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov edx, dword [ebp - 0xb0]
call fcn.0043918c
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov eax, dword [eax + 0x128]
call fcn.00420fc0
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 0x406965
mov edx, dword [ebp - 0x98]
push dword [edx + 0x14a8]
mov edx, dword [ebp - 0xb4]
pop eax
sub edx, eax
sar edx, 1
jns 0x406901
adc edx, 0
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
call fcn.00439168
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x14a8]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
call fcn.004391ac
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.00420fc0
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 0x4069c7
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x2d0]
xor edx, edx
call fcn.004391ac
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov edx, dword [ebp - 0xb4]
call fcn.004391ac
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x2d0]
mov eax, dword [eax + 0x128]
call fcn.00420fc0
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 0x4069ee
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x133c], 1
jne 0x4069ee
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x14c8], 1
jmp 0x4069fb
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.004198e8
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.004198e8
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.00419894
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2dc]
xor edx, edx
call fcn.00448f34
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x308]
xor edx, edx
call fcn.00419894
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.00448f34
mov ecx, dword [ebp - 0x98]
mov byte [ecx + 0x318], 0
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x32c], 0
jne 0x406d55
mov word [ebp - 0x84], 0x98
lea eax, [ebp - 0x3c]
call fcn.0040171c
push eax
inc dword [ebp - 0x78]
mov edx, 0x48a938
lea eax, [ebp - 0x38]
call fcn.0046d870
inc dword [ebp - 0x78]
pop edx
call fcn.0046daa0
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.00459c2c
lea eax, [ebp - 0x40]
call fcn.00404d1c
push eax
push 0x48a938
call fcn.00462628
add esp, 8
dec dword [ebp - 0x78]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0046d928
dec dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0046d928
dec dword [ebp - 0x78]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0046d928
push 0x48a938
call fcn.00462658
pop ecx
mov dword [ebp - 0xac], eax
cmp eax, 0xf
jl 0x406d55
push 0x48a938
lea edx, [ebp - 0x584]
push edx
call fcn.00462628
add esp, 8
mov byte [ebp - 0x579], 0
push str.playfromto_
lea ecx, [ebp - 0x584]
push ecx
call fcn.004625dc
add esp, 8
test eax, eax
jne 0x406d55
mov dword [ebp - 0xa0], 0xb
jmp 0x406bc0
mov eax, dword [ebp - 0xa0]
mov dl, byte [eax + 0x48a938]
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 0x406be0
mov edx, dword [ebp - 0xa0]
movsx ecx, byte [edx + 0x48a938]
cmp ecx, 0x2c
jne 0x406ba1
mov eax, dword [ebp - 0xa0]
mov byte [ebp + eax - 0x58f], 0
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0xac]
jge 0x406d55
inc dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
jmp 0x406c39
mov eax, dword [ebp - 0xa4]
mov dl, byte [eax + 0x48a938]
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 0x406c59
mov edx, dword [ebp - 0xa4]
movsx ecx, byte [edx + 0x48a938]
cmp ecx, 0x29
jne 0x406c14
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.0046d870
inc dword [ebp - 0x78]
call fcn.0046db28
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x31c], eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0046d928
mov word [ebp - 0x84], 0xbc
lea edx, [ebp - 0x5e8]
lea eax, [ebp - 0x48]
call fcn.0046d870
inc dword [ebp - 0x78]
call fcn.0046db28
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x320], eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x31c], 0
jl 0x406d3c
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x320]
mov ecx, dword [ebp - 0x98]
cmp edx, dword [ecx + 0x31c]
jle 0x406d3c
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x320]
mov ecx, dword [ebp - 0x98]
cmp edx, dword [ecx + 0x148c]
jge 0x406d3c
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x318], 1
mov word [ebp - 0x84], 8
jmp 0x406d55
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 0x406e4c
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.00408958
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 0x407093
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x14a4], 1
jne 0x406f2a
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.0045113c
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1410]
xor edx, edx
call fcn.00451088
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 0x406fde
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.0045113c
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.0045140c
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 0x407059
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1370], 1
jl 0x407059
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.00404240
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 [0x41c990]
call fcn.0041dec8
mov ecx, dword [ebp - 0x98]
mov dword [ecx + 0x1470], eax
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x1454], 0
jne 0x407200
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1470]
mov edx, 0x14
call fcn.0041e33c
lea eax, [ebp - 0xd9]
call fcn.00401764
xor edx, edx
call fcn.0040912c
mov dl, byte [eax]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e368
mov word [ebp - 0x84], 0xc8
mov edx, 0x4824db
lea eax, [ebp - 0x4c]
call fcn.0046d870
inc dword [ebp - 0x78]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
call fcn.0041e2c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
mov edx, 0xff
call fcn.0041e09c
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423440
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, 0x48242a
lea eax, [ebp - 0x50]
call fcn.0046d870
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 0x4071b1
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 0x4071cd
adc eax, 0
add eax, 0xffffff6a
push eax
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1460]
call fcn.00423440
pop edx
pop ecx
call fcn.0046d868
dec dword [ebp - 0x78]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0046d928
jmp 0x407327
mov word [ebp - 0x84], 0xe0
mov edx, 0x4824e0
lea eax, [ebp - 0x54]
call fcn.0046d870
inc dword [ebp - 0x78]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x98]
add eax, 0x1430
call fcn.0046da10
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0046d928
pop ecx
test cl, cl
je 0x407327
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 0x1434]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx + 0x1470]
call fcn.0041e33c
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1438]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e2c4
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x143c]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e09c
mov edx, dword [ebp - 0x98]
mov dl, byte [edx + 0x1440]
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x1470]
call fcn.0041e368
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1460]
call fcn.00423440
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.00423440
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x142c]
mov edx, dword [ebp - 0x98]
mov edx, dword [edx + 0x1428]
call fcn.0046d868
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14a4], 1
jne 0x40737e
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 0x40750a
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1460]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x2d0]
call fcn.004335a8
xor ecx, ecx
xor edx, edx
call fcn.0041eb64
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x14a4], 1
jne 0x40755f
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.004669c8
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.004669c8
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1418]
call fcn.004669c8
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1414]
call fcn.004669c8
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.004335a8
push eax
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x1468]
call fcn.00423440
pop ecx
pop edx
call fcn.0041eadc
mov eax, dword [ebp - 0x98]
push dword [eax + 0x1424]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x2d0]
call fcn.004335a8
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1418]
call fcn.004669c8
push eax
mov edx, dword [ebp - 0x98]
fld dword [edx + 0x1414]
call fcn.004669c8
mov edx, eax
pop ecx
pop eax
call fcn.0041eb64
jmp 0x40755f
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.004335a8
mov edx, dword [ebp - 0x98]
mov ecx, dword [edx + 0x1460]
pop edx
call fcn.0041eda0
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.00423440
push eax
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x146c]
call fcn.00423440
pop ecx
pop edx
call fcn.0041eadc
mov eax, dword [ebp - 0x98]
xor edx, edx
mov dword [eax + 0x1314], edx
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x14a4], 1
jne 0x407697
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 0x407809
push 1
call sub.WINMM.DLL_timeBeginPeriod
cmp eax, 0x61
jne 0x4076ee
mov word [ebp - 0x84], 0xec
mov edx, 0x4824e1
lea eax, [ebp - 0x58]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0046d928
jmp 0x407839
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 0x40772d
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 [0x48a930], eax
test eax, eax
jne 0x40779e
mov word [ebp - 0x84], 0xf8
mov edx, 0x4824f0
lea eax, [ebp - 0x5c]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0046d928
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 [0x48a934], eax
test eax, eax
jne 0x407839
mov word [ebp - 0x84], 0x104
mov edx, 0x482500
lea eax, [ebp - 0x60]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0046d928
jmp 0x407839
mov word [ebp - 0x84], 0x110
mov edx, 0x482510
lea eax, [ebp - 0x64]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0046d928
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 0x407915
mov eax, dword [ebp - 0x98]
cmp byte [eax + 0x318], 1
jne 0x407895
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 0x407915
mov word [ebp - 0x84], 0x11c
mov edx, 0x48251f
lea eax, [ebp - 0x68]
call fcn.0046d870
inc dword [ebp - 0x78]
mov eax, dword [eax]
call fcn.004348c4
dec dword [ebp - 0x78]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0046d928
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 0x407953
xor edx, edx
mov eax, dword [ebp - 0x98]
call fcn.0043990c
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 0x407975
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x300]
xor edx, edx
call fcn.004198e8
mov ecx, dword [0x48a55c]
mov eax, dword [ecx]
call fcn.0042edac
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.00439148
mov edx, dword [0x48a55c]
mov eax, dword [edx]
call fcn.0042eda0
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.00439168
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1350], 1
jne 0x407a09
mov ecx, dword [ebp - 0x98]
cmp dword [ecx + 0x1354], 1
jne 0x407a09
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x300]
mov dl, 1
call fcn.00419894
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
call fcn.0042df2c
jmp 0x407a33
mov edx, dword [ebp - 0x98]
cmp dword [edx + 0x1350], 0
jne 0x407a33
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
cmp byte [eax + 0x47], 1
jne 0x407a33
mov edx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [edx]
call fcn.0042dd74
mov edx, dword [ebp - 0x98]
cmp byte [edx + 0x318], 1
jne 0x407b95
xor ecx, ecx
mov dword [ebp - 0xa0], ecx
jmp 0x407b14
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.0046db28
mov edx, dword [ebp - 0x98]
cmp eax, dword [edx + 0x31c]
jg 0x407aef
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.0046db28
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.0046d928
pop ecx
test ecx, ecx
jne 0x407af3
xor eax, eax
jmp 0x407af8
mov eax, 1
push eax
dec dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0046d928
pop ecx
test cl, cl
jne 0x407b39
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 0x407b2c
adc eax, 0
dec eax
cmp eax, dword [ebp - 0xa0]
jg 0x407a53
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.00447ffc
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 0x407b80
adc edx, 0
dec edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e8]
call fcn.0044802c
jmp 0x407be7
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.00447ffc
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 0x407bd4
adc edx, 0
dec edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e8]
call fcn.0044802c
dec dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046d928
mov ecx, dword [ebp - 0x94]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4