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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636d40
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], esi
push str.Checking_flv_struct_n
call fcn.00540ff0
xor eax, eax
mov dword [ebp - 4], eax
wait
mov dword [ebp - 0x34], eax
mov edi, 9
mov dword [ebp - 0x40], edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x25], bl
jmp 0x541613
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], ebx
push 0
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x54163a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5417e2
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 0xf
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5417e2
cmp dword [ebp - 0x34], 0xf
jne 0x5417e2
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
lea eax, [ebp - 0x1f]
push eax
call fcn.00540e10
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00540e10
add esp, 8
cmp byte [ebp - 0x20], 0x12
jne 0x5417ba
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
fldz
fcomp qword [eax + 0x18]
fnstsw ax
test ah, 5
jp 0x5417ba
xor esi, esi
push esi
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
push edi
call fcn.005ffdb0
mov edi, ecx
mov dword [ebp - 0x50], ebx
mov ebx, eax
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x2c], esi
jne 0x5416e3
push esi
push esi
push esi
push 4
push esi
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x5417b7
mov eax, dword [ebp - 0x84]
push eax
push ebx
push esi
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.005fd4d0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x38]
lea ecx, [edi + ecx + 0xf]
push ecx
push eax
push edx
push 6
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x5417b1
lea eax, [ebx + edi + 0xb]
mov dword [ebp - 0x50], eax
mov edi, 1
mov dword [ebp - 0x4c], edi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff2
cmp edi, ecx
jae 0x5417a2
mov edx, dword [ebp - 0x50]
lea esi, [edi + edx]
push 0xd
push str.totalDuration
push esi
call fcn.005fd020
add esp, 0xc
test eax, eax
jne 0x541773
cmp byte [ebp - 0x25], al
jne 0x54176e
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x18]
sub esp, 8
fld qword [ecx + 0x18]
fstp qword [esp]
add esi, 0xe
push esi
call fcn.00540c00
add esp, 0xc
add edi, 0xe
jmp 0x541727
push 8
push str.duration
push esi
call fcn.005fd020
add esp, 0xc
test eax, eax
jne 0x5417ab
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
sub esp, 8
fld qword [eax + 0x18]
fstp qword [esp]
add esi, 9
push esi
call fcn.00540c00
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x5417b7
inc edi
jmp 0x541727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
add ecx, 0xf
add edi, ecx
mov dword [ebp - 0x40], edi
mov ebx, dword [ebp - 0x3c]
adc ebx, 0
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [ebp + 0x10]
jl 0x541610
jg 0x5417e2
cmp edi, dword [ebp + 0xc]
jbe 0x541610
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5417f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f85e7
mov esp, ebp
pop ebp
ret 0xc