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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea ecx, [ebp - 8]
call fcn.0042ef80
push 0
lea eax, [ebp - 8]
push eax
push str.CookiesPath
push str.RealMediaSDK
push SysReAllocStringLen
call fcn.004018a0
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x81
lea ecx, [ebp - 8]
call fcn.00401029
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402c7c
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 8]
call fcn.0042f1e0
mov eax, dword [ebp - 0x40]
jmp 0x402ecc
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.0044e966
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x402cc7
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 8]
call fcn.0042f1e0
mov eax, dword [ebp - 0x48]
jmp 0x402ecc
mov dword [ebp - 0x18], 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0xc]
je 0x402d21
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0044f1e5
add esp, 4
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 8]
call fcn.0042f1e0
mov eax, dword [ebp - 0x50]
jmp 0x402ecc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401000
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402ea8
mov eax, dword [ebp + 8]
push eax
call fcn.0044f080
add esp, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402d8c
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x402d8c
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x402d81
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x402d81
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x402d8c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x402d50
lea ecx, [ebp - 0x30]
call fcn.0042ef80
cmp dword [ebp - 0x14], 0
je 0x402dda
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x402dda
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x402dda
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x402dda
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 0x61], dl
movzx eax, byte [ebp - 0x61]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042f670
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x402d94
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042f200
push 0x4728dc
lea ecx, [ebp - 0x28]
call fcn.0042f630
push 0x26
lea ecx, [ebp - 0x30]
call fcn.0042efc0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], 1
jmp 0x402e12
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x20]
jg 0x402e98
mov edx, dword [ebp - 0x34]
push edx
push 0x26
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0042fac0
lea ecx, [ebp - 0x28]
call fcn.00401029
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042f060
test eax, eax
jl 0x402e8b
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0042f220
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.0044f1e5
add esp, 4
mov dword [ebp - 0x58], 1
lea ecx, [ebp - 0x3c]
call fcn.0042f1e0
lea ecx, [ebp - 0x28]
call fcn.0042f1e0
lea ecx, [ebp - 0x30]
call fcn.0042f1e0
lea ecx, [ebp - 8]
call fcn.0042f1e0
mov eax, dword [ebp - 0x58]
jmp 0x402ecc
lea ecx, [ebp - 0x3c]
call fcn.0042f1e0
jmp 0x402e09
lea ecx, [ebp - 0x28]
call fcn.0042f1e0
lea ecx, [ebp - 0x30]
call fcn.0042f1e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0044f1e5
add esp, 4
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 8]
call fcn.0042f1e0
mov eax, dword [ebp - 0x60]
mov esp, ebp
pop ebp
ret