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

Disassembly:
push 0xffffffffffffffff
push 0x552afe
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.0x40e22f.82
jmp dword [eax*4 + 0x40e4c0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2e4], eax
mov dword [esi + 0x2d4], ebx
jmp case.0x40e22f.82
cmp dword [esi + 0xc], ebx
je case.0x40e22f.82
cmp dword [esi + 0x2e4], ebx
je 0x40e278
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.0x40e22f.82
cmp dword [esi + 0xc], ebx
je case.0x40e22f.82
mov edx, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], ecx
call dword [edx + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x28], 1
cmp eax, ebx
jne 0x40e31f
cmp dword [0x5cb044], ebx
jne 0x40e31f
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 0x40e2f3
mov ecx, edi
call fcn.00472270
mov dword [edi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x40e2f5
xor edi, edi
mov eax, dword [0x5b4b90]
mov ecx, 0x5d0190
push eax
push 0x406940
mov byte [esp + 0x30], 1
mov dword [0x5cb044], edi
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x28], bl
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0047f970
fld qword [esp + 0x18]
fmul qword [0x575588]
call sub.MSVCRT.dll__ftol
mov ecx, dword [esi + 0x2e0]
cdq
cmp ecx, 5
mov dword [esp + 0x14], edx
jne 0x40e37a
cmp dword [esi + 0x2d4], 1
jne 0x40e37a
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 0x40e39a
mov dword [esi + 0x2d4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2e4], eax
jmp 0x40e498
mov dword [esi + 0x2e0], 0xffffffff
mov dword [esi + 0x2e4], ebx
jmp 0x40e498
cmp dword [esi + 0xc], ebx
je case.0x40e22f.82
mov eax, dword [0x5d2ac0]
mov ecx, 0x5d2ac0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], ecx
call dword [eax + 4]
mov eax, dword [0x5cb048]
mov byte [esp + 0x28], 3
cmp eax, ebx
jne 0x40e447
cmp dword [0x5cb044], ebx
jne 0x40e447
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 0x40e41a
mov ecx, edi
call fcn.00472270
mov dword [edi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x40e41c
xor edi, edi
mov ecx, dword [0x5b4b90]
mov byte [esp + 0x28], 3
push ecx
push 0x406940
mov ecx, 0x5d0190
mov dword [0x5cb044], edi
call fcn.00406500
mov dword [0x5cb048], 1
mov edx, dword [0x5d2ac0]
mov edi, dword [0x5cb044]
mov ecx, 0x5d2ac0
mov byte [esp + 0x28], bl
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0047f970
fld qword [esp + 0x18]
fmul qword [0x575588]
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