Function at 0x405b64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa48
push ebx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x7c], eax
mov eax, 0x47ff24
call fcn.0045f128
mov dword [ebp - 0x5c], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0046a0e8
inc dword [ebp - 0x5c]
mov word [ebp - 0x68], 8
push 0x47f48c
lea eax, [ebp - 4]
call fcn.00404b3c
push eax
call fcn.00460bd0
add esp, 8
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x405c08
mov word [ebp - 0x68], 0x14
mov edx, str.failed1
lea eax, [ebp - 8]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046a168
dec dword [ebp - 0x5c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x78]
mov dword fs:[0], ecx
jmp 0x4071df
mov eax, dword [ebp + 8]
sub eax, 0x2c
mov dword [ebp - 0x84], eax
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push 0x2c
mov edx, dword [ebp - 0x7c]
add edx, 0x13c0
push edx
call fcn.00460e10
add esp, 0x10
mov ecx, dword [ebp - 0x84]
sub ecx, 0xb4
mov dword [ebp - 0x84], ecx
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push 0xb4
mov eax, dword [ebp - 0x7c]
add eax, 0x130c
push eax
call fcn.00460e10
add esp, 0x10
mov edx, dword [ebp - 0x84]
sub edx, 4
mov dword [ebp - 0x84], edx
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push 4
lea ecx, [ebp - 0x88]
push ecx
call fcn.00460e10
add esp, 0x10
mov eax, dword [ebp - 0x88]
sub dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x88]
inc edx
push edx
call fcn.0045e554
pop ecx
mov dword [ebp - 0x98], eax
mov dl, 1
mov eax, dword [0x44a8a4]
call fcn.004071e8
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x13ec], eax
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push dword [ebp - 0x88]
push dword [ebp - 0x98]
call fcn.00460e10
add esp, 0x10
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x88]
mov byte [eax + edx], 0
mov word [ebp - 0x68], 0x20
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x98]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x13ec]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
dec dword [ebp - 0x5c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046a168
push dword [ebp - 0x98]
call fcn.0045e380
pop ecx
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x1368], 1
jne 0x405e8c
mov eax, dword [ebp - 0x84]
sub eax, 4
mov dword [ebp - 0x84], eax
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push 4
lea edx, [ebp - 0x88]
push edx
call fcn.00460e10
add esp, 0x10
mov ecx, dword [ebp - 0x88]
sub dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x88]
inc eax
push eax
call fcn.0045e554
pop ecx
mov dword [ebp - 0x98], eax
mov dl, 1
mov eax, dword [0x44a8a4]
call fcn.004071e8
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x13f0], eax
push 0
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push dword [ebp - 0x88]
push dword [ebp - 0x98]
call fcn.00460e10
add esp, 0x10
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
mov byte [ecx + eax], 0
mov word [ebp - 0x68], 0x2c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x98]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x13f0]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046a168
push dword [ebp - 0x98]
call fcn.0045e380
pop ecx
push 0
push dword [ebp - 0x80]
push dword [ebp - 0xa0]
call fcn.00460eb0
add esp, 0xc
push dword [ebp - 0xa0]
push 1
push 4
lea ecx, [ebp - 0x84]
push ecx
call fcn.00460e10
add esp, 0x10
cmp dword [ebp - 0x84], 0
je 0x405ff1
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x1442], 1
lea edx, [ebp - 0x4e8]
push edx
push 0x3e8
call sub.KERNEL32.DLL_GetTempPathA
push str.plzj.wav
lea ecx, [ebp - 0x4e8]
push ecx
call fcn.0045edfc
add esp, 8
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x1360]
push dword [ebp - 0xa0]
lea edx, [ebp - 0x4e8]
push edx
push dword [ebp - 0x7c]
call fcn.0040723c
add esp, 0x10
inc eax
jne 0x405f4f
mov word [ebp - 0x68], 0x38
mov edx, 0x47f4a0
lea eax, [ebp - 0x14]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + 0x1442], 0
mov dword [ebp - 0xe0], str.waveaudio
lea eax, [ebp - 0x4e8]
mov dword [ebp - 0xdc], eax
lea edx, [ebp - 0xe8]
push edx
push 0x2200
push 0x803
push 0
call sub.WINMM.DLL_mciSendCommandA
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x405fc0
mov word [ebp - 0x68], 0x44
mov edx, 0x47f4b7
lea eax, [ebp - 0x18]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + 0x1442], 0
jmp 0x405fd7
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x1444], eax
xor ecx, ecx
mov dword [ebp - 0xd0], ecx
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
sub eax, dword [edx + 0x13dc]
mov dword [ebp - 0x84], eax
jmp 0x406007
mov ecx, dword [ebp - 0x80]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x1442], 0
push dword [ebp - 0xa0]
call fcn.00460868
pop ecx
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x1308], edx
mov edx, 0x64
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1458]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, 0x14
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1458]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0xa
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1460]
call fcn.0041acc0
lea eax, [ebp - 0xa1]
call fcn.00401754
xor edx, edx
call fcn.00407f10
mov dl, byte [eax]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1460]
call fcn.0041acec
mov word [ebp - 0x68], 0x50
mov edx, 0x47f4c8
lea eax, [ebp - 0x1c]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1460]
call fcn.0041ac48
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046a168
mov edx, 0xff
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1460]
call fcn.0041aa20
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x144c]
call fcn.0041fdc4
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.0041b30c
xor ecx, ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x7c]
add edx, 0x146c
mov ecx, 0x28
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x4fc]
mov ecx, 0x14
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x4e9], 0
mov word [ebp - 0x68], 0x5c
lea edx, [ebp - 0x4fc]
lea eax, [ebp - 0x20]
call fcn.0046a0b0
mov edx, eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
add eax, 0x1430
call fcn.0046a198
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046a168
lea edx, [ebp - 0x4fc]
mov ecx, 0x14
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x4e9], 0
mov word [ebp - 0x68], 0x68
lea edx, [ebp - 0x4fc]
lea eax, [ebp - 0x24]
call fcn.0046a0b0
mov edx, eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
add eax, 0x1434
call fcn.0046a198
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + 0x1440], 1
mov word [ebp - 0x68], 0x74
mov edx, 0x47f4cd
lea eax, [ebp - 0x28]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x7c]
add eax, 0x1430
call fcn.0046a238
test al, al
jne 0x406232
mov edx, 0x47f4ce
lea eax, [ebp - 0x2c]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x7c]
add eax, 0x1434
call fcn.0046a238
test al, al
setne cl
and ecx, 1
push ecx
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0046a168
pop ecx
test ecx, ecx
jne 0x406232
xor eax, eax
jmp 0x406237
mov eax, 1
push eax
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046a168
pop ecx
test cl, cl
je 0x406259
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x1440], 0
jmp 0x406262
push dword [ebp - 0x7c]
call fcn.00407c30
pop ecx
lea edx, [ebp - 0x560]
mov ecx, 0x28
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x538], 0
mov word [ebp - 0x68], 0x80
lea edx, [ebp - 0x560]
lea eax, [ebp - 0x30]
call fcn.0046a0b0
mov edx, eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
add eax, 0x141c
call fcn.0046a198
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0046a168
mov edx, dword [ebp - 0x7c]
add edx, 0x1414
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x7c]
add edx, 0x1418
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp - 0x7c]
add edx, 0x1420
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x560]
mov ecx, 0x14
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov byte [ebp - 0x54c], 0
mov word [ebp - 0x68], 0x8c
lea edx, [ebp - 0x560]
lea eax, [ebp - 0x34]
call fcn.0046a0b0
mov edx, eax
inc dword [ebp - 0x5c]
mov eax, dword [ebp - 0x7c]
add eax, 0x1424
call fcn.0046a198
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0046a168
mov edx, dword [ebp - 0x7c]
add edx, 0x1428
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
lea edx, [ebp - 0x91]
mov ecx, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0x91]
dec eax
jne 0x4063b0
mov eax, dword [ebp - 0x7c]
add eax, 0x142c
xor edx, edx
call fcn.00407f10
lea edx, [ebp - 0x91]
mov ecx, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0x91]
dec eax
jne 0x4063e2
mov eax, dword [ebp - 0x7c]
add eax, 0x142c
mov dl, 1
call fcn.00407f10
lea edx, [ebp - 0x91]
mov ecx, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0x91]
dec eax
jne 0x406414
mov eax, dword [ebp - 0x7c]
add eax, 0x142c
mov dl, 2
call fcn.00407f10
lea edx, [ebp - 0x91]
mov ecx, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
movsx eax, byte [ebp - 0x91]
dec eax
jne 0x406446
mov eax, dword [ebp - 0x7c]
add eax, 0x142c
mov dl, 3
call fcn.00407f10
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1470]
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x1498], eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1474]
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x1494], eax
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x1334], 1
jne 0x4064a6
mov edx, dword [0x486eec]
mov eax, dword [edx]
call fcn.0042b730
mov dword [ebp - 0x8c], eax
mov edx, dword [0x486eec]
mov eax, dword [edx]
call fcn.0042b724
mov dword [ebp - 0x90], eax
jmp 0x4064e4
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1498]
mov eax, dword [ebp - 0x7c]
call fcn.00427680
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x1494]
mov eax, dword [ebp - 0x7c]
call fcn.004276b0
mov eax, dword [ebp - 0x7c]
call fcn.00435cb4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x7c]
call fcn.00435cf8
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x7c]
cmp edx, dword [ecx + 0x1498]
jl 0x406560
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x7c]
sub edx, dword [eax + 0x1498]
sar edx, 1
jns 0x40650b
adc edx, 0
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x2d0]
call fcn.00435a44
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1498]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.00435a88
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.0041d944
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1498]
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x4065b9
mov dword [ebp - 0x88], 1
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.00435a44
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x2d0]
call fcn.00435a88
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.0041d944
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x7c]
cmp edx, dword [eax + 0x1494]
jl 0x406635
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x7c]
sub edx, dword [ecx + 0x1494]
sar edx, 1
jns 0x4065e0
adc edx, 0
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.00435a64
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1494]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.00435aa8
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.0041d944
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1494]
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x40668e
mov dword [ebp - 0x88], 1
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.00435aa8
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x2d0]
call fcn.00435aa8
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x2d0]
mov eax, dword [ecx + 0x128]
call fcn.0041d944
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [ebp - 0x88], 1
jne 0x4066af
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x1328], 1
jne 0x4066af
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x14b4], 1
jmp 0x4066b9
mov edx, dword [ebp - 0x7c]
mov byte [edx + 0x14b4], 0
mov dl, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2ec]
call fcn.0041626c
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2dc]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov dl, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x308]
call fcn.0041626c
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2f8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2ec]
call fcn.00416218
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2dc]
xor edx, edx
call fcn.00445820
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x308]
call fcn.00416218
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2f8]
xor edx, edx
call fcn.00445820
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x1490], 1
jne 0x40680a
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
fstp dword [eax + 0x1400]
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
fstp dword [eax + 0x1404]
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x1464]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x13fc]
call fcn.0044da28
xor edx, edx
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x13fc]
call fcn.0044d974
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x13fc]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1410]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1478]
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x149c], eax
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x135c], 0
jne 0x4068b2
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x1464]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1468]
call fcn.0044da28
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1468]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x1468]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1448]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1468]
call fcn.0044dcf8
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1448]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x144c]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x406903
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x135c], 1
jl 0x406903
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x135c]
push dword [ebp - 0x88]
mov edx, dword [ebp - 0x7c]
push dword [edx + 0x1464]
mov ecx, dword [ebp - 0x7c]
push dword [ecx + 0x144c]
push dword [ebp - 0x7c]
call fcn.00404144
add esp, 0x14
mov dl, 1
mov eax, dword [0x419314]
call fcn.0041a84c
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x145c], eax
mov eax, dword [ebp - 0x7c]
cmp byte [eax + 0x1440], 0
jne 0x406a49
mov edx, 0x14
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x145c]
call fcn.0041acc0
lea eax, [ebp - 0xb5]
call fcn.00401754
xor edx, edx
call fcn.00407f10
mov dl, byte [eax]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x145c]
call fcn.0041acec
mov word [ebp - 0x68], 0x98
mov edx, 0x47f4cf
lea eax, [ebp - 0x38]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x145c]
call fcn.0041ac48
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0046a168
mov edx, 0xff
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x145c]
call fcn.0041aa20
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x144c]
call fcn.0041fdc4
add eax, 0xc
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x145c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov word [ebp - 0x68], 0xa4
mov edx, 0x47f4d4
lea eax, [ebp - 0x3c]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
push dword [eax]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x144c]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x406a00
adc eax, 0
add eax, 0xffffffec
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x144c]
mov edx, dword [eax]
call dword [edx + 0x2c]
sar eax, 1
jns 0x406a19
adc eax, 0
add eax, 0xffffff6a
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x144c]
call fcn.0041fdc4
pop edx
pop ecx
call fcn.0046a0a8
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0046a168
jmp 0x406b40
mov word [ebp - 0x68], 0xb0
mov edx, 0x47f4e8
lea eax, [ebp - 0x40]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x7c]
add eax, 0x141c
call fcn.0046a250
push eax
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0046a168
pop ecx
test cl, cl
je 0x406b40
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x1420]
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x145c]
call fcn.0041acc0
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1424]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x145c]
call fcn.0041ac48
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1428]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x145c]
call fcn.0041aa20
mov edx, dword [ebp - 0x7c]
mov dl, byte [edx + 0x142c]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x145c]
call fcn.0041acec
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x144c]
call fcn.0041fdc4
add eax, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx]
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x145c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x141c]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x144c]
call fcn.0041fdc4
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x1418]
mov edx, dword [ebp - 0x7c]
mov edx, dword [edx + 0x1414]
call fcn.0046a0a8
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x14a0], 1
mov ecx, dword [ebp - 0x7c]
xor eax, eax
mov dword [ecx + 0x14a4], eax
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x1490], 1
jne 0x406bb9
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1410]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1454]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1410]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1454]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x7c]
cmp byte [edx + 0x14b4], 0
jne 0x406d0f
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x144c]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x2d0]
call fcn.0042ff2c
xor ecx, ecx
xor edx, edx
call fcn.0041b4e8
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x1490], 1
jne 0x406d58
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x5b4], eax
fild dword [ebp - 0x5b4]
mov ecx, dword [ebp - 0x7c]
fadd dword [ecx + 0x1404]
call fcn.004631f0
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x5b8], eax
fild dword [ebp - 0x5b8]
mov ecx, dword [ebp - 0x7c]
fadd dword [ecx + 0x1400]
call fcn.004631f0
push eax
mov edx, dword [ebp - 0x7c]
fld dword [edx + 0x1404]
call fcn.004631f0
push eax
mov edx, dword [ebp - 0x7c]
fld dword [edx + 0x1400]
call fcn.004631f0
push eax
lea edx, [ebp - 0x580]
push edx
call fcn.00401fa4
add esp, 0x14
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x570]
push ecx
call fcn.00401fa4
add esp, 0x14
push eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.0042ff2c
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1454]
call fcn.0041fdc4
pop ecx
pop edx
call fcn.0041b460
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x1410]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x2d0]
call fcn.0042ff2c
push eax
mov edx, dword [ebp - 0x7c]
fld dword [edx + 0x1404]
call fcn.004631f0
push eax
mov edx, dword [ebp - 0x7c]
fld dword [edx + 0x1400]
call fcn.004631f0
mov edx, eax
pop ecx
pop eax
call fcn.0041b4e8
jmp 0x406d58
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x2d0]
push dword [ecx + 0x3c]
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x2d0]
push dword [edx + 0x38]
push 0
push 0
lea ecx, [ebp - 0x590]
push ecx
call fcn.00401fa4
add esp, 0x14
push eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x2d0]
call fcn.0042ff2c
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x144c]
pop edx
call fcn.0041b724
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1458]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x144c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x144c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1458]
mov edx, dword [eax]
call dword [edx + 0x2c]
sub ebx, eax
push ebx
lea ecx, [ebp - 0x5b0]
push ecx
call fcn.00401fa4
add esp, 0x14
push eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1458]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1458]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x5a0]
push ecx
call fcn.00401fa4
add esp, 0x14
push eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x144c]
call fcn.0041fdc4
push eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x1458]
call fcn.0041fdc4
pop ecx
pop edx
call fcn.0041b460
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dword [eax + 0x1300], edx
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x1490], 1
jne 0x406e66
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
fstp dword [eax + 0x1408]
lea edx, [ebp - 0x88]
mov ecx, 4
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x1464]
mov ebx, dword [eax]
call dword [ebx + 4]
fild dword [ebp - 0x88]
mov eax, dword [ebp - 0x7c]
fstp dword [eax + 0x140c]
push 8
lea edx, [ebp - 0xc8]
push edx
call sub.WINMM.DLL_timeGetDevCaps
test eax, eax
jne 0x406fae
push 1
call sub.WINMM.DLL_timeBeginPeriod
cmp eax, 0x61
jne 0x406eba
mov word [ebp - 0x68], 0xbc
mov edx, 0x47f4e9
lea eax, [ebp - 0x44]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0046a168
jmp 0x406fdb
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1480]
mov ecx, 0x28
cdq
idiv ecx
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x14a8], eax
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x14a8], 0
jne 0x406eed
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x14a8], 1
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 0x14a8]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x14ac], edx
push 1
push dword [ebp - 0x7c]
push 0x4014f8
push 1
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x1480]
call sub.WINMM.DLL_timeSetEvent
mov dword [0x4872c0], eax
test eax, eax
jne 0x406f4f
mov word [ebp - 0x68], 0xc8
mov edx, 0x47f4f8
lea eax, [ebp - 0x48]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0046a168
push 1
push dword [ebp - 0x7c]
push 0x401590
push 1
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x1480]
mov edx, dword [ebp - 0x7c]
mov ecx, dword [edx + 0x14a8]
cdq
idiv ecx
push eax
call sub.WINMM.DLL_timeSetEvent
mov dword [0x4872c4], eax
test eax, eax
jne 0x406fdb
mov word [ebp - 0x68], 0xd4
mov edx, 0x47f508
lea eax, [ebp - 0x4c]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0046a168
jmp 0x406fdb
mov word [ebp - 0x68], 0xe0
mov edx, 0x47f518
lea eax, [ebp - 0x50]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x7c]
mov byte [ecx + 0x1441], 1
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dword [eax + 0x13f4], edx
mov ecx, dword [ebp - 0x7c]
cmp byte [ecx + 0x1442], 1
jne 0x407070
lea eax, [ebp - 0xd4]
push eax
push 4
push 0x806
mov edx, dword [ebp - 0x7c]
push dword [edx + 0x1444]
call sub.WINMM.DLL_mciSendCommandA
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x407070
mov word [ebp - 0x68], 0xec
mov edx, 0x47f527
lea eax, [ebp - 0x54]
call fcn.0046a0b0
inc dword [ebp - 0x5c]
mov eax, dword [eax]
call fcn.00431248
dec dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0046a168
push 0
push 2
push 0x804
mov ecx, dword [ebp - 0x7c]
push dword [ecx + 0x1444]
call sub.WINMM.DLL_mciSendCommandA
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0x1442], 0
mov edx, dword [ebp - 0x7c]
mov byte [edx + 0x1305], 0
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x1338], 0
jne 0x4070a5
xor edx, edx
mov eax, dword [ebp - 0x7c]
call fcn.004361f8
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 - 0x7c]
cmp dword [eax + 0x133c], 0
jne 0x4070c1
xor edx, edx
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x300]
call fcn.0041626c
mov edx, dword [0x486eec]
mov eax, dword [edx]
call fcn.0042b730
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.00435a44
mov edx, dword [0x486eec]
mov eax, dword [edx]
call fcn.0042b724
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.00435a64
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x133c], 1
jne 0x40714c
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x1340], 1
jne 0x40714c
mov dl, 1
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x300]
call fcn.00416218
mov edx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [edx]
call fcn.0042a8b0
jmp 0x407173
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x133c], 0
jne 0x407173
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
cmp byte [eax + 0x47], 1
jne 0x407173
mov edx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [edx]
call fcn.0042a6f8
mov edx, dword [sym.Project1.exe__PlayForm]
mov eax, dword [edx + 0x13ec]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sar edx, 1
jns 0x40718d
adc edx, 0
dec edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e8]
call fcn.00444918
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
xor eax, eax
mov dword [ecx + 0x31c], eax
mov edx, dword [sym.Project1.exe__ControlForm]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x2e8]
xor edx, edx
call fcn.004448e8
dec dword [ebp - 0x5c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046a168
mov ecx, dword [ebp - 0x78]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4