Function at 0x474420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, str._play
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474455
mov edi, dword [ebp + 8]
sub eax, edx
push eax
mov eax, dword [edi + 0x14]
push str._play
push eax
push 0
mov ecx, edi
call fcn.00416610
test eax, eax
jne 0x4744a2
mov byte [esi + 0x549], 1
mov byte [esi + 0x548], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.004c478a
mov esp, ebp
pop ebp
ret 8
mov eax, str._recnum
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4744b0
mov ecx, dword [edi + 0x14]
sub eax, edx
push eax
push str._recnum
push ecx
push 0
mov ecx, edi
call fcn.00416610
test eax, eax
jne 0x47454f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
jb 0x4744e4
mov eax, dword [eax + 4]
jmp 0x4744e7
add eax, 4
push eax
call fcn.004c38f5
add esp, 4
test eax, eax
jg 0x4744f9
mov eax, 5
push 1
push eax
call fcn.00474280
inc eax
push eax
lea edx, [ebp - 0x2c]
push str.popcap_d.dmo
push edx
call fcn.004283b0
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x54c]
mov dword [ebp - 4], 0
call fcn.004024d0
cmp dword [ebp - 0x14], edi
jb 0x47453c
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c2b1b
add esp, 4
mov byte [esi + 0x548], 1
mov byte [esi + 0x549], 0
jmp 0x474485
mov eax, str._playnum
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474557
mov ecx, dword [edi + 0x14]
sub eax, edx
push eax
push str._playnum
push ecx
push 0
mov ecx, edi
call fcn.00416610
test eax, eax
jne 0x4745f0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x474585
mov eax, dword [eax + 4]
jmp 0x474588
add eax, 4
push eax
call fcn.004c38f5
mov edi, eax
add esp, 4
dec edi
jns 0x474598
xor edi, edi
push 0
push edi
call fcn.00474280
sub eax, edi
push eax
lea edx, [ebp - 0x2c]
push str.popcap_d.dmo
push edx
call fcn.004283b0
add esp, 0x14
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x54c]
mov dword [ebp - 4], 1
call fcn.004024d0
cmp dword [ebp - 0x14], 0x10
jb 0x4745dd
mov eax, dword [ebp - 0x28]
push eax
call fcn.004c2b1b
add esp, 4
mov byte [esi + 0x548], 0
mov byte [esi + 0x549], 1
jmp 0x474485
push str._record
push edi
call fcn.00420310
add esp, 8
test al, al
jne 0x47453c
push str._demofile
push edi
call fcn.00420310
add esp, 8
test al, al
je 0x47462c
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esi + 0x54c]
call fcn.004028cb
jmp 0x474485
push str._version
push edi
call fcn.00420310
add esp, 8
test al, al
je 0x4747c0
mov edx, dword [esi + 0x9c]
push edx
lea eax, [ebp - 0x128]
push 0x4e35f8
push eax
call fcn.004283b0
mov edi, eax
lea ecx, [esi + 8]
push ecx
lea edx, [ebp - 0xf0]
push str.Product:
push edx
mov dword [ebp - 4], 2
call fcn.00411879
push 0x4e5e74
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 3
call fcn.0040a10e
push str.Version:
push eax
lea ecx, [ebp - 0x80]
push ecx
mov byte [ebp - 4], 4
call fcn.0040a10e
lea edx, [esi + 0x3c0]
push edx
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 5
call fcn.00410392
push 0x4e5e74
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 6
call fcn.0040a10e
add esp, 0x48
push str.Build_Num:
push eax
lea edx, [ebp - 0x10c]
push edx
mov byte [ebp - 4], 7
call fcn.0040a10e
push edi
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 8
call fcn.00410392
push 0x4e5e74
push eax
lea ecx, [ebp - 0x144]
push ecx
mov byte [ebp - 4], 9
call fcn.0040a10e
push str.Build_Date:
push eax
lea edx, [ebp - 0xd4]
push edx
mov byte [ebp - 4], 0xa
call fcn.0040a10e
add esi, 0xa0
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00410392
add esp, 0x3c
lea ecx, [ebp - 0xd4]
call fcn.0040207a
lea ecx, [ebp - 0x144]
call fcn.0040207a
lea ecx, [ebp - 0x9c]
call fcn.0040207a
lea ecx, [ebp - 0x10c]
call fcn.0040207a
lea ecx, [ebp - 0x48]
call fcn.0040207a
lea ecx, [ebp - 0x64]
call fcn.0040207a
lea ecx, [ebp - 0x80]
call fcn.0040207a
lea ecx, [ebp - 0xb8]
call fcn.0040207a
lea ecx, [ebp - 0xf0]
call fcn.0040207a
lea ecx, [ebp - 0x128]
call fcn.0040207a
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4747a9
lea eax, [ebp - 0x28]
push 0x40
push str.Version_Info
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004c6589
push str._crash
push edi
call fcn.00420310
add esp, 8
test al, al
je 0x4747de
mov byte [0], 0x21
jmp 0x474485
push edi
lea ecx, [ebp - 0x160]
push str.Invalid_Command_Line_Param:
push ecx
call fcn.00411879
add esp, 0xc
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xc
call dword [edx + 0x5c]
lea ecx, [ebp - 0x160]
call fcn.0040207a
push 0
call fcn.004c6589
int3