Function at 0x478c90
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50df7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x56a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp byte [0x61d252], 0
je 0x478cea
push str._VCR__Skipping_pre_reset_frame_n
call fcn.00403a40
jmp 0x4792b8
push 0x56d034
mov dword [ebp - 0x30], 0x56d034
call fcn.004d9f50
add esp, 4
test eax, eax
jne 0x4792d9
mov eax, dword [0x56d060]
cmp eax, 0x7fffffff
je 0x4792e0
mov dword [ebp - 4], 0
cmp dword [0x27d5308], 0
je 0x478d88
cmp byte [0x61d258], 0
je 0x478d88
mov ecx, dword [0x27d4f10]
sub esp, 0x28
mov eax, esp
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax], ecx
mov ecx, 0xf
mov dword [eax + 4], 0
mov dword [eax + 0x24], 0x56d4cc
call fcn.004a6740
add esp, 0x28
mov eax, dword [0x27d5308]
cmp eax, 5
je 0x478db0
cmp eax, 6
je 0x478db0
cmp eax, 7
je 0x478db0
push esi
push edi
call dword [0x56ce1c]
add esp, 8
mov edx, edi
mov ecx, esi
call fcn.004a6380
cmp dword [0x27d5308], 0
je 0x4792ae
cmp dword [0x27d5308], 1
jne 0x478e7f
cmp byte [0x61d258], 0
je 0x478f1e
sub esp, 0x28
mov dword [0x56ceb8], 0
mov ecx, esp
mov dword [0x56ceb4], 0
mov dword [0x27d5308], 4
vpxor xmm0, xmm0, xmm0
mov byte [0x61d258], 0
vmovdqu ymmword [ecx], ymm0
vmovq qword [ecx + 0x20], xmm0
mov eax, dword [0x27d5308]
mov dword [ecx], eax
mov dword [ecx + 0x24], 0x56d4b4
mov ecx, 8
vzeroupper
call fcn.004a6740
mov ecx, dword [0x27d4f10]
mov eax, esp
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax], ecx
mov ecx, 0xf
mov dword [eax + 4], 0
mov dword [eax + 0x24], 0x56d4cc
call fcn.004a6740
add esp, 0x28
cmp dword [0x27d5308], 2
jne 0x478eae
cmp dword [0x10bdfcc], 0
jne 0x478eae
push str._VCR__Starting_recording_from_Snapshot..._n
call fcn.00403a40
mov dword [0x27d5308], 4
add esp, 4
mov dword [esi], 0
cmp dword [0x27d5308], 3
jne 0x478edd
cmp dword [0x10bdfcc], 0
jne 0x478edd
push str._VCR__Starting_recording_from_Existing_Snapshot..._n
call fcn.00403a40
mov dword [0x27d5308], 4
add esp, 4
mov dword [esi], 0
cmp dword [0x27d5308], 6
jne 0x478fa3
cmp dword [0x10bdfcc], 0
jne 0x478fa3
cmp byte [0x56ac0d], 0
jne 0x478f8c
push esi
push edi
mov dword [0x27d5308], 0
call dword [0x56ce1c]
add esp, 8
jmp 0x4792ae
mov al, byte [0x27d4f1c]
shr al, 2
not al
and al, 1
push 1
mov byte [ebp - 0x19], al
call fcn.004d7c03
mov cl, byte [ebp - 0x19]
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [eax], cl
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x47bb00
push 0
push 0
call fcn.004e4926
add esp, 0x18
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4792f2
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0041f360
mov byte [ebp - 4], 0
cmp dword [ebp - 0x28], 0
jne 0x4792ed
jmp 0x478e7f
push str._VCR__Starting_playback..._n
call fcn.00403a40
add esp, 4
mov dword [0x27d5308], 7
cmp dword [0x27d5308], 5
jne 0x479065
cmp byte [0x61d258], 0
je 0x47909c
sub esp, 0x28
mov dword [0x56ceb8], 0
mov ecx, esp
mov dword [0x56ceb4], 0
mov dword [0x27d5308], 7
vpxor xmm0, xmm0, xmm0
mov byte [0x61d258], 0
vmovdqu ymmword [ecx], ymm0
vmovq qword [ecx + 0x20], xmm0
mov eax, dword [0x27d5308]
mov dword [ecx], eax
mov dword [ecx + 0x24], 0x56d4b4
mov ecx, 8
vzeroupper
call fcn.004a6740
mov ecx, dword [0x27d4f10]
mov eax, esp
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax], ecx
mov ecx, 0xf
mov dword [eax + 4], 0
mov dword [eax + 0x24], 0x56d4cc
call fcn.004a6740
add esp, 0x28
cmp dword [0x27d5308], 4
jne 0x47918c
cmp byte [0x61d259], 0
je 0x479081
mov dword [esi], 0xc000
mov ecx, dword [0x2a97864]
cmp ecx, dword [0x2a97868]
je 0x479103
mov eax, dword [esi]
mov dword [ecx], eax
add dword [0x2a97864], 4
jmp 0x47910a
mov al, byte [0x27d4f1c]
shr al, 2
not al
and al, 1
push 1
mov byte [ebp - 0x19], al
call fcn.004d7c03
mov cl, byte [ebp - 0x19]
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [eax], cl
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
push ecx
push 0
push eax
push 0x47bb00
push 0
push 0
call fcn.004e4926
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x479305
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0041f360
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jne 0x479300
jmp 0x479065
push esi
push ecx
call fcn.0047b8e0
mov eax, dword [0x27d4f18]
inc dword [0x56ceb8]
inc eax
push eax
push str._VCR__Recording_frame__d_n
mov dword [0x27d4f18], eax
call fcn.00403a40
add esp, 8
cmp byte [0x61d259], 0
je 0x4792ae
push 1
mov byte [0x61d259], 0
call fcn.004d7c03
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
push ecx
push 0
push eax
push 0x47bb60
push 0
push 0
call fcn.004e4926
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x479305
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0041f360
cmp dword [ebp - 0x20], 0
jne 0x479313
jmp 0x4792ae
cmp dword [0x27d5308], 7
jne 0x4792ae
mov ecx, dword [0x56ceb8]
cmp ecx, dword [0x27d4f18]
jl 0x4791ed
call fcn.0047b1b0
cmp dword [0x27d6d80], 0
je 0x4791d4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], ecx
push 0x56d064
call fcn.00404a50
call fcn.0047a930
add esp, 0x18
jmp 0x4792ae
push 0
push edi
call dword [0x56ce60]
push esi
push edi
call dword [0x56ce1c]
add esp, 0x10
jmp 0x4792ae
cmp byte [0x27d5304], 0
je 0x479210
mov eax, dword [0x27d5300]
dec eax
cmp ecx, eax
jb 0x479210
call fcn.00461500
call fcn.0047b130
mov ecx, dword [0x56ceb8]
mov eax, 1
shlx eax, eax, edi
test dword [0x27d4f20], eax
jne 0x47922d
mov dword [esi], 0
jmp 0x4792ae
mov eax, dword [0x2a97860]
add ecx, edi
mov eax, dword [eax + ecx*4]
push eax
push edi
mov dword [esi], eax
call dword [0x56ce60]
add esp, 8
cmp dword [esi], 0xc000
jne 0x47929f
push str._VCR__Resetting_during_playback..._n
call fcn.00403a40
add esp, 4
push 1
call fcn.004d7c03
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
push ecx
push 0
push eax
push 0x47bb60
push 0
push 0
call fcn.004e4926
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x479305
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0041f360
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jne 0x479318
mov edx, edi
mov ecx, esi
call fcn.004a6380
inc dword [0x56ceb8]
push 0x56d034
call fcn.004d9f82
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d7bf5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 5
call fcn.004d9ded
dec eax
push 6
mov dword [0x56d060], eax
call fcn.004d9ded
call fcn.004e49b7
push 6
mov dword [ebp - 0x28], 0
call fcn.004d9ded
call fcn.004e49b7
push 6
mov dword [ebp - 0x20], 0
call fcn.004d9ded
call fcn.004e49b7
call fcn.004e49b7
int3