Function at 0x411e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4573d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [ebx + 0x1c], 0
mov dword [ebp - 0x20], ebx
je 0x4121fa
cmp dword [ebx + 0x30], 0
je 0x4121fa
mov al, byte [ebx + 0x38]
not al
test al, 1
jne 0x4121fa
lea ecx, [ebp - 0xcc]
call fcn.00413c20
mov dword [ebp - 4], 0
mov edx, dword [ebx + 0x38]
mov ecx, edx
shr ecx, 2
mov eax, edx
and ecx, 1
shr eax, 4
shl ecx, 6
not al
add ecx, 0x201
test al, 1
jne 0x411eb3
or ecx, 0x800
jmp 0x411ec3
shr edx, 5
not dl
test dl, 1
jne 0x411ec3
or ecx, 0x1000
push ecx
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0xcc]
call fcn.00413e60
test al, al
jne 0x411eee
sub esp, 8
mov eax, esp
mov dword [eax], 0x4812a4
mov dword [eax + 4], 0xe
jmp 0x4121e7
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4121d5
push eax
push 0x18
lea eax, [ebp - 0x60]
push 1
push eax
call fcn.0043bbf1
add esp, 0x10
cmp eax, 0x18
jne 0x4121d5
lea ecx, [ebp - 0x60]
mov eax, dword [ecx]
cmp eax, dword [str.EPG_DATA]
jne 0x4121c1
mov eax, dword [ecx + 4]
cmp eax, dword [0x481454]
jne 0x4121c1
cmp dword [ebp - 0x58], 0
jbe 0x411f50
sub esp, 8
mov eax, esp
mov dword [eax], 0x481324
mov dword [eax + 4], 0x1c
jmp 0x4121e7
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0xcc]
call dword [eax + 0xc]
cmp eax, 1
jne 0x41220d
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x12]
push 2
push ecx
lea ecx, [ebp - 0xcc]
call dword [eax + 0xc]
cmp eax, 2
jne 0x412222
cmp byte [ebp - 0x14], 2
mov ax, word [ebp - 0x12]
jne 0x412175
cmp ax, 8
jne 0x412175
xor eax, eax
mov dword [ebp - 0x38], eax
mov word [ebp - 0x34], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00412260
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
je 0x412141
cmp dword [ebx + 0x48], 0
je 0x412003
nop
mov eax, dword [ebx + 0x48]
mov dword [ecx + 0xc8], eax
add ecx, 0xd0
cmp ecx, edx
jne 0x411ff0
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x18], ebx
lea esi, [ebx + 0x10]
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x6c]
mov ecx, ebx
push eax
call fcn.0040af10
mov edi, dword [ebp - 0x64]
cmp byte [edi + 0xd], 0
jne 0x41207a
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040b390
test al, al
jne 0x41207a
cmp edi, dword [ebx]
je 0x41207a
push edi
mov ecx, ebx
call fcn.0040a1f0
mov ebx, eax
lea ecx, [ebx + 0x58]
call fcn.00408c20
lea ecx, [ebx + 0x38]
call fcn.00408bc0
lea ecx, [ebx + 0x18]
call fcn.00408bc0
push 0x4a4
push ebx
call fcn.00433612
mov ebx, dword [ebp - 0x18]
add esp, 8
lea eax, [ebp - 0x38]
push ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0xd4]
mov ecx, ebx
push eax
call fcn.00409be0
sub esp, 8
mov ebx, dword [eax]
mov eax, dword [ebx + 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x48f7e0]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [ebx + 0x18]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.00454ab0
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.00456860
cmp eax, 0x12c
mov ecx, 0x12c
cmovb eax, ecx
cmp eax, dword [ebx + 0x34]
jbe 0x4120fb
push eax
lea ecx, [ebx + 0x18]
call fcn.00409870
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
cmp edi, eax
je 0x412137
push edi
lea eax, [edi + 6]
push eax
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebx + 0x18]
call fcn.00409c10
push edi
lea eax, [ebp - 0xe4]
lea ecx, [ebx + 0x58]
push eax
call fcn.00409e70
mov eax, dword [ebp - 0x18]
add edi, 0xd0
jmp 0x412104
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403d20
cmp byte [ebp - 0x14], 1
jne 0x411f60
lea ecx, [ebp - 0xcc]
call fcn.00413d90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
je 0x41214d
mov ecx, dword [ebp - 0x74]
movzx eax, ax
cdq
test ecx, ecx
je 0x412237
push 1
push edx
push eax
push ecx
call fcn.0043c15e
add esp, 0x10
test eax, eax
jne 0x412237
jmp 0x41214d
sub esp, 8
mov eax, esp
mov dword [eax], 0x4812f0
mov dword [eax + 4], 0x18
jmp 0x4121e7
sub esp, 8
mov eax, esp
mov dword [eax], 0x4812c4
mov dword [eax + 4], 0x14
push ecx
mov ecx, ebx
call fcn.00412d60
lea ecx, [ebp - 0xcc]
call fcn.00413d90
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x494798
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
call fcn.00434c60
push 0x494798
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
call fcn.00434c60
push 0x494798
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 2
push eax
call fcn.00434c60
int3