Function at 0x412200
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4babc0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4fc5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004703d0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
push str.CookiesPath
push str.RealMediaSDK
push SysReAllocString
call fcn.0041093e
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x81
lea ecx, [ebp - 0x14]
call fcn.0040d521
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x412299
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00470660
mov eax, dword [ebp - 0x4c]
jmp 0x41252d
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.0048f372
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4122eb
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00470660
mov eax, dword [ebp - 0x54]
jmp 0x41252d
mov dword [ebp - 0x24], 0
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x18]
je 0x41234c
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00491f8a
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00470660
mov eax, dword [ebp - 0x5c]
jmp 0x41252d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040d4ee
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x412502
mov eax, dword [ebp + 8]
push eax
call fcn.00492a70
add esp, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4123b7
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x4123b7
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x4123ac
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x4123ac
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x4123b7
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x41237b
lea ecx, [ebp - 0x3c]
call fcn.004703d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x412409
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x412409
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x412409
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x412409
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [ebp - 0x6d], dl
movzx eax, byte [ebp - 0x6d]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00470b60
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4123c3
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x34]
call fcn.00470680
mov byte [ebp - 4], 2
push 0x4cfe7c
lea ecx, [ebp - 0x34]
call fcn.00470ae0
push 0x26
lea ecx, [ebp - 0x3c]
call fcn.00470410
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 1
jmp 0x412445
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x2c]
jg 0x4124ea
mov edx, dword [ebp - 0x40]
push edx
push 0x26
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00471000
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0040d521
push eax
lea ecx, [ebp - 0x48]
call fcn.004704f0
test eax, eax
jl 0x4124d9
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00470710
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.00491f8a
add esp, 4
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00470660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00470660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00470660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00470660
mov eax, dword [ebp - 0x64]
jmp 0x41252d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00470660
jmp 0x41243c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00470660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00470660
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.00491f8a
add esp, 4
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00470660
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret