Function at 0x561950
Capabilities:
Get system information on windows
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
push str.Checking_flv_struct_n
call fcn.0055c480
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], esi
mov ebx, 9
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], edi
jmp 0x5619ba
mov edi, dword [ebp - 0x2c]
xor esi, esi
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push esi
mov esi, dword [ebp + 8]
push edx
push ebx
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5619e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x561bca
lea eax, [ebp - 0x20]
push 0
push eax
lea ecx, [ebp - 0x58]
push 0xf
push ecx
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x561bca
cmp dword [ebp - 0x20], 0xf
jne 0x561bca
mov edx, dword [ebp - 0x58]
push edx
call fcn.006010b2
mov cx, word [ebp - 0x53]
mov dl, byte [ebp - 0x51]
xor eax, eax
mov byte [ebp - 0x14], 0
mov word [ebp - 0x13], ax
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], al
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 0x14]
push eax
call fcn.006010b2
mov dx, word [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x4e]
mov word [ebp - 0x17], cx
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x15], cl
mov word [ebp - 0x17], dx
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.006010b2
cmp byte [ebp - 0x54], 0x12
jne 0x561ba0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
fld qword [eax + 0x18]
fcomp qword [0x659b60]
fnstsw ax
test ah, 0x41
jne 0x561ba0
mov ecx, dword [ebp - 0x34]
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.0060bae0
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x38]
push esi
push edi
push edx
push eax
call fcn.0060bb90
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x561ad0
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x561b9d
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
push edx
push ebx
push esi
push eax
call fcn.0060c730
mov ecx, dword [ebp - 0x28]
lea ecx, [edi + ecx + 0xf]
push ecx
push eax
push edx
mov edx, dword [ebp - 0x1c]
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x561b97
lea ebx, [eax + edi + 0xb]
mov esi, 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp esi, eax
jae 0x561b7f
lea edi, [esi + ebx]
push 0xd
push str.totalDuration
push edi
call fcn.0060bf70
add esp, 0xc
test eax, eax
jne 0x561b50
xor al, al
test al, al
jne 0x561b4b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
lea edx, [esi + ebx + 0xe]
push ecx
push edx
call fcn.0055bed0
add esp, 0xc
add esi, 0xe
jmp 0x561b09
push 8
push str.duration
push edi
call fcn.0060bf70
add esp, 0xc
test eax, eax
jne 0x561b91
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
lea ecx, [esi + ebx + 9]
push eax
push ecx
call fcn.0055bed0
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x561b9d
inc esi
jmp 0x561b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
add eax, 0xf
add ebx, eax
mov eax, dword [ebp - 0x34]
adc eax, 0
mov dword [ebp - 0x38], ebx
cmp eax, ecx
mov dword [ebp - 0x34], eax
jl 0x5619b5
jg 0x561bca
cmp ebx, dword [ebp + 0xc]
jbe 0x5619b5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x561bd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc