Function at 0x4565b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x20]
push eax
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.vidcap60.exe__riff64_SaveLocation_8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x5d9c0c]
lea edx, [esp + 0x68]
push edx
mov edx, dword [0x5d9c10]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x5d9c14]
mov dword [eax + 4], edx
mov edx, dword [0x5d9c18]
mov dword [eax + 8], ecx
push ebx
mov dword [eax + 0xc], edx
call sym.vidcap60.exe__riff64_FindChunkHeader_28
test eax, eax
jl 0x4567f3
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call sym.vidcap60.exe__riff64_SaveLocation_8
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push 1
push 1
mov ecx, ebp
call fcn.0044b000
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push edi
push edx
push ebp
call fcn.00466af0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, ebp
mov esi, eax
call fcn.0044b000
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebx
call sym.vidcap60.exe__riff64_RestoreLocation_12
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push edx
push eax
push ebx
call sym.vidcap60.exe__riff64_SkipChunk_12
test esi, esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
jl 0x4567f1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ebx
call sym.vidcap60.exe__riff64_RestoreLocation_12
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov eax, dword [edx + ecx*4 - 4]
cmp dword [eax], 4
mov dword [esp + 0x58], eax
jne 0x4567f1
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4567f1
jg 0x4566e4
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4567f1
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
call sym.vidcap60.exe__riff64_ReadChunkHeader_12
mov esi, eax
test esi, esi
jl 0x4567f1
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esi, 0xffffffe8
adc edx, 0xffffffff
mov dword [esp + 0x14], edx
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x18], esi
call sym.vidcap60.exe__riff64_SaveLocation_8
mov ecx, 4
lea edi, [esp + 0x30]
mov esi, 0x5d9c1c
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x45678e
push eax
lea ecx, [esp + 0x58]
push ecx
push 0x10
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4567ec
cmp dword [esp + 0x54], 0x10
jb 0x4567ec
mov ecx, 4
lea edi, [esp + 0x40]
mov esi, 0x5d9bec
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x45678e
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub ecx, 0x10
sbb edx, eax
mov eax, dword [esp + 0x58]
push edx
push ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
push ebp
push ebx
call fcn.004562f0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
push ebx
call sym.vidcap60.exe__riff64_RestoreLocation_12
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
push edx
push ebx
call sym.vidcap60.exe__riff64_SkipChunk_12
mov edi, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x14]
sbb eax, edx
xor esi, esi
test eax, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jg 0x4566e4
jl 0x4567f1
mov eax, edi
test eax, eax
ja 0x4566e4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18
mov esi, 0x8004e008
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18