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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2001c
call fcn.004048c0
push ebx
push esi
push 1
push 3
xor ebx, ebx
push 1
push SysReAllocString
mov dword [ebp - 0x10], ebx
call fcn.00401abb
push eax
call fcn.00402847
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x403fdb
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [0x4052b4]
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0x403fd1
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fd1
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x2001c]
add eax, 0xffffffec
cmp eax, ebx
jle 0x403fd1
cmp dword [esi], 0x4d46504d
je 0x403b99
inc esi
lea edx, [ebp - 0x2001c]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jl 0x403b7d
jmp 0x403fd1
mov eax, dword [esi + 8]
add esi, 8
push eax
add esi, 4
call fcn.00401aeb
mov eax, dword [esi]
add esi, 4
push eax
call fcn.00401afb
mov eax, dword [esi]
add esi, 4
push eax
call fcn.00401b0b
add esp, 0xc
call fcn.00401af5
sub eax, ebx
je 0x403d15
dec eax
je 0x403bdd
dec eax
je 0x403d15
jmp 0x403fd1
push 3
call fcn.00401b1b
test eax, eax
pop ecx
je 0x403fd1
push esi
call fcn.00403acd
mov esi, eax
lea edx, [ebp - 0x2001c]
mov eax, dword [esi]
add esi, 4
mov ecx, esi
mov dword [ebp - 8], eax
sub ecx, edx
add edi, ecx
push edi
push eax
push str.application_x_shockwave_flash
push str.http:__fmchost.metaproducts.com_fmc.swf
push ebx
call fcn.00403a70
movsx eax, byte [esi + 3]
push eax
call fcn.00401bfa
push dword [ebp - 8]
call fcn.00403acd
add edi, eax
add esp, 0x20
cmp dword [ebp - 0x14], edi
jle 0x403fd1
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fd1
mov eax, dword [0x4052b8]
cmp dword [ebp - 0xc], eax
jle 0x403fd1
mov ecx, dword [ebp - 0x2001c]
add edi, eax
push edi
push ecx
push str.application_x_shockwave_flash
push str.http:__fmchost.metaproducts.com_fmcs.swf
push 1
mov dword [ebp - 8], ecx
call fcn.00403a70
push dword [ebp - 8]
call fcn.00403acd
add edi, eax
add esp, 0x18
cmp dword [ebp - 0x14], edi
jle 0x403fd1
push ebx
push ebx
push edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fd1
mov eax, dword [0x4052b8]
cmp dword [ebp - 0xc], eax
jle 0x403fd1
mov esi, dword [ebp - 0x2001c]
add edi, eax
push edi
push esi
push str.video_flv
push 0x40638c
push 2
call fcn.00403a70
add esi, edi
add esp, 0x14
xor eax, eax
cmp esi, dword [ebp - 0x14]
setle al
mov dword [ebp - 0x10], eax
jmp 0x403fd1
mov eax, dword [esi]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00401b1b
test eax, eax
pop ecx
je 0x403fd1
lea eax, [ebp - 0x2001c]
sub esi, eax
lea esi, [edi + esi + 4]
cmp dword [ebp - 0x14], esi
jle 0x403fd1
xor edi, edi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 8], edi
jle 0x403fbb
push esi
call fcn.00403acd
pop ecx
mov esi, eax
push ebx
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fa7
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x4052b8]
jle 0x403fa7
lea ebx, [edi + edi*2]
shl ebx, 3
call fcn.00401bc4
mov ecx, dword [ebp - 0x2001c]
mov dword [eax + ebx + 0x10], ecx
mov eax, dword [0x4052b8]
push dword [ebp - 0x20018]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x20014]
push edi
push eax
call fcn.00403963
push eax
call fcn.00403acd
mov edx, dword [0x4052b8]
mov ecx, dword [ebp + eax - 0x20014]
lea edi, [ebp + eax - 0x20014]
add edx, eax
add esp, 0x10
add edi, 4
add esi, edx
test ecx, ecx
je 0x403e03
push ecx
push dword [ebp - 8]
push edi
call fcn.004039a5
push eax
call fcn.00403acd
add esp, 0x10
add esi, eax
add edi, eax
jmp 0x403e0d
call fcn.00401bc4
and dword [eax + ebx + 4], 0
mov eax, dword [edi]
add esi, dword [0x4052b8]
add edi, 4
test eax, eax
je 0x403e35
push eax
push dword [ebp - 8]
push edi
call fcn.004039e9
push eax
call fcn.00403acd
add esp, 0x10
add esi, eax
add edi, eax
jmp 0x403e3f
call fcn.00401bc4
and dword [eax + ebx + 8], 0
mov eax, dword [edi]
add esi, dword [0x4052b8]
test eax, eax
je 0x403e65
push eax
add edi, 4
push dword [ebp - 8]
push edi
call fcn.00403a2c
push eax
call fcn.00403acd
add esp, 0x10
add esi, eax
jmp 0x403e6f
call fcn.00401bc4
and dword [eax + ebx + 0xc], 0
xor eax, eax
cmp dword [ebp - 8], eax
jne 0x403f8b
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fb6
mov eax, dword [0x4052b8]
cmp dword [ebp - 0xc], eax
jle 0x403fb6
add esi, eax
mov eax, dword [ebp - 0x2001c]
test eax, eax
je 0x403efb
lea eax, [eax + eax + 2]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20018]
mov dword [ebp - 0x18], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x18]
call fcn.00401bda
push dword [ebp - 0x10]
call fcn.00403acd
add esp, 0x18
add esi, eax
push 0
push 0
push esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 0x2001c]
push 0x20000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403fb6
mov eax, dword [0x4052b8]
cmp dword [ebp - 0xc], eax
jle 0x403fb6
add esi, eax
mov eax, dword [ebp - 0x2001c]
test eax, eax
je 0x403f73
lea edi, [eax + eax + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
lea ecx, [ebp - 0x20018]
push edi
push ecx
push eax
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x18]
call fcn.00401bea
push edi
call fcn.00403acd
add esp, 0x18
add esi, eax
jmp 0x403f75
xor edi, edi
push edi
call fcn.00403acd
movsx eax, byte [ebp + eax - 0x20015]
push eax
call fcn.00401bfa
pop ecx
pop ecx
call fcn.00401bc4
mov dword [eax + ebx + 0x14], esi
call fcn.00401bc4
add esi, dword [eax + ebx + 0x10]
cmp dword [ebp - 0x14], esi
jl 0x403fb6
mov edi, dword [ebp - 8]
xor ebx, ebx
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
jl 0x403d4c
jmp 0x403fbb
mov edi, dword [ebp - 8]
xor ebx, ebx
xor eax, eax
cmp edi, ebx
setg al
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jge 0x403fd1
push edi
call fcn.00401bca
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret