Function at 0x421cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f35cc
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x533840]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
call fcn.0041f300
test al, al
je 0x421d04
cmp dword [0x599c28], 2
je 0x421d12
push ebx
push str.VCR_Playback___s__:_not_playing_back_a_VCR_file
call fcn.0041d270
add esp, 8
lea ecx, [ebp - 0x216]
call fcn.0041ecb0
mov ecx, 0x14
mov dword [ebp - 4], 0
call fcn.0041eec0
cmp dword [0x599c74], 0
jne 0x421d56
xor esi, esi
mov byte [ebp - 0x215], 0
push esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004c62a0
add esp, 0xc
jmp 0x421e2e
push dword [0x599c74]
lea eax, [ebp - 0x215]
push 1
push 1
push eax
call fcn.004ca508
mov eax, dword [0x599c6c]
add esp, 0x10
mov ecx, dword [0x599c68]
inc eax
mov dword [0x599c6c], eax
cmp eax, ecx
jle 0x421da3
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.0041eda0
mov eax, dword [0x599c6c]
add esp, 8
mov ecx, dword [0x599c68]
cmp eax, ecx
jl 0x421dab
call dword [0x537fa4]
mov al, byte [ebp - 0x215]
cmp al, 0xff
je 0x421e7b
cmp dword [0x599c74], 0
movzx esi, al
jne 0x421dd9
push esi
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c62a0
add esp, 0xc
jmp 0x421e2e
push dword [0x599c74]
lea eax, [ebp - 0x210]
push esi
push 1
push eax
call fcn.004ca508
mov eax, dword [0x599c6c]
add esp, 0x10
mov ecx, dword [0x599c68]
add eax, esi
mov dword [0x599c6c], eax
cmp eax, ecx
jle 0x421e26
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.0041eda0
mov eax, dword [0x599c6c]
add esp, 8
mov ecx, dword [0x599c68]
cmp eax, ecx
jl 0x421e2e
call dword [0x537fa4]
lea ecx, [ebp - 0x210]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x421e56
test dl, dl
je 0x421e52
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x421e56
add eax, 2
add ecx, 2
test dl, dl
jne 0x421e36
xor eax, eax
jmp 0x421e5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x421e7b
lea eax, [ebp - 0x210]
push eax
push ebx
push str.VCR_GenericPlayback___s_____event_name_does_not_match__s
call fcn.0041eda0
add esp, 0xc
xor esi, esi
jmp 0x42217d
cmp dword [0x599c74], 0
jne 0x421e90
mov dword [ebp - 0x214], 0
jmp 0x421ee7
push dword [0x599c74]
lea eax, [ebp - 0x214]
push 4
push 1
push eax
call fcn.004ca508
mov eax, dword [0x599c6c]
add esp, 0x10
mov ecx, dword [0x599c68]
add eax, 4
mov dword [0x599c6c], eax
cmp eax, ecx
jle 0x421edf
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.0041eda0
mov eax, dword [0x599c6c]
add esp, 8
mov ecx, dword [0x599c68]
cmp eax, ecx
jl 0x421ee7
call dword [0x537fa4]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x214], eax
jle 0x421f08
push eax
push ebx
push str.VCR_GenericPlayback___s_____generic_data_too_long__greater_than_maxLen:__d_
call fcn.0041eda0
add esp, 0xc
xor esi, esi
jmp 0x42217d
mov cl, byte [ebp + 0xc]
test cl, cl
je 0x421f30
mov edx, dword [ebp - 0x214]
cmp edx, eax
je 0x421f30
push eax
push edx
push ebx
push str.VCR_GenericPlayback___s_____data_size_in_file___d__different_than_desired___d_
call fcn.0041eda0
add esp, 0x10
xor esi, esi
jmp 0x42217d
cmp byte [ebp + 0x10], 0
je 0x422106
test cl, cl
jne 0x421f4b
push str.bForceSameContents_and__bForceSameLen_not_allowed.
call fcn.0041d270
add esp, 4
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x59be50]
cmp eax, dword [esi + 4]
jle 0x421f9b
push 0x59be50
call fcn.004c48ee
add esp, 4
cmp dword [0x59be50], 0xffffffff
jne 0x421f9b
mov byte [ebp - 4], 1
push dword [ebp - 0x214]
call fcn.004c43b5
push 0x59be50
mov dword [0x59be54], eax
mov byte [ebp - 4], 0
call fcn.004c489d
add esp, 8
mov eax, dword [0x59be58]
cmp eax, dword [esi + 4]
jle 0x421fd6
push 0x59be58
call fcn.004c48ee
add esp, 4
cmp dword [0x59be58], 0xffffffff
jne 0x421fd6
mov eax, dword [ebp - 0x214]
push 0x59be58
mov dword [0x59be5c], eax
call fcn.004c489d
add esp, 4
mov eax, dword [0x59be5c]
cmp eax, dword [ebp - 0x214]
jge 0x422011
push dword [0x59be54]
call fcn.004c43be
push dword [ebp - 0x214]
call fcn.004c43b5
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x214]
mov dword [0x59be54], esi
mov dword [0x59be5c], eax
jmp 0x422017
mov esi, dword [0x59be54]
cmp dword [0x599c74], 0
mov ebx, dword [ebp - 0x214]
jne 0x422034
push ebx
push 0
push esi
call fcn.004c62a0
add esp, 0xc
jmp 0x42208e
push dword [0x599c74]
push dword [ebp - 0x214]
push 1
push esi
call fcn.004ca508
mov eax, dword [0x599c6c]
add esp, 0x10
mov ecx, dword [0x599c68]
add eax, ebx
mov dword [0x599c6c], eax
cmp eax, ecx
jle 0x422080
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.0041eda0
mov eax, dword [0x599c6c]
add esp, 8
mov ecx, dword [0x599c68]
cmp eax, ecx
jl 0x422088
call dword [0x537fa4]
mov esi, dword [0x59be54]
mov ecx, dword [ebp - 0x214]
sub ecx, 4
jb 0x4220b1
nop dword [eax]
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x4220ba
add esi, 4
add edi, 4
sub ecx, 4
jae 0x4220a0
cmp ecx, 0xfffffffc
je 0x422177
mov al, byte [esi]
cmp al, byte [edi]
jne 0x4220f7
cmp ecx, 0xfffffffd
je 0x422177
mov al, byte [esi + 1]
cmp al, byte [edi + 1]
jne 0x4220f7
cmp ecx, 0xfffffffe
je 0x422177
mov al, byte [esi + 2]
cmp al, byte [edi + 2]
jne 0x4220f7
cmp ecx, 0xffffffff
je 0x422177
mov al, byte [esi + 3]
cmp al, byte [edi + 3]
je 0x422177
push str.VCR_GenericPlayback:_data_doesnt_match_on_playback.
call fcn.0041eda0
add esp, 4
jmp 0x422177
cmp dword [0x599c74], 0
mov esi, dword [ebp - 0x214]
jne 0x422123
push esi
push 0
push edi
call fcn.004c62a0
add esp, 0xc
jmp 0x422177
push dword [0x599c74]
push dword [ebp - 0x214]
push 1
push edi
call fcn.004ca508
mov eax, dword [0x599c6c]
add esp, 0x10
mov ecx, dword [0x599c68]
add eax, esi
mov dword [0x599c6c], eax
cmp eax, ecx
jle 0x42216f
push str.g_CurFilePos___g_FileLen
push str._VCR_ASSERT_FAILED:__s__n
call fcn.0041eda0
mov eax, dword [0x599c6c]
add esp, 8
mov ecx, dword [0x599c68]
cmp eax, ecx
jl 0x422177
call dword [0x537fa4]
mov esi, dword [ebp - 0x214]
mov dword [ebp - 4], 2
mov eax, dword [0x599c28]
cmp eax, 1
jne 0x42219b
push 0x599c2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4221ae
cmp eax, 2
jne 0x4221ae
cmp byte [ebp - 0x216], 0
jne 0x4221ae
call fcn.0041ee00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c43a7
mov esp, ebp
pop ebp
ret