Function at 0x4c93c0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x40
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
je 0x4c93d6
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov esi, dword [esp + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x40]
push eax
push ebp
push esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call ebx
push 2
lea ecx, [esp + 0x30]
push ecx
push ebp
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call ebx
push ebp
lea edx, [esp + 0x40]
push edx
push ebp
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call ebx
push ebp
lea eax, [esp + 0x3c]
push eax
push esi
call sym.vidcap60.exe__riff64_ReadFileID_12
cmp eax, ebp
jl 0x4c96aa
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x78]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x7c]
mov dword [edx + 8], eax
push esi
mov dword [edx + 0xc], ecx
call sym.vidcap60.exe__riff64_FindChunkHeader_28
cmp eax, ebp
jl 0x4c96aa
mov eax, dword [esp + 0x18]
and eax, 7
jbe 0x4c949b
mov ecx, dword [esp + 0x18]
mov edx, 8
sub edx, eax
mov eax, dword [esp + 0x1c]
add ecx, edx
adc eax, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
push 1
lea eax, [esp + 0x60]
push eax
push ebp
push esi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call ebx
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, 0x18
sbb edi, ebp
add ecx, 0x18
adc edx, 0
mov ebp, eax
add eax, ecx
mov dword [esp + 0x18], ecx
mov ecx, edi
adc ecx, edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
sub edx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
sbb eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
js 0x4c9671
jg 0x4c9501
test edx, edx
jbe 0x4c9671
test eax, eax
jg 0x4c9519
jl 0x4c950f
cmp edx, 0x1000
jae 0x4c9519
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jmp 0x4c9529
mov dword [esp + 0x28], 0x1000
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x28]
push ecx
push 1
call dword [0x5d24c0]
add esp, 8
test eax, eax
mov dword [esp + 0x58], eax
jne 0x4c9550
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
push esi
call sym.vidcap60.exe__riff64_RestoreLocation_12
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
jg 0x4c9580
jl 0x4c9576
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x28]
jae 0x4c9580
mov eax, dword [esp + 0x20]
mov dword [esp + 0x54], eax
jmp 0x4c9588
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x10], edx
jne 0x4c96b4
push 1
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call ebx
mov dword [esp + 0x44], edi
xor edi, edi
push edi
lea edx, [esp + 0x48]
push edx
push ebp
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], ebp
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push edi
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x4c96c3
push 1
lea ecx, [esp + 0x40]
push ecx
push edi
push esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call ebx
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x50]
mov ebp, eax
mov eax, dword [esp + 0x34]
push ecx
push eax
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call ebx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
sbb eax, 0
test eax, eax
mov dword [esp + 0x24], eax
jg 0x4c9560
jl 0x4c9663
mov eax, dword [esp + 0x20]
test eax, eax
ja 0x4c9560
mov eax, dword [esp + 0x58]
push eax
call dword [0x5d25a4]
add esp, 4
push edi
push ebp
push esi
call sym.vidcap60.exe__riff64_RestoreLocation_12
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, edi
neg ecx
mov edx, ebx
adc edx, 0
neg edx
push edx
push ecx
push esi
call sym.vidcap60.exe__riff64_UpdateRIFFSize_12
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4c96a8
mov dword [eax], edi
mov dword [eax + 4], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18
mov eax, 0x8004e008
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18
pop edi
pop esi
pop ebp
mov eax, 0x8004e009
pop ebx
add esp, 0x40
ret 0x18