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

Disassembly:
sub esp, 0xe8
push ebx
push ebp
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
jne 0x563f6b
pop ebp
xor eax, eax
pop ebx
add esp, 0xe8
ret
push 2
lea eax, [esp + 0x24]
push eax
push ebp
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebx]
push ebp
push ebp
xor ecx, ecx
push ecx
xor eax, eax
push eax
push ebx
call dword [edx + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x1c]
push ecx
push 0x1c
lea edx, [esp + 0xdc]
push edx
push ebx
call dword [eax + 0xc]
cmp eax, ebp
jl 0x5643be
lea ecx, [esp + 0x1c]
test ecx, ecx
mov ecx, dword [esp + 0xdc]
jne 0x563fc0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
je 0x5643be
push ebp
push ebx
call fcn.00562d50
cmp eax, ebp
jl 0x5643be
mov edx, dword [ebx]
lea eax, [esp + 0x30]
push eax
push 0x24
lea ecx, [esp + 0xb8]
push ecx
push ebx
call dword [edx + 0xc]
test eax, eax
jl 0x56441a
cmp dword [esp + 0x30], 0x24
jne 0x56441a
mov dl, byte [esp + 0xbc]
mov al, 0x7f
mov byte [esp + 0x37], al
mov byte [esp + 0x39], al
mov eax, dword [esp + 0xcc]
cmp eax, ebp
push edi
mov byte [esp + 0x38], dl
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0
mov byte [esp + 0x3c], 0
mov word [esp + 0x3e], bp
mov word [esp + 0x40], bp
mov word [esp + 0x42], bp
mov word [esp + 0x44], bp
mov word [esp + 0x46], bp
mov word [esp + 0x48], bp
mov word [esp + 0x4a], bp
mov dword [esp + 0x10], eax
jbe 0x5640f4
lea ebx, [ebx]
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push ecx
mov edi, ebp
shl edi, 5
push 0x20
lea edx, [esp + edi + 0x5c]
push edx
push ebx
call dword [eax + 0xc]
test eax, eax
jl 0x564220
cmp dword [esp + 0x34], 0x20
jne 0x564220
mov eax, dword [esp + edi + 0x60]
test eax, eax
jg 0x5640f2
jl 0x56409b
cmp dword [esp + edi + 0x5c], 0xffffffff
ja 0x5640f2
mov eax, dword [esp + edi + 0x68]
test eax, eax
jg 0x5640f2
jl 0x5640ac
cmp dword [esp + edi + 0x64], 0xffffffff
ja 0x5640f2
mov eax, ebp
xor ecx, ecx
sub eax, ecx
je 0x5640cf
dec eax
jne 0x5640e5
mov eax, dword [esp + 0x78]
inc eax
mov word [esp + 0x46], ax
mov word [esp + 0x48], cx
mov word [esp + 0x4a], 1
jmp 0x5640e5
mov edx, dword [esp + 0x58]
inc edx
mov word [esp + 0x40], dx
mov word [esp + 0x42], cx
mov word [esp + 0x44], 1
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jb 0x564060
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov eax, 2
cmp ecx, eax
jb 0x564105
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x42]
push eax
call sym.vidcap60.exe__iff_ByteSwap16_8
push 3
lea ecx, [esp + 0x44]
push ecx
call sym.vidcap60.exe__iff_ByteSwap16_8
push 3
lea edx, [esp + 0x4a]
push edx
call sym.vidcap60.exe__iff_ByteSwap16_8
lea eax, [esp + 0x28]
push eax
mov edi, 0x14
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0x494e5354
call sym.vidcap60.exe__iff_WriteChunk_8
cmp eax, ebp
jl 0x5643bd
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
push esi
call ebx
test eax, eax
je 0x5643c7
cmp dword [esp + 0xc], edi
jne 0x5643c7
mov eax, dword [esp + 0x10]
add eax, eax
cmp ax, bp
je 0x5643d6
mov edx, dword [0x61271c]
mov ecx, dword [str.beg_loop]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx edi, ax
mov eax, edi
imul eax, eax, 7
add eax, 2
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
call ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
push eax
call ebp
mov ecx, dword [esp + 0x30]
lea edx, [eax + ecx + 2]
mov eax, dword [esp + 0x2c]
shr edi, 1
imul edx, edi
add eax, edx
mov dword [esp + 0x2c], eax
add eax, 0x24
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], 0x4d41524b
call sym.vidcap60.exe__iff_WriteChunk_8
test eax, eax
jl 0x5643bd
mov eax, dword [esp + 0x10]
add eax, eax
push eax
push esi
call sym.vidcap60.exe__iff_WriteWORD_8
test eax, eax
mov dword [esp + 0x50], eax
jl 0x5643bd
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], eax
jbe 0x564359
lea edi, [esp + 0x5c]
jmp 0x564233
pop edi
pop ebp
mov eax, 0x8004e008
pop ebx
add esp, 0xe8
ret
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi + 4]
test ecx, ecx
jg 0x564359
jl 0x564249
cmp dword [edi], 0xffffffff
ja 0x564359
mov ecx, dword [edi + 0xc]
test ecx, ecx
jg 0x564359
jl 0x564260
cmp dword [edi + 8], 0xffffffff
ja 0x564359
mov edx, dword [str.beg_loop]
mov ecx, dword [edi]
mov word [esp + 0x14], ax
inc eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x1a], ecx
call ebp
mov byte [esp + 0x1a], al
push 1
lea eax, [esp + 0x18]
push eax
call sym.vidcap60.exe__iff_ByteSwap16_8
push 1
lea ecx, [esp + 0x1a]
push ecx
call sym.vidcap60.exe__iff_ByteSwap32_8
push 0
lea edx, [esp + 0x10]
push edx
push 7
lea eax, [esp + 0x20]
push eax
push esi
call ebx
cmp dword [esp + 0xc], 7
jne 0x5643c7
mov edx, dword [str.beg_loop]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
inc eax
push eax
mov eax, dword [str.beg_loop]
push eax
push esi
call ebx
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi]
add ecx, edx
mov edx, dword [0x61271c]
mov word [esp + 0x14], ax
inc eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x1a], ecx
call ebp
mov byte [esp + 0x1a], al
push 1
lea eax, [esp + 0x18]
push eax
call sym.vidcap60.exe__iff_ByteSwap16_8
push 1
lea ecx, [esp + 0x1a]
push ecx
call sym.vidcap60.exe__iff_ByteSwap32_8
push 0
lea edx, [esp + 0x10]
push edx
push 7
lea eax, [esp + 0x20]
push eax
push esi
call ebx
cmp dword [esp + 0xc], 7
jne 0x5643c7
mov edx, dword [0x61271c]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
call ebp
inc eax
push eax
mov eax, dword [0x61271c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
inc eax
add edi, 0x20
cmp eax, ecx
mov dword [esp + 0x30], eax
jb 0x56422f
xor ebp, ebp
push ebp
push ebp
push 4
push esi
call fcn.0044b590
push ebp
lea edx, [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
lea ecx, [esp + 0x20]
push ecx
call sym.vidcap60.exe__iff_ByteSwap32_8
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 1
lea eax, [esp + 0x20]
add edi, edx
push eax
mov dword [esp + 0x24], edi
call sym.vidcap60.exe__iff_ByteSwap32_8
push ebp
push ebp
push 4
push esi
call fcn.0044b590
push ebp
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push esi
call ebx
mov eax, dword [esp + 0x50]
pop edi
pop ebp
pop ebx
add esp, 0xe8
ret
pop edi
pop ebp
mov eax, 0x8004e009
pop ebx
add esp, 0xe8
ret
lea ecx, [esp + 0x28]
push ecx
push esi
mov dword [esp + 0x34], 2
mov dword [esp + 0x30], 0x4d41524b
mov dword [esp + 0x28], 0x26
call sym.vidcap60.exe__iff_WriteChunk_8
cmp eax, ebp
jl 0x5643bd
push ebp
push esi
call sym.vidcap60.exe__iff_WriteWORD_8
cmp eax, ebp
mov dword [esp + 0x50], eax
jge 0x56435b
pop edi
pop ebp
pop ebx
add esp, 0xe8
ret
pop ebp
mov eax, 0x8004e008
pop ebx
add esp, 0xe8
ret