Function at 0x41844b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
mov dword [ebp - 0x1c0], eax
mov esi, edx
mov dword [ebp - 0x1c4], ecx
mov edx, 0x5c7aa7
call fcn.00427968
test eax, eax
jne 0x418497
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [ebp - 0x1c0]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Cannot_open__s:_no_such_file_n
jmp 0x418630
mov ebx, eax
call fcn.004f5018
mov dword [ebp - 0x1bc], eax
mov dword [eax + 0x847c], 0x412e94
mov dword [eax + 0x84bc], 1
lea edx, [ebp - 0xf8]
mov ecx, 0x38
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1bc]
mov dword [eax + 0x8480], edx
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x8c], eax
test esi, esi
je 0x41853f
mov dword [esp + 4], 0x23
mov dword [esp], esi
call sub.api_ms_win_crt_private_l1_1_0.dll_strrchr
mov edi, eax
test eax, eax
je 0x41853f
lea eax, [eax + 1]
mov dword [esp], eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
mov dword [ebp - 0x20], eax
mov byte [edi], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._s__d.raw
lea esi, [ebp - 0xf4]
mov dword [esp], esi
call fcn.005ae188
mov edx, 0x5c7ad2
mov eax, esi
call fcn.00427968
mov dword [ebp - 0xf8], eax
mov byte [edi], 0x23
mov dword [esp], 2
xor edx, edx
xor ecx, ecx
mov eax, ebx
call fcn.00425b5e
mov dword [esp], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], edx
xor edx, edx
mov dword [esp], edx
xor edx, edx
xor ecx, ecx
mov eax, ebx
call fcn.00425b5e
mov dword [esp], ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
jne 0x4185ad
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xbc
mov dword [esp + 4], 1
lea esi, [ebp - 0x1b4]
mov dword [esp], esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, eax
cmp eax, 0xbb
ja 0x4185c2
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c4], 0
jne 0x4185d7
jmp 0x41864d
mov edx, esi
mov eax, dword [ebp - 0x1bc]
call fcn.004f3840
cmp dword [ebp - 0x1c], 0
je 0x418576
jmp 0x4185ad
mov eax, dword [ebp - 0x1c4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_prog__d_timestamps.txt
lea esi, [ebp - 0x84]
mov dword [esp], esi
call fcn.005ae188
mov edx, 0x5c7aef
mov eax, esi
call fcn.00427968
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x41863d
mov dword [esp], 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x5c7af2
mov dword [esp], eax
call fcn.005adc24
jmp 0x41871d
mov dword [esp + 4], eax
mov dword [esp], str.PCK_tPID_tPCR_tDTS_tPTS_tRAP_tDiscontinuity_tDTS_PCR_Diff_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov eax, dword [ebp - 0x1bc]
call fcn.004f4fbd
xor eax, eax
mov dword [esp], eax
xor edx, edx
xor ecx, ecx
mov eax, ebx
call fcn.00425b5e
xor esi, esi
xor edi, edi
mov dword [esp], ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
jne 0x4186a9
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0xbc
mov dword [esp + 4], 1
lea edx, [ebp - 0x1b4]
mov dword [esp], edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov ecx, eax
cmp eax, 0xbb
lea edx, [ebp - 0x1b4]
ja 0x4186cc
mov eax, ebx
call fcn.00425b84
mov eax, dword [ebp - 0x1bc]
call fcn.004f50fa
mov eax, dword [ebp - 0xf8]
test eax, eax
je 0x41870e
call fcn.00425b84
jmp 0x41870e
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1bc]
call fcn.004f3840
mov ecx, dword [ebp - 0x1c0]
add esi, ecx
adc edi, 0
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1cc]
mov dword [esp], eax
mov dword [esp + 4], edx
mov edx, esi
mov ecx, edi
mov eax, str.MPEG_2_TS_Parsing
call fcn.004266f7
jmp 0x41866c
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x41871d
call fcn.00425b84
add esp, 0x1dc
pop ebx
pop esi
pop edi
pop ebp
ret