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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ae70
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.005427e0
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 0x54774a
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 0x547776
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x54795a
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 0x54795a
cmp dword [ebp - 0x20], 0xf
jne 0x54795a
mov edx, dword [ebp - 0x58]
push edx
call sub.WS2_32.dll_ntohl
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 sub.WS2_32.dll_ntohl
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 sub.WS2_32.dll_ntohl
cmp byte [ebp - 0x54], 0x12
jne 0x547930
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
fld qword [eax + 0x18]
fcomp qword [0x634d48]
fnstsw ax
test ah, 0x41
jne 0x547930
mov ecx, dword [ebp - 0x34]
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.005e9080
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.005e9130
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x547860
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 0x54792d
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
push edx
push ebx
push esi
push eax
call fcn.005e9a70
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 0x547927
lea ebx, [eax + edi + 0xb]
mov esi, 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp esi, eax
jae 0x54790f
lea edi, [esi + ebx]
push 0xd
push str.totalDuration
push edi
call fcn.005e9510
add esp, 0xc
test eax, eax
jne 0x5478e0
xor al, al
test al, al
jne 0x5478db
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.00542240
add esp, 0xc
add esi, 0xe
jmp 0x547899
push 8
push str.duration
push edi
call fcn.005e9510
add esp, 0xc
test eax, eax
jne 0x547921
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.00542240
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x54792d
inc esi
jmp 0x547899
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 0x547745
jg 0x54795a
cmp ebx, dword [ebp + 0xc]
jbe 0x547745
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x547968
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