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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608800
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.0052b240
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 0x52ef1a
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 0x52ef46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x52f12a
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 0x52f12a
cmp dword [ebp - 0x20], 0xf
jne 0x52f12a
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 0x52f100
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
fld qword [eax + 0x18]
fcomp qword [0x6197c8]
fnstsw ax
test ah, 0x41
jne 0x52f100
mov ecx, dword [ebp - 0x34]
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.005c6a70
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.005c6b20
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x52f030
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 0x52f0fd
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
push edx
push ebx
push esi
push eax
call fcn.005c7440
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 0x52f0f7
lea ebx, [eax + edi + 0xb]
mov esi, 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp esi, eax
jae 0x52f0df
lea edi, [esi + ebx]
push 0xd
push str.totalDuration
push edi
call fcn.005c6ee0
add esp, 0xc
test eax, eax
jne 0x52f0b0
xor al, al
test al, al
jne 0x52f0ab
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.0052ac70
add esp, 0xc
add esi, 0xe
jmp 0x52f069
push 8
push str.duration
push edi
call fcn.005c6ee0
add esp, 0xc
test eax, eax
jne 0x52f0f1
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.0052ac70
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x52f0fd
inc esi
jmp 0x52f069
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 0x52ef15
jg 0x52f12a
cmp ebx, dword [ebp + 0xc]
jbe 0x52ef15
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x52f138
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