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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bcc10
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4f9590]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.004724b0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x14]
push eax
push str.CookiesPath
push str.RealMediaSDK
push SysReAllocString
call fcn.0041022e
add esp, 0x14
push 0
push 0x80
push 3
push 0
push 3
push 0x81
lea ecx, [ebp - 0x14]
call fcn.0040d537
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4118a9
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00472740
mov eax, dword [ebp - 0x4c]
jmp 0x411b3d
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.00491462
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4118fb
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.00472740
mov eax, dword [ebp - 0x54]
jmp 0x411b3d
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 0x41195c
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.0049407a
add esp, 4
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00472740
mov eax, dword [ebp - 0x5c]
jmp 0x411b3d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040d50e
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x411b12
mov eax, dword [ebp + 8]
push eax
call fcn.00494a70
add esp, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4119c7
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x4119c7
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x4119bc
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x4119bc
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x4119c7
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x41198b
lea ecx, [ebp - 0x3c]
call fcn.004724b0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x411a19
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x411a19
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x411a19
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x411a19
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.00472c40
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4119d3
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x34]
call fcn.00472760
mov byte [ebp - 4], 2
push 0x4cdcb8
lea ecx, [ebp - 0x34]
call fcn.00472bc0
push 0x26
lea ecx, [ebp - 0x3c]
call fcn.004724f0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 1
jmp 0x411a55
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x2c]
jg 0x411afa
mov edx, dword [ebp - 0x40]
push edx
push 0x26
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004730e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0040d537
push eax
lea ecx, [ebp - 0x48]
call fcn.004725d0
test eax, eax
jl 0x411ae9
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004727f0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.0049407a
add esp, 4
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00472740
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00472740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00472740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00472740
mov eax, dword [ebp - 0x64]
jmp 0x411b3d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00472740
jmp 0x411a4c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00472740
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00472740
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.0049407a
add esp, 4
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00472740
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret