Function at 0x40e3b0
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x567f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x54]
lea edi, [esi + 0x54]
mov ecx, edi
mov dword [esp + 0xc], edi
call dword [eax + 4]
mov eax, dword [esp + 0x30]
xor ebx, ebx
cmp eax, 5
mov dword [esp + 0x28], ebx
ja case.0x40e3ef.82
jmp dword [eax*4 + 0x40e680]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x2e4], eax
mov dword [esi + 0x2d4], ebx
jmp case.0x40e3ef.82
cmp dword [esi + 0xc], ebx
je case.0x40e3ef.82
cmp dword [esi + 0x2e4], ebx
je 0x40e438
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [esi + 0x2e4]
mov ecx, dword [esi]
sub eax, edx
push eax
push str.firstbuf
push esi
call dword [ecx + 0x34]
mov dword [esi + 0x2d4], 1
jmp case.0x40e3ef.82
cmp dword [esi + 0xc], ebx
je case.0x40e3ef.82
mov edx, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], ecx
call dword [edx + 4]
mov eax, dword [0x5e5cb8]
mov byte [esp + 0x28], 1
cmp eax, ebx
jne 0x40e4df
cmp dword [0x5e5cb4], ebx
jne 0x40e4df
push 0x380
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x28], 2
je 0x40e4b3
mov ecx, edi
call fcn.00478dc0
mov dword [edi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x40e4b5
xor edi, edi
mov eax, dword [0x5cebb0]
mov ecx, 0x5eafa0
push eax
push 0x406a50
mov byte [esp + 0x30], 1
mov dword [0x5e5cb4], edi
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov edi, dword [0x5e5cb4]
mov ecx, 0x5ed920
mov byte [esp + 0x28], bl
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.004865a0
fld qword [esp + 0x18]
fmul qword [0x58c5e8]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x2e0]
cdq
cmp ecx, 5
mov dword [esp + 0x14], edx
jne 0x40e53a
cmp dword [esi + 0x2d4], 1
jne 0x40e53a
mov ecx, dword [esi + 0xc]
push eax
push str.resume
push ecx
mov edx, dword [ecx]
call dword [edx + 0x70]
cmp dword [esi + 0x2d4], 1
je 0x40e55a
mov dword [esi + 0x2d4], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x2e4], eax
jmp 0x40e658
mov dword [esi + 0x2e0], 0xffffffff
mov dword [esi + 0x2e4], ebx
jmp 0x40e658
cmp dword [esi + 0xc], ebx
je case.0x40e3ef.82
mov eax, dword [0x5ed920]
mov ecx, 0x5ed920
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], ecx
call dword [eax + 4]
mov eax, dword [0x5e5cb8]
mov byte [esp + 0x28], 3
cmp eax, ebx
jne 0x40e607
cmp dword [0x5e5cb4], ebx
jne 0x40e607
push 0x380
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x28], 4
je 0x40e5da
mov ecx, edi
call fcn.00478dc0
mov dword [edi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x40e5dc
xor edi, edi
mov ecx, dword [0x5cebb0]
mov byte [esp + 0x28], 3
push ecx
push 0x406a50
mov ecx, 0x5eafa0
mov dword [0x5e5cb4], edi
call fcn.00406600
mov dword [0x5e5cb8], 1
mov edx, dword [0x5ed920]
mov edi, dword [0x5e5cb4]
mov ecx, 0x5ed920
mov byte [esp + 0x28], bl
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.004865a0
fld qword [esp + 0x18]
fmul qword [0x58c5e8]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0xc]
cdq
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
push eax
push str.pause
push ecx
call dword [edx + 0x70]
mov dword [esi + 0x2e0], 5
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x28], 0xffffffff
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4